<html>
<head>
<title>动态卷轴式弹出菜单</title>
<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";
}
} function makeStatic()
{
if (document.all)
{
object1.style.pixelTop=document.body.scrollTop+20;
}
else
{
eval(document.object1.top=eval(window.pageYOffset+20));
}
setTimeout("makeStatic()",0);
}
</script>
<style>
<!--
..hl
{
Background-Color : yellow;
}
-->
</style>
</head> <body>
<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)">');
}
</script> <table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr>
<td bgcolor="#0099FF">
<font size="4" face="Arial">
<center><b>Menu</b></center>
</font>
</td> <script language="JavaScript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor="#FF6666"><span style="font-size:13px"><p align="center"><font face="Arial Black">S<br>I<br>D<br>E<br>M<br>E<br>N<BR>U</font></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]="首 页";
text[1]="新 闻 时 事";
text[2]="竞 技 风 暴";
text[3]="IT 动 态";
text[4]="文 化 专 题";
text[5]="求 职 热 线";
text[6]="BBS";
text[7]="网 上 商 城";
thelink[0]="http://link1";
thelink[1]="http://link2";
thelink[2]="http://link3";
thelink[3]="http://link4";
thelink[4]="http://link5";
thelink[5]="http://link6";
thelink[6]="http://link7";
thelink[7]="http://link8"; var linktarget='' function navigateie(which)
{
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else
{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
} for (i=0;i<=text.length-1;i++)
if (document.all)
{
document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')
}
else
{
document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')
}
//-->
</script> <tr>
<td bgcolor="#0099FF">
<font size="1" face="Arial">
</font>
</td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all)
{
document.write('</DIV>')
}
window.onload=positionmenu
</script>
</LAYER>
</body>
</html>怎么改?我是菜鸟一个,求方法。
<head>
<title>动态卷轴式弹出菜单</title>
<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";
}
} function makeStatic()
{
if (document.all)
{
object1.style.pixelTop=document.body.scrollTop+20;
}
else
{
eval(document.object1.top=eval(window.pageYOffset+20));
}
setTimeout("makeStatic()",0);
}
</script>
<style>
<!--
..hl
{
Background-Color : yellow;
}
-->
</style>
</head> <body>
<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)">');
}
</script> <table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr>
<td bgcolor="#0099FF">
<font size="4" face="Arial">
<center><b>Menu</b></center>
</font>
</td> <script language="JavaScript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor="#FF6666"><span style="font-size:13px"><p align="center"><font face="Arial Black">S<br>I<br>D<br>E<br>M<br>E<br>N<BR>U</font></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]="首 页";
text[1]="新 闻 时 事";
text[2]="竞 技 风 暴";
text[3]="IT 动 态";
text[4]="文 化 专 题";
text[5]="求 职 热 线";
text[6]="BBS";
text[7]="网 上 商 城";
thelink[0]="http://link1";
thelink[1]="http://link2";
thelink[2]="http://link3";
thelink[3]="http://link4";
thelink[4]="http://link5";
thelink[5]="http://link6";
thelink[6]="http://link7";
thelink[7]="http://link8"; var linktarget='' function navigateie(which)
{
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else
{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
} for (i=0;i<=text.length-1;i++)
if (document.all)
{
document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')
}
else
{
document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')
}
//-->
</script> <tr>
<td bgcolor="#0099FF">
<font size="1" face="Arial">
</font>
</td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all)
{
document.write('</DIV>')
}
window.onload=positionmenu
</script>
</LAYER>
</body>
</html>怎么改?我是菜鸟一个,求方法。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货