爱易网
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 浏览次数:20364 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <p id='anima' style="position:absolute;font-size:20;background-color:white;"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin text = "网页制作特效欢迎你的光临,请多提意见,谢谢!www.k688.com:-)" word = text.split('.') i = -1; //letter count j = 0; //which word in array is to be spelled start = 0; //variable to hold cycles of the blink scount = 0; //variable to hold cycles of the mispell function checkIt() { with(document.all.anima) { if(innerText.charAt(innerText.length-1) == "_") { innerText = innerText.substring(0, innerText.length - 1); return true; } else { innerText = innerText + "_"; return false; } } } function blinkfor(count, timing) { with(document.all.anima) { if(start < count) { if(checkIt()) { start++; } mistake = 'blinkfor('+count+','+timing+')'; setTimeout('eval(mistake)', timing); } else { start = 0; i++; call_It(); } } } function mispell(offset,correction) { with(document.all.anima) { if(scount < offset) { if(!checkIt()) { innerText = innerText.substring(0, innerText.length-2) + "_"; scount++; } mistake = 'mispell(' + offset + ', "' + correction + '")'; setTimeout("eval(mistake)", 150); } else { if(correction == '' && scount == offset ) { i = i - offset; scount++; } if(offset > 0) { if(checkIt()) { innerText += correction.charAt(correction.length - offset) + "_"; offset--; } mistake = 'mispell(' + offset + ',"' + correction + '")'; setTimeout("eval(mistake)", 150); } else { scount = 0; j++; innerText = innerText.substring(0, innerText.length - 1); call_It(); } } } } function spellit(string) { with(document.all.anima) { if(i <= string.length) { if(string.charAt(i) == '/') { NumErrs = string.charAt(i + 1); NewLets = string.substring(i + 2, i + NumErrs); mispell(NumErrs,NewLets); } else if(i <= string.length - 1) { i++; innerText = string.substring(0,i) + "_"; mistake = 'spellit("' + string + '")'; setTimeout("eval(mistake)", 150); } else { innerText = string.substring(0, i); j++; call_It(); } } } } function call_It() { with(document.all) { if(i == -1){ blinkfor(4, 150); } else if(j <= word.length - 1) { spellit(anima.innerText + " " + word[j]); } else { blinkfor(100,230); } } } if(document.all) { call_It(); } // End --> </script> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字全屏显示
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
携程整合去哪儿陷入僵局 欲联手老对手艺龙
微软史上最大规模裁员,一半诺基亚员工
微软确认 Surface 计划更多尺寸和LTE 版本
百度吴恩达:图像和音视频搜索是人工智能新方向
马云的SNS之梦有了新目标 收购“微博”
华为野心布局未来:投资研发5G对赌1毫秒连接
200美元英特尔Android笔记本行将到来
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
搜狐前副总编何毅加盟乐视 任车联网公司CEO
推荐阅读
更多>
赴美开店,阿里11Main准备好了吗?
扎克伯格华裔妻子首度亮相电视节目畅谈情史
HTC手机为何一败再败?效果出在供应链
二维码支付大战的号角注定已经吹响,尚需标准发放
解读苹果收购Beats背后动机:库克在想什么?
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
摩托罗拉移动裁员关闭德州Moto X手机工厂
同为70前后人,马云为什么总是像外星人那么瘦
史玉柱此刻离任:营销巨匠为新游戏炒作?
团购网站存活率仅18.6% 剩余缺乏千家
“合聚变”来了 UC优视确认并入阿里巴巴
只有切到刚需痛点,漫画APP才能走下去
刘强东:京东上市融资用于开拓三至六线城市
黑狐病毒疯传播 电脑管家首推 专杀工具
易迅大众点评缩水执行“七天后悔权”被约谈
【晚报】女子泰国游晒10照片 流量费2000
机器人进一步取代人类:将进军白领任务
三大运营商合建铁塔公司真相:未涉及电信业重组
黑莓高管:黑莓能作为家“小众公司”活下来
火一把就死: 百度魔图验证社交游戏衰亡宿命