爱易网
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 浏览次数:20170 次
以下是程序代码
<style type="text/css"> .clDivs{position:absolute; width:30; height:30; left:0; font-size:60px; font-weight:bold; font-family:arial black,arial,helvetica; color:#999999; visibility:hidden} </style> <script language="JavaScript" type="text/javascript"> function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 var bw=new lib_bwcheck() /*************************************************************************** Variables to set. Remember that if you want another font, font-size or whatever you set that in the .clDivs class in the styletag! ****************************************************************************/ numberOfLetters=11 //How many letters do you have ypos=-100 //The Y position of the letters, relative to the center //The x positions of the letters, relative to center. //This is the tricky part, when you change font-size or type and letters //be sure to play with the values in this array, if not your letters //will not arrange correctly. (note the testing variable) xpos=new Array() xpos[0]=-420 xpos[1]=-360 xpos[2]=-300 xpos[3]=-240 xpos[4]=-180 xpos[5]=-120 xpos[6]=-60 xpos[7]=0 xpos[8]=60 xpos[9]=120 xpos[10]=180 //To make the xpos a little simpler to set you can set this value to 1 //If you do no animation will happen, but the letters will place themself //where they will end at the end of the animation. testing=0 //There are 3 different animation you can use. //Set this variable to 1,2 or 3 for the different ones, //or set it to 4 for random animation=4 aspeed=10 //The timer animation speed. /******************************************************************************** Object constructor ********************************************************************************/ function makeObj(obj,speed,xmove,ymove,works){ this.el=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0; this.css=bw.dom || bw.ie4?this.el.style:bw.ns4?this.el:0; this.moveIt=b_moveIt; } function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y} /*************************************************************************** Initiating page and starting animation ****************************************************************************/ var posArray,oZdivs; function introInit(){ pageXcenter=bw.op5||bw.ns4 ||bw.ns6?innerWidth/2:document.body.offsetWidth/2 pageYcenter=bw.op5||bw.ns4||bw.ns6?innerHeight/2:document.body.offsetHeight/2 oZdivs=new Array() for(i=0;i<numberOfLetters;i++){ oZdivs[i]=new makeObj('div'+i) oZdivs[i].moveIt(-200,0) oZdivs[i].css.visibility='visible' } if(animation==4) animation=Math.round(Math.random()*2)+1 if(!testing) eval('anim'+animation+'(0)') else testIt() } function testIt(){ alert(pageYcenter) for(i=0;i<oZdivs.length;i++){ oZdivs[i].moveIt((pageXcenter+xpos[i]),(pageYcenter+ypos)) } } /*************************************************************************** Intro 1 ****************************************************************************/ xPath1=new Array(-277
上一篇:狡猾的按钮特效
下一篇:切换文字渐显效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
用户喊话当当网:我彻底把你们丢弃了
移动联通回应税率改革:短期内收入利润将大减
史玉柱此刻离任:营销巨匠为新游戏炒作?
9158屌丝逆袭 从在线“夜总会”转型KTV
运营商补贴减少 国内通信业拐点逼近
弯曲变形:手机全新的交互方式
微软谷歌高层访韩面前:忌惮三星的崛起
史玉柱卸任巨人网络CEO 继位人选引猜想
联发科享用价钱战 专利难以摆脱高通
推荐阅读
更多>
苏宁双线同价遇难题:第一个吃螃蟹不轻松
京东确定IPO定价区间 最高募资16.9亿美元
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
传诺基亚5月14日发布会推出Lumia 950
谷歌欲收买WhatsApp添加砝码 对方否认
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
迅雷高管解读财报:收购快盘可快速融入小米
网络文学竞争白热化 百度多酷文学网上线
Facebook以“人”为本的名义占领安卓
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
中国移动承诺再降4G资费 网络漫游至50个国家
HTC与苹果三星距离扩展 C2B形式成新武器
FDD牌照12月将发放 联通电信双4G反击中移动
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
想玩P2P?几个您必须知道的潜规则
如家撤离同程内情:祸起反水OTA“联盟”?
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
史玉柱谈创业:5大建议 失败的教训最真实
马云的SNS之梦有了新目标 收购“微博”
中国邮政与阿里合作:邮政网点可做网购自提点