爱易网
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 浏览次数:20198 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,从天而降的文字</title> </head><body onload="dynAnimation8()"> <!-- 用<body onload="dynAnimation8()">替换原有的<body> --> <!--将以下代码加入HTML的<Body></Body>之间--> <script LANGUAGE="JavaScript" FPTYPE="dynamicanimation8"> <!-- dynamicanimAttr = "dynamicanimation8" animateElements = new Array() currentElement = 0 speed = 0 stepsZoom = 8 stepsWord = 8 stepsFly = 12 stepsSpiral = 16 steps = stepsZoom step = 0 outString = "" function dynAnimation8() { var ms = navigator.appVersion.indexOf("MSIE") ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) if(!ie4) { if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0, 1)) >= 4)) { for (index=document.layers.length-1; index >= 0; index--) { layer=document.layers[index] if (layer.left==10000) layer.left=0 } } return } for (index=document.all.length-1; index >= document.body.sourceIndex; index--) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if(null != animation) { if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord") { ih = el.innerHTML outString = "" i1 = 0 iend = ih.length while(true) { i2 = startWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, false, "") if(i2 == iend) break i1 = i2 i2 = endWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, true, animation) if(i2 == iend) break i1 = i2 } document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } if(animation == "zoomIn" || animation == "zoomOut") { ih = el.innerHTML outString = "<SPAN " + dynamicanimAttr + "=\"" + animation + "\" style=\"position: relative; left: 10000;\">" outString += ih outString += "</SPAN>" document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } } } i = 0 for (index=document.body.sourceIndex; index < document.all.length; index++) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if (null != animation) { if(animation == "flyLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = 0 } else if(animation == "flyRight") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = 0 } else if(animation == "flyTop" || animation == "dropWord") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyBottom") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight } else if(animation == "flyTopLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
上一篇:狡猾的按钮特效
下一篇:绚丽多彩的文字
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
独立工具APP:为亿级用户的商业化而愁
中国电信内外受困 去电信化思绪待改
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
苹果音乐效劳新战略:与唱片商停止流媒体协作
神州泰岳雪上加霜:副总违规买卖遭罚
全球最具“颠覆性”特质的公司排行榜TOP25
阿里收购UC 五年姻缘换来移动新格局
陈天桥之鉴:产品创新被扼杀那些事
推荐阅读
更多>
传苹果与雅虎协作信息提供 进一步摆脱谷歌
评论:马云的成功建立在什么基础上很值得怀疑
窗口期:还有哪些互联网公司可能今年IPO?
靠谱分析:6月发生的WWDC和谷歌I/O大会,将会出现哪些新产品?
小灵通两年都无信号 顾客起诉联通公司
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
纸媒深探版权蓝海抗衡互联网的时机到来了
中兴引进黑莓三个核心团队
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
2018年阿里云双11活动如何参加?1折优惠大攻略
小微型IDC云化趋势加剧 云计算未来或现终极模式
微信将商场O2O战火烧到了阿里巴巴老家
从3G牌照发放看中国4G规划效果
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
苹果已经允许开发者提交64位应用程序
腾讯再次重申:普通微信誉户相对不收费
诺基亚若没加入微软,只不过是另一个HTC而已
360涉足搜索范围 百度市场份额面临应战
支付宝曝平安破绽:转账信息被谷歌抓取
三星石墨烯制备技术获突破