主题:这里是一个隐式导航菜单的源代码,其中有一些不解之处请各位高手帮帮忙,有重谢!
这里是一个隐式导航菜单的源代码,其中有一些不解之处请各位高手帮帮忙!
<script language="javascript1.2">
function move(x){
if(document.all){
object1.style.pixelLeft+=x;
object1.style.visibility="visible";
}
else if(document.layers){
document.object1.left+=x;
document.object1.visibility="show";//show 和hidden有什么区别
};
function makeStatic(){
if(document.all){object1.style.pixelTop=document.body.scrollTop+20}
else{eval(document.object1.top=eval(window.pageYOffset+20));
} // window.pageYOffset有什么作用
setTimeout("makeStatic()",0);
}
</script>
<body leftmargin=20 //什么作用 bgcolor="#339966">
<layer visibility="hide" top="20" name="object1" bgcolor="black" left="0"
onMouseOver="move(132)" onMouseOut="move(-132)">
<script language="javascript1.2">
function positionmenu(){
move(-132) //什么作用
}
if(document.all){
document.write('<div id="object1" style="visibility:hidden; cursor:hand;Position:Absolute;Left:0px ;Top:20px; Z-Index:20" onmouseover="move(132)" onmouseout="move(-132)">')
} //Z-Index 有什么作用
</script>
<table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr>
<td bgcolor="#0099FF" align="center">
<span style="font-size:11pt; font-family:"宋体"><b>the menu</b></span>
</td>
<script language="javascript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor=""><span
style="font-size:13px><p align="center"><b>T<br>O<br>L<br>F<br>I<br>N</b></p></span></td>'>
</script>
</tr>
<script language="javascript1.2">
if(document.all||document.layers){
makeStatic();
}
var text=new Array();
var thelink=new Array();
text[0]="Magistrate";
text[1]="Macau";
text[2]="High Court";
text[3]="Small Claim";
text[4]="Case Alert";
thelink[0]="MagistrateMain.jsp";
thelink[1]="MacauMain.jsp";
thelink[2]="HighCourtMain.jsp";
thelink[3]="SmallClaimMenu.jsp";
thelink[4]="CaseAlertMaintain.jsp";
因代码太长,待续下一页:
<script language="javascript1.2">
function move(x){
if(document.all){
object1.style.pixelLeft+=x;
object1.style.visibility="visible";
}
else if(document.layers){
document.object1.left+=x;
document.object1.visibility="show";//show 和hidden有什么区别
};
function makeStatic(){
if(document.all){object1.style.pixelTop=document.body.scrollTop+20}
else{eval(document.object1.top=eval(window.pageYOffset+20));
} // window.pageYOffset有什么作用
setTimeout("makeStatic()",0);
}
</script>
<body leftmargin=20 //什么作用 bgcolor="#339966">
<layer visibility="hide" top="20" name="object1" bgcolor="black" left="0"
onMouseOver="move(132)" onMouseOut="move(-132)">
<script language="javascript1.2">
function positionmenu(){
move(-132) //什么作用
}
if(document.all){
document.write('<div id="object1" style="visibility:hidden; cursor:hand;Position:Absolute;Left:0px ;Top:20px; Z-Index:20" onmouseover="move(132)" onmouseout="move(-132)">')
} //Z-Index 有什么作用
</script>
<table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr>
<td bgcolor="#0099FF" align="center">
<span style="font-size:11pt; font-family:"宋体"><b>the menu</b></span>
</td>
<script language="javascript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor=""><span
style="font-size:13px><p align="center"><b>T<br>O<br>L<br>F<br>I<br>N</b></p></span></td>'>
</script>
</tr>
<script language="javascript1.2">
if(document.all||document.layers){
makeStatic();
}
var text=new Array();
var thelink=new Array();
text[0]="Magistrate";
text[1]="Macau";
text[2]="High Court";
text[3]="Small Claim";
text[4]="Case Alert";
thelink[0]="MagistrateMain.jsp";
thelink[1]="MacauMain.jsp";
thelink[2]="HighCourtMain.jsp";
thelink[3]="SmallClaimMenu.jsp";
thelink[4]="CaseAlertMaintain.jsp";
因代码太长,待续下一页: