爱易网
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特效
可拖动的菜单COOL菜单
可拖动的菜单COOL菜单
日期:2014-05-18 浏览次数:20223 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
有什么问题请到<a href='/bbs/index.asp?boardid=2'>论坛</a>中发表<br> <!-- http://www.aiyiweb.com --> <!-- bbs http://www.aiyiweb.com/bbs--> <!--要完成此效果需要两个步骤 第一步:把如下代码加入到<body>区域中--> <style> body,td,a {font-size:9pt;color:black} .none{border:black 1px solid;background:D9D9D9;padding-top:2} .over {border:black 1px solid;background:707888;color:white;padding-top:2} </style> <div style="position:absolute; left: 100; top: 20; width: 1; height: 1;cursor: hand" ID=plane onmousedown="down=true;divleft=event.clientX-parseInt(plane.style.left);divtop=event.clientY-parseInt(plane.style.top)"onmouseup="down=false"> <div align=center style="position:absolute; left:220px; top:3px; width:100px; height:19px; z-index:1;color:white;background:707888;cursor:move"onmouseover='stopTimerline();menuItemIn()' onmouseout='runTimerline()' class="none">可拖动的菜单</div> <div align=center id="item11" style="position:absolute; left:120px; top:25px; width:99px; height:19px; z-index:2; filter:alpha(opacity=0)" onmouseover="this.className='over';stopTimerline()" onmouseout="this.className='none';runTimerline()" class="none" >菜单项一</div> <div align=center id="item12" style="position:absolute; left:320px; top:47px; width:99px; height:19px; z-index:3;filter:alpha(opacity=0)" class=none onmouseover="this.className='over';stopTimerline()" onmouseout="this.className='none';runTimerline()">菜单项二</div> <div align=center id="item13" style="position:absolute; left:120px; top:69px; width:99px; height:19px; z-index:4; filter:alpha(opacity=0)" class=none onmouseover="this.className='over';stopTimerline()" onmouseout="this.className='none';runTimerline()">菜单项三</div> <div align=center id="item14" style="position:absolute; left:320px; top:91px; width:99px; height:19px; z-index:5;filter:alpha(opacity=0)" class=none onmouseover="this.className='over';stopTimerline()" onmouseout="this.className='none';runTimerline()">菜单项四</div> <div align=center id="item15" style="position:absolute; left:120px; top:113px; width:99px; height:19px; z-index:6; filter:alpha(opacity=0)" class=none onmouseover="this.className='over';stopTimerline()" onmouseout="this.className='none';runTimerline()">菜单项五</div> </div><script> //动画菜单 var currTimerlinePoint=0 var totalTimerlineFrames=2 var timerlineTimer var leftLine = 50 var timerIn var timerOut var timerlineArray = new Array() timerlineArray[0]='' timerlineArray[1]='menuItemOut()' function runTimerline() { window.timerlineTimer = setTimeout('menuItemOut()',500) } function stopTimerline() { clearTimeout(window.timerlineTimer) } function menuItemIn() { if( leftLine != 150) { item11.style.pixelLeft += 20; item11.filters.alpha.opacity += 20 item12.style.pixelLeft -= 20; item12.filters.alpha.opacity += 20 item13.style.pixelLeft += 20; item13.filters.alpha.opacity += 20 item14.style.pixelLeft -= 20; item14.filters.alpha.opacity += 20 item15.style.pixelLeft += 20; item15.filters.alpha.opacity += 20 leftLine += 20 } else { clearTimeout(window.timerIn) return false } timerIn=window.setTimeout('menuItemIn()',1) } function menuItemOut() { clearTimeout(window.timerIn) if (leftLine != 50) { item11.style.pixelLeft -= 20; item11.filters.alpha.opacity -= 20 item12.style.pixelLeft += 20; item12.filters.alpha.opacity -= 20 item13.style.pixelLeft -= 20; item13.filters.alpha.opacity -= 20 item14.style.pixelLeft += 20; item14.filters.alpha.opacity -= 20 item15.style.pixelLeft -= 20; item15.filters.alpha.opacity -= 20 leftLine -= 20 } else { clearTimeout(window.timerOut) return false; } timerOut=window.setTimeout("menuItemOut()",1) } self.moveTo(0,0) self.resizeTo(screen.avail
上一篇:狡猾的按钮特效
下一篇:多级动感的带下一级的导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
用友软件股价逆势下跌 再融资方案现曙光
阿里物流搭上邮政:京东,我们在终点等你!
淘宝公布新规:升级售假卖家惩罚力度
阿里巴巴450亿勾画“现代服务业”藏宝图
酷派首抓4G时机大丰收,未来份额必降无疑
马云寄厚望于物流 “菜鸟”行情暂难持续
让一让,小米4来了,碰见米粉请务必绕道走!
中国联通困局:遭遇OTT宽带4G三大难题
联通丹东公司一高管造假套出手机变卖被判刑7年
推荐阅读
更多>
Android应用审核乱象:诈骗软件冲上排行榜首
“组合拳”怎么打 拆解小米新玩法
京东确定IPO定价区间 最高募资16.9亿美元
传搜狗估值12亿美元 与360谈判进入白热化
HTC手机为何一败再败?效果出在供应链
优酷土豆携手新浪微博 谋攻移动视频失地
宽带中国战略明确 运营商建设成本超6000亿
一个非脑残米粉的思考:小米“成功之道”如何炼成
Line风靡亚洲,在北美却进展缓慢
亚马逊Fire Phone:请别拿我跟苹果三星比
刘强东向总理建言:打击有组织有规模的售假商家
中移动业绩增长趋缓 目光转向海外市场
“扫黄打非”下9158否认遭整顿
iSuppli:上网本将于2015年退出市场
亚马逊宣布新春大促策略 欲打造另一个"黑五"
微软不会被颠覆
让一让,小米4来了,碰见米粉请务必绕道走!
电信运营商员工涌入虚拟运营商,待遇差距多大?
网友爆料称微软雇水军宣传主机Xbox One
苹果音乐效劳新战略:与唱片商停止流媒体协作