爱易网
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 浏览次数:20182 次
以下是程序代码
<html> <head> <script language="JavaScript"> <!-- //EYEspin_dhtml (c) Petre Stefan //email: eyecon@eyecon.ro //website: www.eyecon.ro //Modified by JavaScriptKit.com for relative positioning of menu //please leave this copyright notice intact eye={p:0,x:0,y:0,w:0,h:0,r:0,v:0,s:0,isVertical:0,a1:0,a2:0,a3:0,color:'#ffffff',colorover:'#ffffff',backgroundcolor:'#0099ff',backgroundcolorover:'#000000',bordercolor:'#000000',fontsize:12,fontfamily:'Arial',pas:0,spinmenu:function(){this.p=this.r/this.s;this.a1=this.a2=this.isVertical?0:Math.PI/2},spinmenuitem:function(a7,a6,a5){a4=" onclick='window.open(\""+a6+"\""+(a5?(",\""+a5+"\""):",\"_self\"")+")'";document.write("<div id='spinmenu"+this.a3+"' style='cursor:pointer;cursor:expression(\"hand\");position:absolute;width:"+this.w+"px;left:"+this.h+"px;"+"background-color:"+this.backgroundcolor+";color:"+this.color+";border:1px solid "+this.bordercolor+";font:normal "+this.fontsize+"px "+this.fontfamily+";text-align:center;cursor:default;z-Index:1000;' onmouseover='this.style.color=\""+this.colorover+"\";this.style.backgroundColor=\""+this.backgroundcolorover+"\"'"+ "onmouseout='this.style.color=\""+this.color+"\";this.style.backgroundColor=\""+this.backgroundcolor+"\"'"+a4+">"+a7+"</div>");this.a3++},muta:function(){a8=document.getElementById("controale");for(i=0;i<this.a3;i++){a9=document.getElementById("spinmenu"+i+"");a9s=a9.style;if(this.isVertical){xi=parseInt(this.r*Math.cos(this.a1+i*this.pas))/this.s;yi=parseInt(this.r*Math.sin(this.a1+i*this.pas));a10=(this.p+xi)/(2*this.p);a11=this.fontsize*(this.p+xi)/(2*this.p)+2;a12=parseInt(100*(this.p+xi)/(2*this.p))}else{xi=parseInt(this.r*Math.cos(this.a1+i*this.pas));yi=parseInt(this.r*Math.sin(this.a1+i*this.pas))/this.s;a10=(this.p+yi)/(2*this.p);a11=this.fontsize*(this.p+yi)/(2*this.p)+2;a12=parseInt(100*(this.p+yi)/(2*this.p))};a13=(this.w-20)*a10+20;a14=(this.h-20)*a10+10;a9s.top=(yi+this.y-a14/2)+"px";a9s.left=(xi+this.x-a13/2)+"px";a9s.width=a13+"px";a9s.fontSize=a11+"px";a9s.zIndex=a12};a8.style.top=this.y+(this.isVertical?this.r:this.p)+this.h/2+6;a8.style.left=this.x-a8.offsetWidth/2;if(this.a1!=this.a2){this.a1=(this.a1>this.a2)?(this.a1-this.pas/this.v):(this.a1+this.pas/this.v);if(Math.abs(this.a1-this.a2)<this.pas/this.v) this.a1=this.a2;setTimeout("eye.muta()",10)}},spinmenuclose:function(){this.pas=2*Math.PI/this.a3;document.write('<div id="controale" style="position:absolute"><button type="" onclick="eye.a2+=eye.pas;eye.muta()" onfocus="this.blur()"><<</button> <button type="" onclick="eye.a2-=eye.pas;eye.muta()" onfocus="this.blur()">>></button></div>');eye.muta()}}; function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft :totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset; } //--> </script> </head> <body> <script type="text/javascript"> eye.isVertical = 0; //if i
上一篇:狡猾的按钮特效
下一篇:一个漂亮的选项卡
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微信今天大面积崩溃 腾讯:因光缆施工被挖断
欧洲6万人起诉Facebook隐私侵权
微软觊觎移动互联市场:手机未出渠道先行
iPhone 6将于10月17日内地上市:售5288元起
高通反垄断案下月有望落定
手游市场乱象丛生 受资本热捧野蛮成长
墨迹也要做硬件,工具类应用如何“变异”的
谁说黑莓没救?他们在悄悄地深耕企业级市场,在这个领域,苹果三星算什么,他们远远不是黑莓的对手
宽带中国战略明确 运营商建设成本超6000亿
推荐阅读
更多>
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
人们为什么总愿尝试新社交网络?
科技巨匠体验谷歌眼镜:戴上了就不想摘上去
王建宙解构OTT效劳 中移动重塑飞信平台
电信运营商员工涌入虚拟运营商,待遇差距多大?
扎克伯格华裔妻子首度亮相电视节目畅谈情史
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
阿朗力避步北电后尘 急切停止自我革新
三问刘强东:京东为何近来火气这么大?
京东微信入口战略能否助力618大促创流量巅峰
568倍PE,“长跑者”亚马逊的高估值之谜
迅雷欲3300万美元收购金山快盘 预计9月完成
网曝富士康500万iphone遭退货是确证的事
阿里入股虎嗅:媒体的脊梁弯了?未必!
《归来》遭视频网盗播 乐视网状告小米盒子侵权
苹果售后生态链乱象:供需失衡价钱不一
微软大幅调整Bing在华策略:从高大上到接地气
黑狐病毒疯传播 电脑管家首推 专杀工具
2013年至今中国互联网行业十大并购案汇总