爱易网
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 浏览次数:20202 次
以下是程序代码
<html> <head> <title>竖型白板页面目录菜单,aiyiweb整理收集。</title> <script language="JavaScript"> //判断浏览器的变量 NS4 = (document.layers) ? 1 : 0; IE4 = (document.all) ? 1 : 0; ver4 = (NS4 || IE4) ? 1 : 0; //定义各个层的位置及显示状态 if (ver4) { with (document) { write("<STYLE TYPE='text/css'>"); if (NS4) { write(".parent {position:absolute; visibility:visible}"); write(".child {position:absolute; visibility:visible}"); write(".regular {position:absolute; visibility:visible}") } else { write(".child {display:none}") } write("</STYLE>"); } } //当菜单打开时,页面上菜单以下的东西的位置顺序往下推,菜单合起时,菜单以下的东西自动上移。 function arrange() { nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichele = document.layers[i]; if (whichele.visibility != "hide") { whichele.pageY = nextY; nextY += whichele.document.height; } } } //初始化菜单 function initIt(){ if (!ver4) return; if (NS4) { for (i=0; i<document.layers.length; i++) { whichele = document.layers[i]; if (whichele.id.indexOf("Child") != -1) whichele.visibility = "hide"; } arrange(); } else { divColl = document.all.tags("DIV"); for (i=0; i<divColl.length; i++) { whichele = divColl(i); if (whichele.className == "child") whichele.style.display = "none"; } } } //展开菜单的方法 function expandIt(ele) { if (!ver4) return; if (IE4) { whichele = eval(ele + "Child"); if (whichele.style.display == "none") { whichele.style.display = "block"; } else { whichele.style.display = "none"; } } else { whichele = eval("document." + ele + "Child"); if (whichele.visibility == "hide") { whichele.visibility = "show"; } else { whichele.visibility = "hide"; } arrange(); } } onload = initIt; </script> </head> <body> 告诉你一个应有尽有的网页特效网址:<a href="http://js.aiyiweb.com">http://js.aiyiweb.com</a> <hr /> <div id="menuParent" class="parent"> <a href="#" onClick="expandIt('menu'); return false" >爱易网白板菜单一</a></div> <div id="menuChild" class="child"> <a href="http://www.aiyiweb.com" target="_blank" >爱易网</a><br> <a href="http://js.aiyiweb.com" target="_blank" >网页特效</a><br> <a href="http://book.aiyiweb.com" target="_blank" >电子书籍</a></div> <div id="Menu2Parent" class="parent"> <a href="#" onClick="expandIt('Menu2'); return false" >爱易网白板菜单二</a></div> <div id="Menu2Child" class="child"> <a href="http://down.aiyiweb.com" target="_blank" >源码下载</a><br> <a href="http://tool.aiyiweb.com" target="_blank" >站长工具</a><br> <a href="http://bbs.aiyiweb.com" target="_blank" >登陆论坛</a></div> <div id="Menu3Parent"
上一篇:狡猾的按钮特效
下一篇:类似QQ的竖型目录菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
9158屌丝逆袭 从在线“夜总会”转型KTV
iPhone 6 Plus要召回是谣言
云储存有多远:跨过数据安全问题即可到达
英特尔IDF峰会启示:释放移动互联的信号
据消息传百度将要控股携程 整合去哪儿
传谷歌开发者大会发布Android 4.3 并非5.0版本
微博启动自媒体计划 粉丝+收入双激励是亮点
IT企业人才争夺战打响:员工待遇水涨船高
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
推荐阅读
更多>
一大波智能路由器正在袭来:小米、360、极路由大PK
携程收买酷讯成定局:转型互联网+投资
微软的云服务显示出他们将自我进化
搜狐与奇虎360或结盟对抗BAT
支付宝全面封杀比特币:充值码淘宝店或遭封禁
云储存有多远:跨过数据安全问题即可到达
“论文查重”网店一月收入竟过百万
京东封杀财付通:终极目标是电商生态圈
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
称产品遭诋毁 奇虎再诉百度
iPhone 6 Plus要召回是谣言
十亿美元的告别礼:三星为何要大举重组?
从WPS到office365,中国企业能否赶超美国?
佳能利润大跌三成 智能终端倒逼相机厂商转型
特斯拉技术专利开放,要革自己的命?
惠普中国转型只是缩影 未来开展不可预期
做大电影,阿里控股公司在港成立影业集团
中移动“重启”自有品牌手机成败难料
FDD牌照12月将发放 联通电信双4G反击中移动
诺基亚培育低端机市场 迂回战术要挟中华酷联