爱易网
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 浏览次数:20540 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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
上一篇:狡猾的按钮特效
下一篇:点击按钮后延迟跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
小米移动芯片:英伟达退出,终会加强与联发科合作
FB上广告费用昂贵而且效果不及Twitter
国网公司将加快组建 业界人士称困难重重
中电信国际漫游费下调85% 世界杯上网28元/天
苹果已经允许开发者提交64位应用程序
网络旅行游记被曝插入"软广告" 个别人士月入数万
打车软件竞争白热化:有冷兵器时代意味
中移动业绩增长趋缓 目光转向海外市场
国美在线叫板京东:李俊涛底气在哪?
推荐阅读
更多>
用友软件股价逆势下跌 再融资方案现曙光
独立工具APP:为亿级用户的商业化而愁
微软确认 Surface 计划更多尺寸和LTE 版本
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
易信工具性优势突出 丁磊三板斧或先砍在飞信上
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
马云:银行若放开存款利率 余额宝死了也光荣
网易云音乐能否为丁磊拿到移动互联网门票?
广电地方营业厅的一句“罚停”,暴露出了他们的本质
三大运营商合建铁塔公司真相:未涉及电信业重组
携程收买酷讯成定局:转型互联网+投资
迅雷高管解读财报:收购快盘可快速融入小米
OPPO创始人陈明永:我们是怎么做营销的
苹果音乐效劳新战略:与唱片商停止流媒体协作
在线音乐出现“小米公司”不是没有可能
TD是完成中国梦的一个契机
亚马逊落户上海自贸区:美国货直邮中国
P2P平台科迅网疑“跑路” 涉及金额超2700万
谷歌欲收买WhatsApp添加砝码 对方否认
埃里克杰克森:阿里IPO估值至少1500亿美元