爱易网
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 浏览次数:20279 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果需要两个步骤 第一步:把如下代码加入到<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
上一篇:狡猾的按钮特效
下一篇:进入网页菜单逐渐放大弹出
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
Facebook以“人”为本的名义占领安卓
都是300元内 乐视盒子与小米盒子对比体验
八位知名设计师评iOS7:新鲜但复杂
FDD牌照短期不会发放 联通电信暗自提速建网
优酷土豆携手新浪微博 谋攻移动视频失地
FB上广告费用昂贵而且效果不及Twitter
打车App就是下一个团购骗局!?
想玩P2P?几个您必须知道的潜规则
亚马逊Fire Phone:请别拿我跟苹果三星比
推荐阅读
更多>
微软确认 Surface 计划更多尺寸和LTE 版本
工信部或本月17日向联通电信颁发FDD牌照
用友软件股价逆势下跌 再融资方案现曙光
微博启动自媒体计划 粉丝+收入双激励是亮点
黑莓高管:黑莓能作为家“小众公司”活下来
“合聚变”来了 UC优视确认并入阿里巴巴
诺基亚称不会更名“微软移动” 5月还将发布新品
京东确定IPO定价区间 最高募资16.9亿美元
中移动一季度净利大降:手机补贴增长过快
阿里马云:我觉得互联网还有十年可以做
论:三大运营商运用商店逆袭并非不能够
小米年度发布会遭围剿!多款新品难阻品牌危机
说说这一个月的赌球输了多少
小米打响手机价格战 为米3铺路或另有所图
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
永不磨灭的九大尖端编程语言
华为变阵:任正非调整三大业务布局
工商总局开查电商“七日退货”
200美元英特尔Android笔记本行将到来
中移动推动感地带3G网聊卡 火拼微信沃卡