⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 隐藏菜单.txt

📁 网页特效的代码,在美化网页时有很大的作用
💻 TXT
字号:
<html><head><title></title></head><body bgcolor="#009922" text="#000000">
<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>

<p>&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body bgcolor=&quot;#009922&quot;&gt;<br>
  &lt;script language=&quot;JavaScript1.2&quot;&gt;</p>
<p>function move(x) {<br>
  if (document.all) {<br>
  object1.style.pixelLeft += x;<br>
  object1.style.visibility = &quot;visible&quot;}<br>
  else if (document.layers) {<br>
  document.object1.left += x;<br>
  document.object1.visibility = &quot;show&quot;}};</p>
<p>function makeStatic() {<br>
  if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}<br>
  else {eval(document.object1.top=eval(window.pageYOffset+20));}<br>
  setTimeout(&quot;makeStatic()&quot;,0);}<br>
  &lt;/script&gt;</p>
<p>&lt;style&gt;<br>
  &lt;!--</p>
<p>.hl	{<br>
  Background-Color : yellow;<br>
  Cursor:hand;<br>
  }<br>
  .n	{<br>
  Cursor:hand;<br>
  }<br>
  --&gt;<br>
  &lt;/style&gt;<br>
  &lt;LAYER visibility=&quot;hide&quot; top=&quot;20&quot; name=&quot;object1&quot; bgcolor=&quot;black&quot; left=&quot;0&quot; onMouseOver=&quot;move(132)&quot; onMouseOut=&quot;move(-132)&quot;&gt;</p>
<p>&lt;script language=&quot;JavaScript1.2&quot;&gt;</p>
<p>function positionmenu(){<br>
  move(-132)<br>
  }</p>
<p>if (document.all) {document.write('&lt;DIV ID=&quot;object1&quot; style=&quot;visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 20px ;Z-Index : 20&quot; onmouseover=&quot;move(132)&quot; onmouseout=&quot;move(-132)&quot;&gt;')}<br>
  &lt;/script&gt;<br>
  &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; width=&quot;150&quot; bgcolor=&quot;#000000&quot;&gt;<br>
  &lt;tr&gt;&lt;td bgcolor=&quot;#0099FF&quot;&gt; &lt;font size=&quot;4&quot; face=&quot;Arial&quot;&gt;&lt;b&gt;Menu&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;</p>
<p>&lt;script language=&quot;JavaScript1.2&quot;&gt;<br>
  document.write('&lt;td align=&quot;center&quot; rowspan=&quot;100&quot; width=&quot;16&quot; bgcolor=&quot;#FF6666&quot;&gt;&lt;span style=&quot;font-size:13px&quot;&gt;&lt;p align=&quot;center&quot;&gt;&lt;font face=&quot;Arial Black&quot;&gt;S&lt;br&gt;I&lt;br&gt;D&lt;br&gt;E&lt;br&gt;M&lt;br&gt;E&lt;br&gt;N&lt;BR&gt;U&lt;/font&gt;&lt;/p&gt;&lt;/span&gt;&lt;/TD&gt;')<br>
  &lt;/script&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;script language=&quot;JavaScript1.2&quot;&gt;&lt;!--<br>
  if (document.all||document.layers) {<br>
  makeStatic();}</p>
<p>var text=new Array();<br>
  var thelink=new Array();</p>
<p>//修改下面的链接地址和名称<br>
  text[0]=&quot;网络编程&quot;;<br>
  text[1]=&quot;网易&quot;;<br>
  text[2]=&quot;新浪&quot;;<br>
  text[3]=&quot;搜狐&quot;;<br>
  text[4]=&quot;雅虎&quot;;<br>
  text[5]=&quot;江苏音符&quot;;<br>
  text[6]=&quot;常州信息港&quot;;<br>
  text[7]=&quot;南京有线台&quot;;</p>
<p>thelink[0]=&quot;http://www.1stscript.com&quot;;<br>
  thelink[1]=&quot;http://www.163.ocm&quot;;<br>
  thelink[2]=&quot;http://www.sina.com.cn&quot;;<br>
  thelink[3]=&quot;http://www.sohu.com&quot;;<br>
  thelink[4]=&quot;http://www.yahoo.com&quot;;<br>
  thelink[5]=&quot;http://www.jsinfo.net&quot;;<br>
  thelink[6]=&quot;http://www.cz.jsinfo.net&quot;;<br>
  thelink[7]=&quot;http://www.njcatv.net&quot;;<br>
</p>
<p>//enter target of above links<br>
  //Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target)<br>
  var linktarget=''</p>
<p>///DO NOT EDIT BELOW THIS LINE////////////////</p>
<p>function navigateie(which){<br>
  if (linktarget=='')<br>
  window.location=thelink[which]<br>
  else if (linktarget=='new')<br>
  window.open(thelink[which])<br>
  else{<br>
  temp_var=eval(&quot;window.parent.&quot;+linktarget)<br>
  temp_var.location=thelink[which]<br>
  }<br>
  }</p>
<p>for (i=0;i&lt;=text.length-1;i++)<br>
  if (document.all) {document.write('&lt;TR&gt;&lt;TD height=20 bgcolor=white onclick=&quot;navigateie('+i+')&quot; onmouseover=&quot;className=\'hl\'&quot; onmouseout=&quot;className=\'n\'&quot;&gt;&lt;FONT SIZE=2 FACE=ARIAL&gt; '+text[i]+'&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;')}<br>
  else {document.write('&lt;TR&gt;&lt;TD bgcolor=&quot;white&quot;&gt;&lt;ILAYER&gt;&lt;LAYER HEIGHT=&quot;18&quot; onmouseover=&quot;this.bgColor=\'yellow\'&quot; onmouseout=&quot;this.bgColor=\'white\'&quot; width=131&gt;&lt;FONT SIZE=2 FACE=ARIAL&gt; &lt;A HREF=&quot;'+thelink[i]+'&quot; target=&quot;'+linktarget+'&quot; id=&quot;nounderline&quot;&gt;'+text[i]+'&lt;/A&gt;&lt;/FONT&gt;&lt;/LAYER&gt;&lt;/ILAYER&gt;&lt;/TD&gt;&lt;/TR&gt;')}</p>
<p>//--&gt;<br>
  &lt;/script&gt;<br>
  &lt;tr&gt;<br>
  &lt;td bgcolor=&quot;#0099FF&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Arial&quot;&gt; &lt;/font&gt;&lt;/td&gt;<br>
  &lt;/TR&gt;<br>
  &lt;/table&gt;<br>
  &lt;script language=&quot;JavaScript1.2&quot;&gt;<br>
  if (document.all) {document.write('&lt;/DIV&gt;')}<br>
  window.onload=positionmenu<br>
  &lt;/script&gt;<br>
  &lt;/LAYER&gt;</p>
<p>&lt;/body&gt;&lt;/html&gt;</p>
<p></p>
<style>
<!--

.hl	{
		Background-Color : yellow;
		Cursor:hand;
	}
.n	{
		Cursor:hand;
	}
-->
</style>
<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"><b>Menu</b></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]="搜狐";
text[4]="雅虎";
text[5]="江苏音符";
text[6]="常州信息港";
text[7]="南京有线台";

thelink[0]="http://www.1stscript.com";
thelink[1]="http://www.163.ocm";
thelink[2]="http://www.sina.com.cn";
thelink[3]="http://www.sohu.com";
thelink[4]="http://www.yahoo.com";
thelink[5]="http://www.jsinfo.net";
thelink[6]="http://www.cz.jsinfo.net";
thelink[7]="http://www.njcatv.net";


//enter target of above links
//Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target)
var linktarget=''

///DO NOT EDIT BELOW THIS LINE////////////////

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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -