爱易网
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特效
仿QQ的竖型目录菜单
仿QQ的竖型目录菜单
日期:2014-05-18 浏览次数:20204 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>仿QQ的竖型目录菜单,zzjs.net收集,站长特效网欢迎您。</title> <script language="JavaScript"> var titleHeight = 22; //标题的高度 var bodyHeight = 160; //菜单内容项的高度 var groupcount = 4; //组的个数 var step = 3; //移动速度 //显示菜单的内容 function showDiv(obj1, obj2) { //以下循环为改变标题的背景颜色 for(i=0;i<document.all.tags("td").length;i++) { if (document.all.tags("td")[i].className == 'headtd') document.all.tags("td")[i].bgColor = '#cccc66'; } obj2.bgColor = '#cccc66'; moveme(obj1); } //移动菜单内容 function moveme(obj) { idnumber = parseInt(obj.id.substr(4)); objtop = titleHeight * (idnumber - 1); objbuttom = bodyHeight + titleHeight * (idnumber - 2); currenttop = parseInt(obj.style.top); if (currenttop >= objbuttom) { //检验出每一个应该向上移动的层 countid = 1; for(i=0;i<document.all.tags("div").length;i++) { if (document.all.tags("div")[i].id == 'item'+countid+'body') { obj = document.all.tags("div")[i]; objtop = titleHeight * (countid - 1); moveup(obj,objtop); if (countid == idnumber) break; countid++; } } } else if ((currenttop <= objtop) && (idnumber < groupcount)) { //检验出每一个应该向下移动的层 idnumber++; countid = groupcount; for(i=document.all.tags("div").length-1;i>=0;i--) { if (document.all.tags("div")[i].id == 'item'+countid+'body') { obj = document.all.tags("div")[i]; objbuttom = bodyHeight + titleHeight * (countid - 2); movedown(obj,objbuttom); if (countid == idnumber) break; countid--; } } } } //向上移动的方法 function moveup(obj,objtop) { currenttop = parseInt(obj.style.top); if (currenttop > objtop) { obj.style.top = currenttop - step; window.setTimeout('moveup('+obj.id+','+objtop+')',1) } } //向下移动的方法 function movedown(obj,objbuttom) { currenttop = parseInt(obj.style.top); if (currenttop < objbuttom) { obj.style.top = currenttop + step; window.setTimeout('movedown('+obj.id+','+objbuttom+')',1) } } </script> <style type="text/css"> <!--showme .headtd { border: 3px outset; border-color: #00bbFF #0007cc #0007cc #00aacc; cursor: hand; font-size: 10pt} .bodytd { background: gray; border: 2px outset; border-color: #00aaFF #0007cc #0007cc #00aacc; font-size: 10pt} --> </style> </head> <body bgcolor="#FFFFFF" text="#000000"> <a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--> <div id="mainboard" style="position:absolute; left:2px; top:2px; width:120px; height:226px; z-index:3; overflow: hidden; background-color: #cccc66;"> <div id="item1body" style="position:absolute; left:0; top:0; width:120px; height:160px; z-index:1; overflow: hidden"> <table width="100%" border="0" height="100%" cellpadding="2" cellspacing="0"> <tr> <td id="item1head" height="20" class="headtd" onclick="showDiv(item1body,this)" bgcolor="#cccc66"> <div align="center">站长特效网</div> </td> </tr> <tr> <td class="bodytd"> <div align="center"><a href="http://www.zzjs.net">网站首页</a></div> <div align="center"><a href="<#ZC_BLOG_HOST#>?cat=11"&g
上一篇:狡猾的按钮特效
下一篇:类似工行的隐藏式导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
一大波智能路由器正在袭来:小米、360、极路由大PK
传苹果已告知鸿海:两款新iPhone下月发货
分析称iPhone 6明年初发布 屏幕变为4.8吋
迅雷欲3300万美元收购金山快盘 预计9月完成
FDD牌照短期不会发放 联通电信暗自提速建网
原万网CTO周雷加盟亿玛 出任CTO一职
创维冲击500亿梦想:转型硬件和内容供应商
黑狐病毒疯传播 电脑管家首推 专杀工具
诺基亚称不会更名“微软移动” 5月还将发布新品
推荐阅读
更多>
苹果已经允许开发者提交64位应用程序
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
中电信率先推移动转售业务 中下旬批量上市
揭秘:阿里巴巴“无人认领”的三成股权都归谁
富士康欲用机器人产iPhone 6
华为任正非:家族成员不会成为接班人
阿朗力避步北电后尘 急切停止自我革新
阿里物流搭上邮政:京东,我们在终点等你!
墨迹天气:产品创新以攻为守方能对抗巨头
2018年阿里云双11活动如何参加?1折优惠大攻略
从3G牌照发放看中国4G规划效果
估值增长9.8% 阿里IPO前市值达2450亿美元
电信资费新政:三巨头压力大 短期降价仍有争议
诺基亚培育低端机市场 迂回战术要挟中华酷联
OPPO Find7体验测 Find7综测
国美在线叫板京东:李俊涛底气在哪?
阿里巴巴上市后雅虎将面临更大的业绩压力
中移动五大基地将整改成公司:被指易滋生腐败
用友软件股价逆势下跌 再融资方案现曙光
Android版WhatsApp曝漏洞:聊天记录可被窃取