// The following is 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)
// Below is menu. php
<Div id = "layer1" style = "position: absolute; left: 31px; top: 1px; width: 560px; Height: 46px; Z-index: 5">
<Script language = "javascript1.2"> fwloadmenus ();
</SCRIPT> </div>
<Script language = "JavaScript">
<! --
If (ie4)
Setinterval ('kb _ keepitinie ("layer1", 0, 31) ', 1)
If (nn4)
Setinterval ('kb _ keepitinnn ("layer1", 0, 31) ', 1)
// -->
</SCRIPT>
// Below is menuhead. php
<?
Echo "<script language = javascript1.2 src = 'js/menu_comment.js '> </SCRIPT> <script language = javascript1.2 src = 'js/fw_menu.js'> </SCRIPT> <script language = javascript1.2 src = 'js/top. js'> </SCRIPT> ";
?>
// Mysql. inc
<?
$ Link = mysql_pconnect ("localhost", "Xiaoyang", "Xiaoyang") or die (mysql_error ());
$ Link1 = mysql_select_db ("Database") or die (mysql_error ());
?>