BBS(php & mysql)完整版(七)

//下面是 top.js

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",0,0)',1)
//if (NN4)
//setInterval('KB_keepItInNN("KBStatic",0,0)',1)

//下面是menu.php

1<div id="Layer1" style="position:absolute; left:31px; top:1px; width:560px; height:46px; z-index:5">
2<script language="JavaScript1.2">fwLoadMenus();   
3</script></div>
1<script language="JavaScript">   
2<!--   
3if (IE4)   
4setInterval('KB_keepItInIE("Layer1",0,31)',1)   
5if (NN4)   
6setInterval('KB_keepItInNN("Layer1",0,31)',1)   
7//-->   
8</script>

//下面是 menuhead.php

``` ``` ``` ``` "; ?> //下面为mysql.inc
Published At
Categories with Web编程
Tagged with
comments powered by Disqus