爱易网
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 浏览次数:20186 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:一个漂亮的选项卡
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
携程整合去哪儿陷入僵局 欲联手老对手艺龙
英特尔技术高管离任 电视业务或受影响
揭秘:阿里巴巴“无人认领”的三成股权都归谁
八位知名设计师评iOS7:新鲜但复杂
微软确认 Surface 计划更多尺寸和LTE 版本
酷派首抓4G时机大丰收,未来份额必降无疑
据消息传百度将要控股携程 整合去哪儿
华为、小米和联想在中国手机市场上演“三国杀”
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
推荐阅读
更多>
HTC与苹果三星距离扩展 C2B形式成新武器
9158屌丝逆袭 从在线“夜总会”转型KTV
广东移动高层受调查 中移动或现更大反腐风暴
HTC以品牌营销突围 专家建议改变经营思路
阿里巴巴上市后雅虎将面临更大的业绩压力
猎豹移动上市押海外市场 与小米有合作空间
史玉柱谈创业:5大建议 失败的教训最真实
华为变阵:任正非调整三大业务布局
前苹果顾问批判iPhone命名:不应加S
从3G牌照发放看中国4G规划效果
这一次,微软将带给我们什么惊喜?
京东封杀财付通:终极目标是电商生态圈
英特尔IDF峰会启示:释放移动互联的信号
小米发明的“低价抢购”模式还能管用多久?
银河证券王锦炎:金融业如何使用大数据
美剧讲硅谷创业者:远不及现实荒诞?
京东联席董事长赵国庆上市前夕离职
微软为避免代理权争夺 与大股东达成和解协议
京东物流"最后一公里":颠覆阿里或者被阿里干掉
美图手机2问世 三大问题令其市场销量堪忧