爱易网
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 浏览次数:20290 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果需要两个步骤 第一步:把如下代码加入到<head>区域中 <STYLE>DIV { POSITION: absolute } DIV.clButton { HEIGHT: 20px; TOP: -200px; WIDTH: 20px } #divStat { HEIGHT: 20px; LEFT: 8px; TOP: 12px; WIDTH: 130px } #divStatCont { HEIGHT: 45px; TOP: -200px; WIDTH: 125px } SPAN.clStat { COLOR: #606fa2; FONT-FAMILY: arial,helvetica; FONT-SIZE: 10px } #divDHTML { TOP: 20px; WIDTH: 100px } DIV.clLink { FONT-FAMILY: arial,helvetica; FONT-SIZE: 12px; FONT-WEIGHT: bold; VISIBILITY: hidden } #divExplain { FONT-FAMILY: arial,helvetica; FONT-SIZE: 12px } </STYLE> 第二步:把如下代码加入到<body>区域中 <script> function checkBrowser(){ this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.ie=this.ie4||this.ie5 this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) return this } bw=new checkBrowser() //Preload function preLoad(){ for(i=0;i<arguments.length;i++){ this[i]=new Image() this[i].src=arguments[i] } return this } //Place your images in here imgButLetter=new preLoad("http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg") imgButCircle=new preLoad("http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg","http://www.aiyiweb.com/UploadPic/userface/no1323.jpg") //How many "balls" do you have numBalls=5 function makePageCoords(){ this.x=0;this.x2=(bw.ns4 || bw.ns5)?innerWidth:document.body.offsetWidth-20; this.y=0;this.y2=(bw.ns4 || bw.ns5)?innerHeight:document.body.offsetHeight-5; this.x50=this.x2/2; this.y50=this.y2/2; return this; } function makeObj(obj,nest){ nest=(!nest) ? '':'document.'+nest+'.' this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; this.ref=bw.ns4?this.css.document:document; this.width=bw.ns4?this.css.document.width:this.el.offsetWidth this.moveBy=b_moveBy; this.moveIt=b_moveIt; this.writeIt=b_writeIt; this.slide=b_slide; this.slideIt=b_slideIt; this.showIt=b_showIt; this.hideIt=b_hideIt; this.obj = obj + "Object"; eval(this.obj + "=this") } function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y} function b_moveBy(x,y){this.x+=x; this.y+=y; this.css.left=this.x; this.css.top=this.y} function b_showIt(){this.css.visibility="visible"} function b_hideIt(){this.css.visibility="hidden"} function b_writeIt(text){ if(bw.ns4){this.ref.write(text);this.ref.close()} else this.el.innerHTML=text } function s_writeIt(text){ text='<span class="clStat">'+text+'</span>' this.write(text) } function b_slideIt(endx,endy,inc,speed,fn,wh) { if (!this.slideactive) {var distx = endx - this.x;var disty = endy - this.y var num = Math.sqrt(Math.pow(distx,2) + Math.pow(disty,2))/inc var dx = distx/num;var dy = disty/num this.slideactive = 1; this.slide(dx,dy,endx,endy,speed,fn,wh)}} function b_slide(dx,dy,endx,endy,speed,fn,wh) { if (!fn) fn = null; if(!wh) wh=null if (this.slideactive && (Math.floor
上一篇:狡猾的按钮特效
下一篇:进入网页菜单逐渐放大弹出
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果CEO抱歉解读:是战略而非“屈服”
虚拟运营商们更像三大运营商的“二道贩子”
传三星为赢得新兴市场:推廉价版Note3
云储存有多远:跨过数据安全问题即可到达
苹果App Store被大量刷榜:iTunes账号成帮凶
马云自称在美国曾被绑票
科技巨匠体验谷歌眼镜:戴上了就不想摘上去
黑狐病毒疯传播 电脑管家首推 专杀工具
“组合拳”怎么打 拆解小米新玩法
推荐阅读
更多>
苹果App Store被大量刷榜:iTunes账号成帮凶
马云:银行若放开存款利率 余额宝死了也光荣
蜗牛移动董事长石海:号卡被叫停属乌龙事件
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
三星手机在国内陷入困境:华为中兴小米紧追
安全服务机构:公布2014年度最糟糕的25个密码
估值增长9.8% 阿里IPO前市值达2450亿美元
网易云音乐能否为丁磊拿到移动互联网门票?
说说这一个月的赌球输了多少
陈天桥之鉴:产品创新被扼杀那些事
解读苹果收购Beats背后动机:库克在想什么?
Facebook思科联手推免费WiFi 欲覆盖全美
中移动落马高管盘点:广东移动成反腐重地
中移动一季度净利大降:手机补贴增长过快
微软很“捉急”:补贴Win8 重加末尾按钮
苹果CEO抱歉解读:是战略而非“屈服”
小米2S试水高端化 纯“性价比”玩法已成过去式
三星已经将Galaxy S5视为失败之作?
联想架构调整后:Think品牌或推智能手机
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变