爱易网
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 浏览次数:20159 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
要完成此效果需要两个步骤 第一步:把如下代码加入到<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
上一篇:超酷模仿FLASH的跳动菜单
下一篇:进入网页菜单逐渐放大弹出
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
TD是完成中国梦的一个契机
欧洲6万人起诉Facebook隐私侵权
NoomWeight减肥
银联布局二维码支付,“擦边球”生态不能自救
特斯拉将获上海免费牌照 充电桩面临双重标准
国美电商开打价钱战 牟贵先言行矛盾受质疑
英特尔VS苹果:移动芯片大战
小米2S试水高端化 纯“性价比”玩法已成过去式
马云:银行若放开存款利率 余额宝死了也光荣
推荐阅读
更多>
三星石墨烯制备技术获突破
互联网金融一周年:余额宝最接地气,比特币最作死
中国首台比特币ATM登陆上海 可购买不可兑换现钞
中移动五大基地将整改成公司:被指易滋生腐败
唯品会荣登“最贵中概股”的欢喜与哀愁
柳传志马云陷舆论漩涡:请不要辜负这个时代
迅雷高管解读财报:收购快盘可快速融入小米
揭秘:阿里巴巴“无人认领”的三成股权都归谁
诺基亚依托规模效应 猛攻国际市场空白
网易微博将正式关闭 用户迁至轻博客LOFTER
代工厂生活危机:“富士康们”何去何从?
广电地方营业厅的一句“罚停”,暴露出了他们的本质
小微型IDC云化趋势加剧 云计算未来或现终极模式
惠普董事长莱恩辞职 为巨额财务减记埋单
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
英特尔IDF峰会启示:释放移动互联的信号
谷歌新技术进入iOS平台:将叫板苹果Siri
刘强东:京东上市融资用于开拓三至六线城市
乐视今日临时停牌 受广电酝酿新规消息影响
微信今天大面积崩溃 腾讯:因光缆施工被挖断