Js文字背景行如流水特效
作者:bea
<title>行如流水的Js文字背景特效</title> <script>var message="是一个专业的收集各类脚本学习资料的网站 " var n=0; if (document.all){ document.write('<font size="12px" color="#006666">') for (m=0;m<message.length;m++) document.write('<span id=
<title>行如流水的Js文字背景特效</title>
<script>var message="是一个专业的收集各类脚本学习资料的网站 "
var n=0;
if (document.all){
document.write('<font size="12px" color="#006666">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight" style="font-size:12px">'+message.charAt(m)+'</span>')
document.write('')
var tempref=document.all.neonlight
}
else
document.write(message)
function neon(){
if (n==0){
for (m=0;m<message.length;m++)
tempref[m].style.color="#006666"
}
tempref[n].style.color="#3fadc7"
if (n<tempref.length-1)
n++
else{
n=0
clearInterval(flashing)
setTimeout("beginneon()",1500)
return
}
}
function beginneon(){
if (document.all)
flashing=setInterval("neon()",23)
}
beginneon()
</script>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行]
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- Domino中运用jQuery读取视图内容的方法
- JS 截取字符串substr 和 substring方法的区别
- JavaScript 常用函数库详解
- 再谈ie和firefox下的document.all属性
- 用Javascript 编写可以缓慢弹出收缩的层
- javascript void(0)的妙用
- extjs 学习笔记 四 带分页的grid
- Jquery Ajax.ashx 高效分页实现代码
- fireworks菜单生成器mm_menu.js在 IE 7.0 显示问题的解决方法
- Javascript remove 自定义数组删除方法
- JavaScript 事件记录使用说明
- 7个Javascript地图脚本整理
- JavaScript 自动完成脚本整理(33个)
- javascript 添加和移除函数的通用方法
- JS 用6N±1法求素数 实例教程
- 获取网站跟路径的javascript代码(站点及虚拟目录)
- JavaScript 点击插入文字
- 单选按钮决定链接的网址
- 让链接必须按先后顺序点击的JS代码