网页特效
建站首页
|
广告代码
|
源码下载
|
站长工具
|
字体下载
|
网页模板
|
收藏本站
|
设为首页
网站首页
菜单导航
日期时间
背景图像
图层样式
鼠标键盘
页面窗口
色彩表格
链接文字
表单按钮
计数转换
游戏娱乐
综合实例
特效
热门搜索:
特效代码
js脚本
导航菜单
热点推荐:
英文字体
人民币汇率
dw插件
站长常用软件
alexa排名查询
您的位置:
网页特效
->
菜单导航
-> 滑动的div层做的动态菜单
滑动的div层做的动态菜单
作者:admin 发布时间:2010-9-29 9:07:37 发布人: admin
<html> <head> <title>[酷] 滑动的div层做的动态菜单丨网页特效丨myjs.jz123.Cn</title> <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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></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://web.archive.org/web/20150428052257/http://myjs.jz123.cn/" target="_blank">网页.特效</a></td> </tr> <tr> <td class="td1" align="middle"><a href="http://web.archive.org/web/20150428052257/http://www.zzgjj.com.cn/" target="_blank">链接.交换</a></td></tr> <tr> <td class="td1" align="middle"><a href="http://web.archive.org/web/20150428052257/http://www.jz123.cn/soft/" target="_blank">源码.下载</a></td></tr> <tr> <td class="td1" align="middle"><a href="http://web.archive.org/web/20150428052257/http://tool.jz123.cn/" 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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></td> <td class="cardtitle" width="86" bgcolor="#99ccff" height="14">JZ123.Cn</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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></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 height="18" src="http://web.archive.org/web/20150428052257im_/http://myjs.jz123.cn/img/ti.bmp" width="14"></td> <td class="cardtitle" width="86" bgcolor="#99ccff" height="14">MENUCARD7</td></tr></tbody></table> </div> </div> </body> </html>
滑动的div层做的动态菜单
将本文收藏到QQ书签与更多好友分享
上一篇:文章:
一款三级下拉导航菜单
下一篇:文章:
拖动滑块控制图片显示大小
本类浏览排行 »
拖动滑块控制图片显示大小
滑动的div层做的动态菜单
一款三级下拉导航菜单
XHTML+CSS制作的下拉导航菜单
css实现的目录树型导航菜单
CSS制作的带凹凸阴影效果的网站导航
纯CSS制作的三级下拉菜单
一款纯CSS横向三级下拉菜单
本站推荐文章 »
滑动的div层做的动态菜单
垂直三栏自适应等高布局
仿QQ消息管理器的文本内容样式
支付宝的控制台动画效果菜单
文字、图片拖曳移动
可拉伸移动的DIV层效果
很酷的图片伸缩放大功能
较好的视觉效果的网页选项卡