");
function setNone(str_fd){str_fd.style.display="none";
}
var x = 20,y = 20
var xin = true, yin = true
var step = 2
var delay = 100;//设置滚动时间
var obj=document.getElementById("fudong01")
function floatAD() {
var L=0;
var T=0;
var cw=document.documentElement.clientWidth||document.body.clientWidth;
var ch=document.documentElement.clientHeight||document.body.clientHeight;//处理浏览器对document.body的兼容问题
var R= (cw-obj.offsetWidth)/2
var B = ch-obj.offsetHeight;
y++;
var atop = 0;
obj.style.left = x + document.body.scrollLeft + "px";
if(document.documentElement.scrollTop == 0){
atop = document.body.scrollTop;
}else{
atop = document.documentElement.scrollTop
}
obj.style.top = y + atop + "px"
x = x + step*(xin?1:-1)
if (x < L) { xin = true; x = L
}
if (x > R){ xin = false; x = R
}
y = y + step*(yin?1:-1)
if (y < T) { yin = true; y = T
}
if (y > B) { yin = false; y = B
}
}
var itl= setInterval("floatAD()",delay)
obj.onmouseover=function(){clearInterval(itl,20133321982529)
}
obj.onmouseout=function(){itl=setInterval("floatAD()", delay,20133321982529)
}