http://www.cgzxx.com .: 百度首页 .: 设为首页 .: 加入收藏 .: 邮件联系
  
站点首页>>校园快讯>>总务后勤>>网页技术学习
JavaScript特效演示
打印本文添加时间:2007-3-28 21:05:53 点击:统计中…

<SCRIPT language=JavaScript1.2>
var message=" 点着里返回上一层 >>>"
var neonbasecolor="#efefef"
var neontextcolor="#990000"
var flashspeed=120  //in milliseconds

var n=0
if (document.all){
document.write('<a href="../""><font color="'+neonbasecolor+'">')
for (m=0;m<message.length;m++)
document.write('<span id="neonlight">'+message.charAt(m)+'</span>')
document.write('</font></a>')

//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()",1000)
return
}
}

function beginneon(){
if (document.all)
flashing=setInterval("neon()",flashspeed)
}
beginneon()

</SCRIPT>

在百度中查找更多关于“JavaScript特效演示”的内容
教师信息技术测试平台完成
教师信息技术测试
网友评论
相关信息
Firefox 浏览器使用优势[2007-4-4]
火狐浏览器介绍[2007-4-4]
Firefox2.0.0.3 火狐下载[2007-4-4]
客户端的真实IP地址[2007-3-28]
网页制作技巧(美化网页)[2007-3-28]
网页制作技巧:实现网页图层位置定位[2007-3-28]
网站制作之网页技巧[2007-3-28]
ASP字符串函数示例[2007-3-28]
第四节 Application对象[2007-3-26]
第三节 Response 对象[2007-3-26]
第一节 HTML表单[2007-3-26]
发表评论
  请遵守国家法律和互联网法规。您要为您所发的言论的后果负责,故请各位遵纪守法并注意语言文明。
您的昵称: *  电子邮件:
评论内容:*
   

长沟中心校©版权所有,复制必纠 计数器读取中……
by zong 2007. 京ICP备05054365号 统计查询载入中...
全球排行查询中...