《教师生活365》网[师慧园]论坛

 找回密码
 必须实名注册
查看: 70|回复: 0
打印 上一主题 下一主题

打字机效果代码

[复制链接]

1万

主题

2万

帖子

20万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
204692
跳转到指定楼层
楼主
发表于 2014-4-26 14:37:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
打字机效果代码:





<FONT face=华文行楷><FONT size=6>
<p style="LINE-HEIGHT: 45px" align=left><BR>
<SCRIPT language=JavaScript1.2>
var message="  师慧园论坛,温馨和谐的网络家园, 我们真诚的欢迎各位朋友光临指导,祝您在论坛,收获友谊, 收获开心,收获快乐。"
var neonbasecolor="#E0FFFF"
var neontextcolor="#006600"
var flashspeed=300  //in milliseconds
///No need to edit below this line/////
var n=0
if (document.all){
document.write('<font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font><BR><br>')
//cache reference to neonlight array
var tempref=document.all.neonlight
}
else
document.write(message)
function neon(){
//Change all letters to base color
if (n==0){
for (m=0;m<message.length;m++)
tempref[m].style.color=neonbasecolor
}
//cycle through and change individual letters to neon color
tempref[n].style.color=neontextcolor
if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}
function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()
</SCRIPT>
</FONT></P></FONT>






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 必须实名注册

本版积分规则

QQ|Archiver|手机版|小黑屋|《教师生活365》网[师慧园]论坛  admin.php?action=setting&operation=basic

GMT+8, 2024-10-6 23:32 , Processed in 0.077060 second(s), 27 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表