爱易网
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 浏览次数:20132 次
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:一个漂亮的选项卡
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
互联网金融一周年:余额宝最接地气,比特币最作死
一个非脑残米粉的思考:小米“成功之道”如何炼成
继续涨:微博IPO第二交易日 收盘大涨11.71%
传搜狗估值12亿美元 与360谈判进入白热化
从WPS到office365,中国企业能否赶超美国?
“宽带中国”计划已正式上升为国家战略
中国雅虎邮箱今日关停 由盛及衰的背后
中国移动4G资费调整方案6月1日起正式实施
高通反垄断案下月有望落定
推荐阅读
更多>
苹果售后生态链乱象:供需失衡价钱不一
HDS发布《2013中国CIO洞察白皮书》
美剧讲硅谷创业者:远不及现实荒诞?
OPPO Find7体验测 Find7综测
9158屌丝逆袭 从在线“夜总会”转型KTV
网络文学竞争白热化 百度多酷文学网上线
微信收费形式三选一 腾讯或变身运营商
“世界杯+618”集体磨刀的本质是绑架全民
从百度世界大会看大数据
雅安地震 绝不宽恕应用人们爱心的骗子!
小灵通两年都无信号 顾客起诉联通公司
中移动五大基地将整改成公司:被指易滋生腐败
首家国有独资P2P平台上线 或预示政策日渐明朗
支付宝服务窗后台首曝光 开放用户消费数据
全球网络遭史上最大规模攻击:攻击数据每秒300G
全球最具“颠覆性”特质的公司排行榜TOP25
淘宝公布新规:升级售假卖家惩罚力度
诺基亚仍是第二大手机商:功用机有利可图
170号码扎堆上市:手机话费私人定制时代到来?
富士康欲用机器人产iPhone 6