爱易网
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 浏览次数:20597 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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
上一篇:狡猾的按钮特效
下一篇:点击按钮后延迟跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
阿里入股虎嗅:媒体的脊梁弯了?未必!
苹果20年以来首次发债 融资170亿美元
《中国三网融合业务运营管理》研讨报告征订函
估值增长9.8% 阿里IPO前市值达2450亿美元
TD是完成中国梦的一个契机
京东微信入口战略能否助力618大促创流量巅峰
三星已经将Galaxy S5视为失败之作?
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
小米打响手机价格战 为米3铺路或另有所图
推荐阅读
更多>
开个房刷个卡全世界都知道个人隐私成公开秘密
云智慧:用大数据实现企业应用性能管理
QQ空间与微信龟兔赛跑,商业生态链陷入死循环
广电总局回应美剧下架:不是所有信息可公开
唯品会荣登“最贵中概股”的欢喜与哀愁
Android版WhatsApp曝漏洞:聊天记录可被窃取
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
京东进驻微信一级入口或影响自身战略布局
FB上广告费用昂贵而且效果不及Twitter
阿里国际化再落子:2.49亿美元投资新加坡邮政
史上最严电话实名制9月实行 三大难题待解
互联网金融一周年:余额宝最接地气,比特币最作死
支付宝曝平安破绽:转账信息被谷歌抓取
称产品遭诋毁 奇虎再诉百度
微软最后的救命稻草Win 8份额继续上升
工信部或本月17日向联通电信颁发FDD牌照
HTC与苹果三星距离扩展 C2B形式成新武器
P2P平台科迅网疑“跑路” 涉及金额超2700万
逆转猜想:如果阿里成为雅虎大股东会怎样?
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元