爱易网
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 浏览次数:20284 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果需要两个步骤 第一步:把如下代码加入到<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
上一篇:狡猾的按钮特效
下一篇:进入网页菜单逐渐放大弹出
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
NoomWeight减肥
支付宝27日晚间曝严重破绽:买卖记载可被搜索
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
刘强东向总理建言:打击有组织有规模的售假商家
中方抗议美方限购IT设备 紧张关系加剧
智能手机:中国手机市场最受关注十五款产品清点
NEC拟出售移动效劳子公司NEC Mobile
网易云音乐能否为丁磊拿到移动互联网门票?
摩托罗拉移动裁员关闭德州Moto X手机工厂
推荐阅读
更多>
传苹果与雅虎协作信息提供 进一步摆脱谷歌
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
谷歌安卓全球副总裁为何跳槽中国企业小米?
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
新浪微博推粉丝头条功能 意欲与大号分成
完美入股盛大:一桩各怀心事的交易
传谷歌开发者大会发布Android 4.3 并非5.0版本
英特尔IDF峰会启示:释放移动互联的信号
京东封杀财付通:终极目标是电商生态圈
网易微博将正式关闭 用户迁至轻博客LOFTER
史玉柱卸任巨人网络CEO 继位人选引猜想
京东终于想明白,这些年错过的财运,都藏在女人的时装下
微软很“捉急”:补贴Win8 重加末尾按钮
华为坚持不上市究竟为何?不差钱也不想冒风险
眼球识别技术EyeVerify融资600万美元 360参投
薛蛮子取保后首次发微博表示:辜负你们了
互联网金融一周年:余额宝最接地气,比特币最作死
小米年度发布会遭围剿!多款新品难阻品牌危机
乐视28日发布手机进展 LeUI系统Mobile版或曝光
阿里国际化再落子:2.49亿美元投资新加坡邮政