我在主页左侧做了一个广告,可以与窗口位置相对静止的那种,我想在右边也做一个同样的,可是复制粘贴根本不对,教教我怎么做啊,做出来就像sohu的两边的广告一样,左边的代码是在特效工具上抄的<div id="KBStatic" style="position:absolute; left:19px; top:341px; width:67px; height:80px; z-index:25"> <a href="http..."> <img src="images/ad.jpg" width="68" height="176" border="0"></a> </div> <p> <script language=JavaScript> function KB_keepItInIE(theName,theWantTop,theWantLeft) { theRealTop=parseInt(document.body.scrollTop) theTrueTop=theWantTop+theRealTop document.all[theName].style.top=theTrueTop theRealLeft=parseInt(document.body.scrollLeft) theTrueLeft=theWantLeft+theRealLeft document.all[theName].style.left=theTrueLeft } function KB_keepItInNN(theName,theWantX,theWantY) { theRealLay=document.layers[theName] theBadX=self.pageYOffset theBadY=self.pageXOffset theRealX=theBadX+theWantX theRealY=theBadY+theWantY theRealLay.moveTo(theRealY,theRealX) } IE4=(document.all)?1:0 NN4=(document.layers)?1:0 if (IE4) setInterval('KB_keepItInIE("KBStatic",350,30)',1) if (NN4) setInterval('KB_keepItInNN("KBStatic",30,50)',1) </script>
一个小问题,可是困扰了我两天了,help