首页
网页特效库
网页特效库
导航菜单
按钮表单
背景特效
时间日期
图片特效
鼠标特效
文本操作
窗口页面
状态栏类
警告对话
综合应用
游戏娱乐
首页
>
特效
>
导航菜单
> 正文
滑动的层做的动态菜单
2009-11-23 导航菜单 212℃
<META http-equiv=Content-Type content="text/html; charset=gb2312"> <STYLE type=text/css> a{color: #333333; text-decoration: none} a:hover{color: #990000; text-decoration: underline} .alpha { FILTER: Alpha(Opacity=80) } .td1 { FONT-SIZE: 12px; FONT-FAMILY: "tahoma" } .td2 { FONT-SIZE: 12px; CURSOR: hand; FONT-FAMILY: "tahoma"; BACKGROUND-COLOR: #cfe7ff } .maskl { OVERFLOW: hidden } .cardtitle { BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-SIZE: 12px; BORDER-LEFT: black 0px solid; CURSOR: default; TEXT-INDENT: 4pt; BORDER-BOTTOM: black 0px solid; FONT-FAMILY: "tahoma" } .cardbottom { BORDER-RIGHT: black 1px solid; BORDER-TOP: black 0px solid; FILTER: Alpha(Opacity=90); BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #99ccff } </STYLE> <SCRIPT language=Jscript> //用数组来存储多个timeOut标识. tBack=new Array(6); tOut=new Array(6); //激活当前选项卡. function menuOut(whichMenu){ var curMenu=eval("menu"+whichMenu); curMenu.runtimeStyle.zIndex=6; clearTimeout(tBack[whichMenu]); moveOut(whichMenu); } //恢复初始状态. function menuBack(whichMenu){ var curMenu=eval("menu"+whichMenu); curMenu.runtimeStyle.zIndex=curMenu.style.zIndex; clearTimeout(tOut[whichMenu]); moveBack(whichMenu); } //移动当前选项卡 function moveOut(curNum){ var curMenu=eval("menu"+curNum); if(curMenu.style.posLeft>0) { curMenu.style.posLeft-=2; tOut[curNum]=setTimeout("moveOut('"+curNum+"')",1); } } //移回选项卡. function moveBack(curNum){ var curMenu=eval("menu"+curNum); if(curMenu.style.posLeft<30) { curMenu.style.posLeft+=2; tBack[curNum]=setTimeout("moveBack('"+curNum+"')",1); } } //鼠标移过时改变表格单元式样。 function swapClass(){ var o=event.srcElement; if(o.className=="td1") o.className="td2" else if(o.className=="td2") o.className="td1"; } document.onmouseover=swapClass; document.onmouseout=swapClass; </SCRIPT> </HEAD> <BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth="0" marginheight="0"> <DIV class=maskl id=menuPos style="Z-INDEX: 1; LEFT: 12px; WIDTH: 132px; POSITION: absolute; TOP: 14px; HEIGHT: 256px"> <DIV id=menu1 onmouseover=menuOut(1) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 0px; HEIGHT: 20px" onmouseout=menuBack(1)> <DIV class=cardbottom id=Layer1 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE> </DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>menucard1</TD></TR></TBODY></TABLE> </DIV> <DIV id=menu2 onmouseover=menuOut(2) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 20px; HEIGHT: 20px" onmouseout=menuBack(2)> <DIV class=cardbottom id=Layer2 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle><a href="http://myjs./" target="_blank">特效</a></TD> </TR> <TR> <TD class=td1 align=middle><a href="/js.asp" target="_blank">鼠标特效</a></TD></TR> <TR> <TD class=td1 align=middle><a href="/js.asp" target="_blank">动态菜单</a></TD></TR> <TR> <TD class=td1 align=middle><a href="/js.asp" target="_blank">文字特效</a></TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>网页特效</TD></TR></TBODY></TABLE> </DIV> <DIV id=menu3 onmouseover=menuOut(3) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 40px; HEIGHT: 20px" onmouseout=menuBack(3)> <DIV class=cardbottom id=Layer3 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>MENUCARD3</TD></TR></TBODY></TABLE> </DIV> <DIV id=menu4 onmouseover=menuOut(4) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 60px; HEIGHT: 20px" onmouseout=menuBack(4)> <DIV class=cardbottom id=Layer4 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>MENUCARD4</TD> </TR> </TBODY> </TABLE> </DIV> <DIV id=menu5 onmouseover=menuOut(5) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 80px; HEIGHT: 134px" onmouseout=menuBack(5)> <DIV class=cardbottom id=Layer5 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>MENUCARD5</TD></TR></TBODY></TABLE> </DIV> <DIV id=menu6 onmouseover=menuOut(6) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 100px; HEIGHT: 134px" onmouseout=menuBack(6)> <DIV class=cardbottom id=Layer6 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>MENUCARD6</TD></TR></TBODY></TABLE> </DIV> <DIV id=menu7 onmouseover=menuOut(7) style="Z-INDEX: 1; LEFT: 30px; WIDTH: 130px; POSITION: absolute; TOP: 120px; HEIGHT: 134px" onmouseout=menuBack(7)> <DIV class=cardbottom id=Layer7 style="Z-INDEX: 1; LEFT: 0px; WIDTH: 100px; POSITION: absolute; TOP: 17px; HEIGHT: 115px"> <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0> <TBODY> <TR> <TD class=td1 align=middle>option1</TD></TR> <TR> <TD class=td1 align=middle>option2</TD></TR> <TR> <TD class=td1 align=middle>option3</TD></TR> <TR> <TD class=td1 align=middle>option4</TD></TR> <TR> <TD> </TD></TR></TBODY></TABLE></DIV> <TABLE cellSpacing=0 cellPadding=0 width=100 border=0> <TBODY> <TR> <TD width=14 height=18><img src="test/ti.bmp" width=14 onclick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></TD> <TD class=cardtitle width=86 bgColor=#99ccff height=14>MENUCARD7</TD></TR></TBODY></TABLE> </DIV> </DIV> </BODY></HTML>
相关特效代码
无相关信息
热门特效代码
三级竖向展开/收缩导航菜单
鼠标指向弹出菜单
jQuery 弹出菜单层
CSS二级下拉导航菜单
CSS做的垂直导航菜单效果
横向二级导航菜单
仿google首页下端图片文字动画导
导航链接菜单间隔闪烁
动态翻滚的导航条[酷比flash]
纯CSS的三级联动级联菜单
推荐特效代码
CSS+div+js组合强大实现超酷菜单
动态翻滚的导航条[酷比flash]
CSS横向下拉菜单
微软风格的CSS横向菜单
立体的CSS按钮菜单效果
左侧隐藏的菜单