爱易网
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 浏览次数:20278 次
以下是程序代码
<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的竖型目录菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微软很“捉急”:补贴Win8 重加末尾按钮
百视通:Xbox One汉化获批 游戏迷欢呼吧
弯曲变形:手机全新的交互方式
京东终于想明白,这些年错过的财运,都藏在女人的时装下
传三星为赢得新兴市场:推廉价版Note3
华为野心布局未来:投资研发5G对赌1毫秒连接
惠普董事长莱恩辞职 为巨额财务减记埋单
苹果iWatch或使用量产液态金属 将取代玻璃
618首日看京东阿里不同策略,鹿死谁手?
推荐阅读
更多>
马云寄厚望于物流 “菜鸟”行情暂难持续
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
工商总局开查电商“七日退货”
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
腾讯为何在与阿里百度的收购比赛中当看客?
雅安地震救灾前线的科技之手 微弱而暖和
网络文学竞争白热化 百度多酷文学网上线
传360周鸿祎曾试图阻止百度收购91无线
估值增长9.8% 阿里IPO前市值达2450亿美元
谷歌欲收买WhatsApp添加砝码 对方否认
金山毒霸安全中心: XP退役后首个高危漏洞来了
余额宝收益率跌破5% 银行系宝宝收益率赶超
《中国三网融合业务运营管理》研讨报告征订函
刘强东:京东上市融资用于开拓三至六线城市
打车软件火了 恶性循环来了
中国电信内外受困 去电信化思绪待改
P2P平台科迅网疑“跑路” 涉及金额超2700万
薛蛮子取保后首次发微博表示:辜负你们了
腾讯再次重申:普通微信誉户相对不收费
挂号网高管团体离任 或因投资人失掉决计