本站公告栏滚动颜色文字特效代码
本站公告栏的滚动公告文字,代码如下所示。
修改相关参数就可以使用。
<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(’</font>’) 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=”#ff0000” if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout(”beginneon()“,150) return } } function beginneon(){ if (document.all) flashing=setInterval(”neon()“,150) } beginneon() </script>
<a href=“http://wap.quanwai.net”><img src=“http://www.quanwai.net/images/wap.gif” /></a>
注意:
第一段代码的第7、8行应该为一行。中间没有回车符,为了防止冲破模板导致侧边栏显示不正常才分为2行。
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

我晕,你博客换名字了。我还以为把你的链接去掉了呢。
圈外世界。
杂木林博客发来贺电
[Reply]