酷酷菜单代码

原创 2005年02月26日 23:48:00

<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>酷酷菜单代码</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
var distance=0;distance1=0;
function move1()
{
if(distance!=50)
 {span1.style.pixelLeft+=1;span3.style.pixelLeft+=1;span5.style.pixelLeft+=1;span2.style.pixelLeft-=1;span4.style.pixelLeft-=1;span6.style.pixelLeft-=1;span1.filters.alpha.opacity+=2;span2.filters.alpha.opacity+=2;span3.filters.alpha.opacity+=2;span4.filters.alpha.opacity+=2;span5.filters.alpha.opacity+=2;span6.filters.alpha.opacity+=2;
midspan1.filters.alpha.opacity+=2;midspan2.filters.alpha.opacity+=2;midspan1.style.pixelTop+=1;midspan2.style.pixelTop-=1;
leftspan.filters.alpha.opacity+=2;rightspan.filters.alpha.opacity+=2;
censpan.filters.alpha.opacity-=1;
distance++;setTimeout('move1()',1);
 }else{move2();};
abovespan1.style.display='none';abovespan2.style.display='none';
}

function move2()
{
censpan.style.display='none';
if(distance1!=44)
{colspan1.style.pixelLeft+=1;colspan2.style.pixelLeft-=1;colspan3.style.pixelLeft+=1;colspan4.style.pixelLeft-=1;
rowspan1.style.pixelTop+=1;rowspan2.style.pixelTop+=1;rowspan3.style.pixelTop-=1;rowspan4.style.pixelTop-=1;rowspan5.style.pixelTop+=1;rowspan6.style.pixelTop+=1;rowspan7.style.pixelTop-=1;rowspan8.style.pixelTop-=1;
rowspan1.filters.alpha.opacity+=1;rowspan2.filters.alpha.opacity+=1;rowspan3.filters.alpha.opacity+=1;rowspan4.filters.alpha.opacity+=1;rowspan5.filters.alpha.opacity+=1;rowspan6.filters.alpha.opacity+=1;rowspan7.filters.alpha.opacity+=1;rowspan8.filters.alpha.opacity+=1;
colspan1.filters.alpha.opacity+=2;colspan2.filters.alpha.opacity+=2;colspan3.filters.alpha.opacity+=2;colspan4.filters.alpha.opacity+=2;
upspan1.style.pixelTop-=1;upspan2.style.pixelTop+=1;upspan1.filters.alpha.opacity+=2;upspan2.filters.alpha.opacity+=2;
spanA.style.pixelLeft-=1;spanB.style.pixelLeft+=1;spanA.filters.alpha.opacity+=2;spanB.filters.alpha.opacity+=2;
distance1++;
spanC.style.pixelLeft-=2;spanD.style.pixelLeft+=2;spanC.filters.alpha.opacity+=1;spanD.filters.alpha.opacity+=1;
setTimeout('move2()',1);}
}
//-->
</SCRIPT>
</head>
<body>
<span id=span1 style=filter:alpha(opacity=0);position:absolute;left:200;top:100;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add1.style.display='block';midspan2.innerText="菜单一的主题";midspan1.innerText="ONE" onmouseout=this.style.background='orange';add1.style.display='none';midspan2.innerText="";>菜单一</span><br>
<span id=span2 style=filter:alpha(opacity=0);position:absolute;left:300;top:115;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add2.style.display='block';midspan2.innerText="菜单二的主题";midspan1.innerText="TWO" onmouseout=this.style.background='orange';add2.style.display='none';midspan2.innerText="";>菜单二</span><br>
<span id=span3 style=filter:alpha(opacity=0);position:absolute;left:200;top:130;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add3.style.display='block';midspan2.innerText="菜单三的主题";midspan1.innerText="THREE" onmouseout=this.style.background='orange';add3.style.display='none';midspan2.innerText="";>菜单三</span><br>
<span id=span4 style=filter:alpha(opacity=0);position:absolute;left:300;top:145;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add4.style.display='block';midspan2.innerText="菜单四的主题";midspan1.innerText="FOUR" onmouseout=this.style.background='orange';add4.style.display='none';midspan2.innerText="";>菜单四</span><br>
<span id=span5 style=filter:alpha(opacity=0);position:absolute;left:200;top:160;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add5.style.display='block';midspan2.innerText="菜单五的主题";midspan1.innerText="FIVE" onmouseout=this.style.background='orange';add5.style.display='none';midspan2.innerText="";>菜单五</span><br>
<span id=span6 style=filter:alpha(opacity=0);position:absolute;left:300;top:175;z-index:1;width:50;height:15;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onmouseover=this.style.background='306898';add6.style.display='block';midspan2.innerText="菜单六的主题";midspan1.innerText="SIX" onmouseout=this.style.background='orange';add6.style.display='none';midspan2.innerText="";>菜单六</span><br>
<span id=leftspan style=filter:alpha(opacity=0);position:absolute;left:191;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rightspan style=filter:alpha(opacity=0);position:absolute;left:299;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=abovespan1 style=z-index:6;filter:alpha(opacity=0);position:absolute;left:191;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=abovespan2 style=z-index:6;filter:alpha(opacity=0);position:absolute;left:299;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=spanA style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:221;top:110;width:20;height:71;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=spanB style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:309;top:110;width:20;height:71;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=spanC style=z-index:-2;filter:alpha(opacity=0);position:absolute;left:251;top:120;width:20;height:51;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=spanD style=z-index:-2;filter:alpha(opacity=0);position:absolute;left:279;top:120;width:20;height:51;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan1 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:231;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan2 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:211;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan3 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:231;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan4 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:211;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan5 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:310;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan6 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:331;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan7 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:310;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=rowspan8 style=z-index:-1;filter:alpha(opacity=0);position:absolute;left:331;top:100;width:10;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=midspan1 style=filter:alpha(opacity=0);position:absolute;left:252;top:142;width:46;height:30;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=midspan2 style=filter:alpha(opacity=0);position:absolute;left:252;top:119;width:46;height:30;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=colspan1 style=z-index=-1;filter:alpha(opacity=0);position:absolute;left:252;top:199;width:60;height:10;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=colspan2 style=z-index=-1;filter:alpha(opacity=0);position:absolute;left:238;top:199;width:60;height:10;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=colspan3 style=z-index=-1;filter:alpha(opacity=0);position:absolute;left:252;top:77;width:60;height:10;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=colspan4 style=z-index=-1;filter:alpha(opacity=0);position:absolute;left:238;top:77;width:60;height:10;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;></span>
<span id=add1 style=filter:alpha(opacity=30);position:absolute;left:299;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单1内容</span>
<span id=add3 style=filter:alpha(opacity=30);position:absolute;left:299;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单3内容</span>
<span id=add5 style=filter:alpha(opacity=30);position:absolute;left:299;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单5内容</span>
<span id=add2 style=filter:alpha(opacity=30);position:absolute;left:191;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单2内容</span>
<span id=add4 style=filter:alpha(opacity=30);position:absolute;left:191;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单4内容</span>
<span id=add6 style=filter:alpha(opacity=30);position:absolute;left:191;top:100;width:60;height:91;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;display:none;><br><br>菜单6内容</span>
<span id=censpan style=filter:alpha(opacity=30);z-index:5;position:absolute;left:252;top:138;width:46;height:10;background:red;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand; onclick=move1();>start</span>
<span id=upspan1 style=filter:alpha(opacity=0);z-index:-1;position:absolute;left:262;top:78;width:26;height:70;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand;></span>
<span id=upspan2 style=filter:alpha(opacity=0);z-index:-1;position:absolute;left:262;top:138;width:26;height:70;background:orange;border-style:solid;border-width:1;text-align:center;font-size:9pt;cursor:hand;></span>

</body>
</html>

相关文章推荐

一个酷酷的log

忙了大半年,继续写写博客。这个是我在github上找到的一个log库,不知道是哪位大神,然后自己改动了下下。原github地址是logger然后自己封装成了一个logger.jar可以直接放进去。不用...

ajax系列教程,从读取,修改,添加,到酷酷的删除效果!

====================================================== 注:本文源代码点此下载 =============================...

CSU 1505——酷酷的单词

输入一些仅由小写字母组成的单词。你的任务是统计有多少个单词是“酷”的,即每种字母出现的次数都不同。 比如ada是酷的,因为a出现2次,d出现1次,而1和2不同。再比如,banana也是酷的,因为...

兄弟连这屌丝文化,酷酷的!

兄弟连这屌丝文化,酷酷的! 兄弟连这屌丝文化,酷酷的!     呀!一晃十一大长假过去了,这七天兄弟们过的还爽吗?没缓过来劲吧!恩恩,那给你们上几组兄弟连又屌丝又屌丝的大片看看!     这...

盘点 html5 新增的那些酷酷的 input 类型和属性

今天正式开始学习html5了,相比html以前的版本,html5新增了好多功能,属性,使我们做出来的界面更加的绚丽,而且使用起来超级简单,这篇文章先来说说html增加的那些input类型和属性。 ...

MySql 酷酷小店sql

/*!40101 SET CHARACTER SET 'gb2312' */; DROP DATABASE IF EXISTS `db_kukushopping`; CREATE DATA...

酷酷的前端MVC框架AngularJS(一)简介

AngularJS是由于google团队开发的一款非常优秀和迷人的前端MVC框架, MVC的概念一直都存在于后端的WEB开发中,经过大量的实际验证和应用,足以说明该模式的重要。后端的MVC框架由很多,...

酷酷录像 AVI格式 适合word

  • 2012年11月15日 15:20
  • 543KB
  • 下载

一个酷酷的登陆页面带(css+js)

  • 2016年07月18日 15:21
  • 36KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:酷酷菜单代码
举报原因:
原因补充:

(最多只允许输入30个字)