爱易网
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特效
Js DVML:很酷实用的右键弹出菜单
Js DVML:很酷实用的右键弹出菜单
日期:2014-05-18 浏览次数:20345 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<HTML xmlns:v><HEAD> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>网页特效代码|JsCode.CN|---Js+DVML:很酷实用的右键弹出菜单</title> <STYLE> v\:*{behavior:url(#default#VML);} .menulist{position:static;PADDING-TOP:6;LETTER-SPACING:8;HEIGHT:20;TEXT-ALIGN:center;margin-bottom:-2} </STYLE> </head> <BODY oncontextmenu='return false'> <Script> //作者:风云舞 var menutime1=null,showobjs1=null //menutime1=循环计时器调用变量,showobjs1=绑定菜单,定时器过程执行时调用 function document.onmouseup(){if(event.button==2)menushow(menu2,60,10)} function menushow(showobjs,showwid,showsudu){ //右键菜单展开函数 //函数说明:menushow(菜单id,项平均宽度,伸展速度) if(menutime1!=null){clearInterval(menutime1);menutime1=null} showobjs.style.left=event.x;showobjs.style.top=event.y; showobjs1=showobjs.all.tags("roundrect");var showlens=showobjs1.length for(i=0;i<showlens;i++){showobjs1[i].style.width=0;showobjs1[i].style.visibility="hidden"} showobjs.style.display="" menutime1=setInterval("for(i=0;i<"+showlens+";i++){showobjs1[i].style.visibility='';if(showobjs1[i].offsetWidth<"+showwid+"){showobjs1[i].style.width=showobjs1[i].offsetWidth+"+showsudu+";break;}else{if(i=="+(showlens-1)+"){clearInterval(menutime1);menutime1=null}}}",20) } function menuclose(showobjs2,showsudu2){ //右键菜单关闭函数 //函数说明:menushow(菜单id,关闭压缩速度) if(menutime1!=null)return false showobjs1=showobjs2.all.tags("roundrect");var showlens=showobjs1.length-1 menutime1=setInterval("for(i="+showlens+";i>-1;i--){if(showobjs1[i].offsetWidth>0){try{showobjs1[i].style.width=showobjs1[i].offsetWidth-"+showsudu2+";break;}catch(e){showobjs1[i].style.visibility='hidden';if(i==0){clearInterval(menutime1);menutime1=null}}}}",20) } </script> <span id=menu2 style="position:absolute;Z-INDEX:40000;LEFT:395;TOP:210;color:#739EFE;cursor:hand;display:none;font-size:12px;font-family:宋体" onmouseover="if(event.srcElement.tagName=='roundrect'){event.srcElement.strokecolor='blue';event.srcElement.style.color='blue';event.srcElement.style.marginLeft=10}" onmouseout="if(event.srcElement.tagName=='roundrect'){event.srcElement.strokecolor='#739EFE';event.srcElement.style.color='#739EFE';event.srcElement.style.marginLeft=0}"> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/><a target=_blank href=http://jscode.cn>网格</a></v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>矩阵</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>分界线</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>刷新</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>设置</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>项</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>项.</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=gradient opacity=.4 color=#739EFE color2=white angle="50"/>项..</v:roundrect> <v:roundrect class=menulist arcsize=0.5 strokecolor=#739EFE> <v:fill type=
上一篇:狡猾的按钮特效
下一篇:JS省市二级联动网页特效菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
固话上网卡或将实名制 运营商泄露用户信息将被罚
支付宝被曝严重破绽 隐私平安再受质疑
雷军收买腾讯金山股份:持股比例升至27%
腾讯为何在与阿里百度的收购比赛中当看客?
HDS发布《2013中国CIO洞察白皮书》
小米移动芯片:英伟达退出,终会加强与联发科合作
电话用户9月实名制:运营商监管受质疑
微软的云服务显示出他们将自我进化
窗口期:还有哪些互联网公司可能今年IPO?
推荐阅读
更多>
中国首台比特币ATM登陆上海 可购买不可兑换现钞
携程整合去哪儿陷入僵局 欲联手老对手艺龙
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
电信资费新政:三巨头压力大 短期降价仍有争议
富士康欲用机器人产iPhone 6
同样的背景,罗永浩和雷军到底有什么不同?
火一把就死: 百度魔图验证社交游戏衰亡宿命
《中国三网融合业务运营管理》研讨报告征订函
诺基亚称不会更名“微软移动” 5月还将发布新品
广电地方营业厅的一句“罚停”,暴露出了他们的本质
中国邮政与阿里合作:邮政网点可做网购自提点
智能手机:中国手机市场最受关注十五款产品清点
工信部或本月17日向联通电信颁发FDD牌照
京东进驻微信一级入口或影响自身战略布局
互联网情色众多 Facebook与9158态度大不同
火狐手机发展前路:或被运营商绑架
杨元庆去年总薪酬1.33亿元
HTC曝出特大丑闻:高管诈骗+商业间谍
谷歌安卓全球副总裁为何跳槽中国企业小米?
阿里国际化再落子:2.49亿美元投资新加坡邮政