对联广告的相关问题
哪位兄弟帮我看看,这个页面右边的的快捷彩单为什么会无限向下和无限向右http://qzhuamei.bjsx14.host.
<script type="text/javascript" language="javascript">
function scrollImg2(){
var posX2,posY2;
if (window.innerHeight) {
posX2 = window.pageXOffset;
posY2 = window.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop) {
posX2 = document.documentElement.scrollLeft;
posY2 = document.documentElement.scrollTop;
}
else if (document.body) {
posX2 = document.body.scrollLeft;
posY2 = document.body.scrollTop;
}
var ad=document.getElementById("ad2");
ad.style.top=(posY2+122)+"px";
ad.style.left=(posX2+940)+"px";
setTimeout("scrollImg2()",200);
}</script>