爱易网
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 浏览次数:20130 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:一个漂亮的选项卡
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中国移动4G资费调整方案6月1日起正式实施
网曝富士康“二连跳” 疑因推静音模式
特斯拉将获上海免费牌照 充电桩面临双重标准
中电信国际漫游费下调85% 世界杯上网28元/天
Google要求硬件厂商捆绑预装应用的协议曝光
玩游戏式的趣味戒烟App:Kwit
英特尔技术高管离任 电视业务或受影响
惠普中国转型只是缩影 未来开展不可预期
支付宝钱包支持医保移动缴费 广州成首个试点
推荐阅读
更多>
苹果CEO抱歉解读:是战略而非“屈服”
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
雷军收买腾讯金山股份:持股比例升至27%
苏宁易购成世界最慢电商 专家称其涉嫌违约
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
三星维修新规:Galaxy S4主板进水也收费修
京东物流"最后一公里":颠覆阿里或者被阿里干掉
微软的云服务显示出他们将自我进化
“组合拳”怎么打 拆解小米新玩法
网曝富士康“二连跳” 疑因推静音模式
NoomWeight减肥
互联网金融一周年:余额宝最接地气,比特币最作死
欧洲6万人起诉Facebook隐私侵权
挂号网高管团体离任 或因投资人失掉决计
华为美国推出电商网站 发售Mate 2LTE版
天音通信170套餐试商用放号:流量两年不清零
快递企业征收“份子钱” 成全了谁 苦了谁?
谷歌董事长成花花公子:情史足以媲美涂鸦
国内首个大数据系列指数今日发布
全球网络遭史上最大规模攻击:攻击数据每秒300G