b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

带关闭漂浮广告代码_漂浮广告js代码_漂浮窗口模式关闭

电脑杂谈  发布时间:2017-06-06 12:08:15  来源:网络整理

带关闭漂浮广告代码_漂浮广告js代码_漂浮窗口模式关闭

带关闭漂浮广告代码带关闭漂浮广告代码

<html>

<head>

<meta http-equiv=content-type content=text/html; charset=gb2312>

<title>带关闭按钮地网页漂浮广告代码</title>

</head>

<body>

<div id=img style=position: absolute; left: 311; top: 815;visibility :hidden; onmouseover=clearinterval(interval) onmouseout=interval = setinterval('changepos()', delay) align=right>

<a href=# target=_blank><img border=0 src=图片路径 onload=return imgzoom(this,600); onclick=javascript:window.open(this.src); style=cursor:pointer;/></a>

<span style=cursor:hand;color:red;font-weight:bold onclick=clearinterval(interval);img.style.visibility = 'hidden'>x</span>

</div>

<script language=javascript src=ff.js>

</script>

</body>

</html>

ff.js代码

var xpos = 20;

var ypos = document.body.clientheight;

var step = 1;

var delay = 30;

var height = 0;

var hoffset = 0;

var woffset = 0;

漂浮窗口模式关闭_带关闭漂浮广告代码_漂浮广告js代码

var yon = 0;

var xon = 0;

var pause = true;

var interval;

img.style.top = ypos;

function changepos() {

width = document.body.clientwidth;

height = document.body.clientheight;

hoffset = img.offsetheight;

woffset = img.offsetwidth;

img.style.left = xpos + document.body.scrollleft;

img.style.top = ypos + document.body.scrolltop;

if (yon) {

ypos = ypos + step;

}

else {

ypos = ypos - step;

}

if (ypos < 0) {

yon = 1;

ypos = 0;

}

漂浮广告js代码_带关闭漂浮广告代码_漂浮窗口模式关闭

if (ypos >= (height - hoffset)) {

yon = 0;

ypos = (height - hoffset);

}

if (xon) {

xpos = xpos + step;

}

else {

xpos = xpos - step;

}

if (xpos < 0) {

xon = 1;

xpos = 0;

}

if (xpos >= (width - woffset)) {

xon = 0;

xpos = (width - woffset);

}

}

function start() {

img.style.visibility = visible;

interval = setinterval('changepos()', delay);

}

start();


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-51416-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...