爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
多级动感的带下一级的导航菜单
多级动感的带下一级的导航菜单
日期:2014-05-18 浏览次数:20249 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
有什么问题请到<a href='/bbs/index.asp?boardid=2'>论坛</a>中发表<br> <!-- http://www.aiyiweb.com --> <!-- bbs http://www.aiyiweb.com/bbs--> <!--要完成此效果需要三个步骤 第一步:把如下代码加入到<head>区域中--> <style> body,td,a {font-size:9pt;color:black;text-decoration:none} .normal {padding:2px} .up {padding:1px;border:#999999 1px solid;background:#cccccc} .down {padding:1px;border:dbdbdb 1px solid;background:dbdbdb} .menuv {filter: revealTrans(transition=23,duration=0.5);padding:2px} </style> <!--第二步:把如下代码加入到<body>区域中--> <script> //闪烁的表格边框 function flashit(){if(!document.all)return;if (td123.style.borderColor=="black")td123.style.borderColor="#999999";else td123.style.borderColor="black"}setInterval("flashit()",500) //渐入的效果,改变alpha值 function high(image){theobject=image,highlighting=setInterval("highlightit(theobject)",100)}function low(image){clearInterval(highlighting),image.filters.alpha.opacity=50}function highlightit(cur2){if (cur2.filters.alpha.opacity<100)cur2.filters.alpha.opacity+=20;else if(window.highlighting)clearInterval (highlighting)} //拖动层的js var over=false,down=false,divleft,divtop;function move(){if(down){plane.style.left=event.clientX-divleft;plane.style.top=event.clientY-divtop;}} //滑动层 function bodyload() { if(plane.style.pixelTop!=0) { plane.style.pixelTop-=10 setTimeout('bodyload()',1) } } //渐变显示层 function Show(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "visible"; divid.filters.revealTrans.play(); } function Hide(divid) { divid.filters.revealTrans.apply(); divid.style.visibility = "hidden"; divid.filters.revealTrans.play(); } </script> <div style="position:absolute;z-index:1;width:1;height:1; left: 0; top: 500" ID=plane onmousedown="down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)" onmouseup="down=false"> <table id="td123" cellspacing=2 width=100 border=0 style="BORDER:#999999 1px solid;cursor:hand" cellpadding="0" bgcolor="f4f4f4"> <tr> <td bgcolor="#cccccc" height="20" style="BORDER:#999999 1px solid;cursor:move"> <div align="center">多级滑动菜单</div> </td> </tr> <tr> <td class=normal onMouseDown="this.className='down'" onMouseOver="this.className='up',high(this),Show(menu1) " onMouseOut="this.className='normal',low(this),menu1.style.visibility='hidden'" style="filter:alpha(opacity=50)"onMouseUp="this.className='up'" > <div align="right">有下级菜单>></div> </td> </tr> <tr> <td class=normal onMouseDown="this.className='down'" onMouseOver="this.className='up',high(this),Show(menu2)" onMouseOut="this.className='normal',low(this),menu2.style.visibility='hidden'" style="filter:alpha(opacity=50)"onMouseUp="this.className='up'" > <div align="right">有下级菜单>></div> </td> </tr> <tr> <td class=normal onMouseDown="this.className='down'" onMouseOver="this.className='up',high(this)" onMouseOut="this.className='normal',low(this)" style="filter:alpha(opacity=50)"onMouseUp="this.className='up'"> <div align="right">无下级菜单>></div> </td> </tr> <tr> <td class=normal onMouseDown="this.className='down'" onMouseOver="this.className='up',high(this)" onMouseOut="this.className='normal',low(this)" style="filter:alpha(opacity=50)"onMouseUp="this.className='up'"> <div align="right">无下级菜单>></div> </td> </tr> </table> <div id="menu1" style="position:absolute;top:24px;left:96px; z-index:1; visibility: hidden; width: 105" onMouseOver=this.style.visibility='visible' onMouseOut=this.style.visibility='hidden' class="menuv">
上一篇:狡猾的按钮特效
下一篇:下拉cool菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果股价突破100美元大关:投资者看好iPhone 6
腾讯为何在与阿里百度的收购比赛中当看客?
中电信率先推移动转售业务 中下旬批量上市
史玉柱卸任巨人网络CEO 继位人选引猜想
苏宁易购成世界最慢电商 专家称其涉嫌违约
据消息传百度将要控股携程 整合去哪儿
揭秘:阿里巴巴“无人认领”的三成股权都归谁
苹果iWatch或使用量产液态金属 将取代玻璃
百度透露无人驾驶战略 研发三维交通地图
推荐阅读
更多>
“扫黄打非”下9158否认遭整顿
小米盗版有理激怒乐视:提500部盗播证据猛追打
《中国三网融合业务运营管理》研讨报告征订函
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
微软与摩托罗拉授权协议涵盖Android和Chrome设备
微信企业号必须搬走四座大山,否则只能铩羽而归!
英特尔技术高管离任 电视业务或受影响
从旗下三大业务BG发展看华为的过去现在和未来
分析称iPhone 6明年初发布 屏幕变为4.8吋
充斥着假消息负能量的“秘密”缺乏普适性
蘑菇街CEO陈琪:2015将回归社会化电商
网易云音乐能否为丁磊拿到移动互联网门票?
传4G牌照国庆节前后发放 TD-LTE制式优先
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
搜房网遭遇做空 利益保送成“猎杀”焦点
P2P平台科迅网疑“跑路” 涉及金额超2700万
赴美开店,阿里11Main准备好了吗?
Android版WhatsApp曝漏洞:聊天记录可被窃取
独立工具APP:为亿级用户的商业化而愁
HTC手机为何一败再败?效果出在供应链