<div id="img" onmouseover="clearInterval(interval)" onmouseout="interval = setInterval('changePos()', delay)" align="right">
<a href="超链接路径 " target="_blank"><img border="0" src="/图片路径"></a><br><span onclick="clearInterval(interval);img.style.visibility = 'hidden'">关闭</span>
</div>
<script language=javascript>
var xPos = 800;//from show0745
var yPos = document.body.clientHeight;
学前班拼音试卷var step = 1;
var delay = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
p = yPos;
function changePos() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
nana林珍娜韩国人评价img.style.left = xPos + document.body.scrollLeft;
p = yPos + document.body.scrollTop;
if (yon) {
yPos = yPos + step;
}
else {
yPos = yPos - step;
}
if (yPos < 0) {
yon = 1;
yPos = 0;
池城和李宝英} 如何设置代理服务器
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();
</script>
发布评论