爱易网
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 浏览次数:20192 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果需要两个步骤 第一步:把如下代码加入到<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
上一篇:狡猾的按钮特效
下一篇:进入网页菜单逐渐放大弹出
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
中移动“重启”自有品牌手机成败难料
杨元庆去年总薪酬1.33亿元
支付宝服务窗后台首曝光 开放用户消费数据
淘宝公布新规:升级售假卖家惩罚力度
二代 iPad Air将配备2GB内存?为同屏多任务做准备
传三星为赢得新兴市场:推廉价版Note3
苹果6月20日发布iPhone5S 触摸屏概念股生动
优酷土豆携手新浪微博 谋攻移动视频失地
推荐阅读
更多>
玩游戏式的趣味戒烟App:Kwit
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
神奇约炮应用被禁 改名后重返苹果应用商店
京东终于想明白,这些年错过的财运,都藏在女人的时装下
中兴引进黑莓三个核心团队
微软与摩托罗拉授权协议涵盖Android和Chrome设备
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
中国首台比特币ATM登陆上海 可购买不可兑换现钞
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
谷歌欲收买WhatsApp添加砝码 对方否认
中国雅虎邮箱今日关停 由盛及衰的背后
史玉柱卸任巨人网络CEO 继位人选引猜想
HDS发布《2013中国CIO洞察白皮书》
传诺基亚5月14日发布会推出Lumia 950
“宽带中国”计划已正式上升为国家战略
从WPS到office365,中国企业能否赶超美国?
广电总局回应美剧下架:不是所有信息可公开
谷歌董事长成花花公子:情史足以媲美涂鸦
惠普中国转型只是缩影 未来开展不可预期
牟贵先挂帅 国美在线“价钱战”昔日开打