爱易网
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 浏览次数:20576 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script> var menus = new Array(); var isShow = new Boolean(); isShow=false; var isdown = new Boolean(); isdown=false; var srcel; var fromel; var toel; var usestatus=false; var thestatus=""; var popTimer = 0; menucolor='#EEBF99';fontcolor='MenuText';menuoutcolor='#F3D5B8';menuincolor='#F8E8D6';menuoutbordercolor='#FCF3EF';menuinbordercolor='#000000';midoutcolor='#F2D0B5';midincolor='#9E7F66';menuovercolor='#E80005';menuunitwidth=160;menuitemwidth=160;menuheight=180;menuwidth='160';menuadjust=0; menualign='center';leftchar='(无)';rightchar='(无)';fonts='font-family: 宋体; font-size: 9pt; color: MenuText; ';cursor='default'; var fadeSteps = 5; var fademsec = 20; var fadeArray = new Array(); function fade(el, fadeIn, steps, msec) { if (steps == null) steps = fadeSteps; if (msec == null) msec = fademsec; if (el.fadeIndex == null) el.fadeIndex = fadeArray.length; fadeArray[el.fadeIndex] = el; if (el.fadeStepNumber == null) { if (el.style.visibility == "hidden") el.fadeStepNumber = 0; else el.fadeStepNumber = steps; if (fadeIn) el.style.filter = "Alpha(Opacity=0)"; else el.style.filter = "Alpha(Opacity=100)"; } window.setTimeout("repeatFade(" + fadeIn + "," + el.fadeIndex + "," + steps + "," + msec + ")", msec); } function repeatFade(fadeIn, index, steps, msec) { el = fadeArray[index]; c = el.fadeStepNumber; if (el.fadeTimer != null) window.clearTimeout(el.fadeTimer); if ((c == 0) && (!fadeIn)) { el.style.visibility = "hidden"; return; } else if ((c==steps) && (fadeIn)) { el.style.filter = ""; el.style.visibility = "visible"; return; } else { (fadeIn) ? c++ : c--; el.style.visibility = "visible"; el.style.filter = "Alpha(Opacity=" + 100*c/steps + ")"; el.fadeStepNumber = c; el.fadeTimer = window.setTimeout("repeatFade(" + fadeIn + "," + index + "," + steps + "," + msec + ")", msec); } } function popOut() { popTimer = setTimeout('allhide()', 1000); } function getReal(el, type, value) { temp = el; while ((temp != null) && (temp.tagName != "BODY")) { if (eval("temp." + type) == value) { el = temp; return el; } temp = temp.parentElement; } return el; } function MenuRegister(menu) { menus[menus.length] = menu return (menus.length - 1) } function MenuItem(caption,command,target,isline,statustxt){ this.caption=caption; this.command=command; this.target=target; this.isline=isline; this.statustxt=statustxt; } function Menu(caption,command,target){ this.items = new Array(); this.caption=caption; this.command=command; this.target=target; this.id=MenuRegister(this); } function MenuAddItem(item) { this.items[this.items.length] = item item.parent = this.id; this.children=true; } Menu.prototype.addItem = MenuAddItem; function toout(src){ src.style.borderLeftColor=menuoutbordercolor; src.style.borderRightColor=menuinbordercolor; src.style.borderTopColor=menuoutbordercolor; src.style.borderBottomColor=menuinbordercolor; src.style.backgroundColor=menuoutcolor; src.style.color=menuovercolor; } function toin(src){ src.style.borderLeftColor=menuinbordercolor; src.style.borderRightColor=menuoutbordercolor; src.style.borderTopColor=menuinbordercolor; src.style.borderBottomColor=menuoutbordercolor; src.style.backgroundColor=menuincolor; src.style.color=menuovercolor; } function nochange(src){ src.style.borderLeftColor=menucolor; src.style.borderRightColor=menucolor; src.style.borderTopColor=menucolor; src.style.borderBottomColor=menucolor; src.style.backgroundColor=menucolor; src.style.color=fontcolor; } function allhide(){ for(var nummenu=0;nummenu<menus.length;nummenu++){ var themenu=document.all['menu'+nummenu] var themenudiv=docu
上一篇:狡猾的按钮特效
下一篇:点击按钮后延迟跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
惠普董事长莱恩辞职 为巨额财务减记埋单
广电地方营业厅的一句“罚停”,暴露出了他们的本质
中移动“重启”自有品牌手机成败难料
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
网曝富士康500万iphone遭退货是确证的事
传苹果与雅虎协作信息提供 进一步摆脱谷歌
做大电影,阿里控股公司在港成立影业集团
苹果已经允许开发者提交64位应用程序
余额宝收益率跌破5% 银行系宝宝收益率赶超
推荐阅读
更多>
苹果多色彩!葫芦里究竟卖的什么药
搜狐前副总编何毅加盟乐视 任车联网公司CEO
iPhone5S组件曝光 印证杀手级功能存在
代工厂生活危机:“富士康们”何去何从?
墨迹也要做硬件,工具类应用如何“变异”的
“宽带中国”计划已正式上升为国家战略
微软提示XP只剩365天寿命:用户被绑架?
看病也能用支付宝了 马云的又一盘大棋
“扫黄打非”下9158否认遭整顿
阿里入股虎嗅:媒体的脊梁弯了?未必!
中移动五大基地将整改成公司:被指易滋生腐败
史玉柱谈创业:5大建议 失败的教训最真实
华为变阵:任正非调整三大业务布局
亚马逊第三方平台真的卖盗版书?
移动联通回应税率改革:短期内收入利润将大减
传4G牌照国庆节前后发放 TD-LTE制式优先
京东很忙:升服务推产品更新招股书 能赶在阿里前上市?
电信业营改增今起实施 运营商短期利润骤降
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
清点:罗永浩推锤子ROM 小米打法遭模拟