爱易网
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特效
JS树形菜单
JS树形菜单
日期:2014-05-18 浏览次数:20298 次
以下是HTML网页特效代码,点击运行按钮可查看效果:
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>树形菜单2</title> <style type="text/css"> <!-- .headtd1 { background: #00A4E1; border: 2px outset; border-color: #00BBFF #0077FF #0077FF #00BBFF; cursor: hand; font-size: 9pt} .headtd2 { background: #20C1FF; border: 2px outset; border-color: #60D3FF #0077FF #0077FF #60D3FF; cursor: hand; font-size: 9pt} .bodytd { background: #99CCFF; border: 2px outset; border-color: #B0D8FF #0077FF #0077FF #B0D8FF; font-size: 9pt} --> </style> <script language="JavaScript"> scores = new Array(20); var numTotal=0;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 getIndex(el) { ind = null; for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id == el) { ind = i; break; } } return ind;}function arrange() { nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; nextY += whichEl.document.height; } }}function initIt(){ if (!ver4) return; if (NS4) { for (i=0; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide"; } arrange(); } else { divColl = document.all.tags("DIV"); for (i=0; i<divColl.length; i++) { whichEl = divColl(i); if (whichEl.className == "child") whichEl.style.display = "none"; } }}function expandIt(el) { if (!ver4) return; if (IE4) { whichEl1 = eval(el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval(scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.style.display = "none"; } } whichEl1 = eval(el + "Child"); if (whichEl1.style.display == "none") { whichEl1.style.display = "block"; } else { whichEl1.style.display = "none"; } } else { whichEl = eval("document." + el + "Child"); for(i=1;i<=numTotal;i++){ whichEl = eval("document." + scores[i] + "Child"); if(whichEl!=whichEl1) { whichEl.visibility = "hide"; } } if (whichEl.visibility == "hide") { whichEl.visibility = "show"; } else { whichEl.visibility = "hide"; } arrange(); }}onload = initIt; </script> <script language="JavaScript"> <!-- //该函数在调用过程中只需要在将要点击的单元格内的onclick事件中调用showme函数即可 //function showme(obj1, obj2)该函数主要为使点击的对象高亮度显示,并调用moveme函数,参数obj1为母体即<div>标签的id,obj2为点击对象本身 //functi
上一篇:狡猾的按钮特效
下一篇:可刷新的JS树形菜单特效
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
支付宝27日晚间曝严重破绽:买卖记载可被搜索
首家国有独资P2P平台上线 或预示政策日渐明朗
2013年至今中国互联网行业十大并购案汇总
黑莓高管:黑莓能作为家“小众公司”活下来
苹果音乐效劳新战略:与唱片商停止流媒体协作
微信将商场O2O战火烧到了阿里巴巴老家
虚拟运营商前路迷茫 业界建议发力车联网
携程整合去哪儿陷入僵局 欲联手老对手艺龙
中移动财报外的"五座大山":运营商沦为走秀陪衬
推荐阅读
更多>
三大运营商合建铁塔公司真相:未涉及电信业重组
亚马逊Fire Phone:请别拿我跟苹果三星比
中移动五大基地将整改成公司:被指易滋生腐败
独立工具APP:为亿级用户的商业化而愁
运营商补贴减少 国内通信业拐点逼近
阿里国际化再落子:2.49亿美元投资新加坡邮政
iPhone5S组件曝光 印证杀手级功能存在
支付宝钱包支持医保移动缴费 广州成首个试点
中兴通讯不打机海战术 将向中高端手机转型
广电总局回应美剧下架:不是所有信息可公开
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
HTC曝出特大丑闻:高管诈骗+商业间谍
唯品会荣登“最贵中概股”的欢喜与哀愁
马云自称在美国曾被绑票
欧洲6万人起诉Facebook隐私侵权
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
HTC手机为何一败再败?效果出在供应链
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
雷军收买腾讯金山股份:持股比例升至27%
支付宝27日晚间曝严重破绽:买卖记载可被搜索