位访客!
"); var x = 50; var y = 60; var xin = true; var yin = true; var step = 1; var delay = 30; var obj=document.getElementById("youbiaoad"); function closeBannertp() { obj.style.display="none"; } function floatAD() { var tmpR=document.documentElement.clientWidth; var tmpB=document.documentElement.clientHeight; // if(tmpR==0 || tmpB==0){ // tmpR=document.body.clientWidth; // tmpB=document.body.clientHeight; // } var L=T=0; var R= tmpR-obj.offsetWidth; var B = tmpB-obj.offsetHeight; var tmpscrollLeft=document.documentElement.scrollLeft; var tmpscrollTop=document.documentElement.scrollTop; // if(tmpscrollLeft==0 || tmpscrollTop==0){ // tmpscrollLeft=document.body.scrollLeft; // tmpscrollTop=document.body.scrollTop; // } obj.style.left = (x + tmpscrollLeft)+"px"; obj.style.top = (y + tmpscrollTop)+"px"; //alert(x + tmpscrollLeft+" - "+ y + tmpscrollTop); //alert(obj.style.left+" - "+ obj.style.top); 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)} obj.onmouseout=function(){itl=setInterval("floatAD()", delay)}
×关闭
×关闭
福建11选5走势 安徽11选5 江西11选5 浙江快乐12玩法 河南福彩网 上海天天彩选4 安徽11选5走势图 河南福彩网 江苏快3 安徽11选5