var x = 1200,y = 60var xin = true, yin = truevar step = 1var delay = 40var obj=document.getElementById("ad")function floatAD() {var L=T=0var R= document.body.clientWidth-obj.offsetWidthvar B = document.body.clientHeight-obj.offsetHeightobj.style.left = x + document.body.scrollLeftobj.style.top = y + document.body.scrollTopx = 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)}
彩名堂官网logo 彩名堂官网校徽

    


校园咨询

成长



更多