帮这段网页特效显示的文字加个链接?

来源:百度知道 编辑:UC知道 时间:2024/06/02 19:35:19
<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&g

<script>var message="这段显示的文字如何加上超级链接!"

document.write('<a href="http://www.baidu.com/" target=_blank>')

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)

document.write('</a>')

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
clearInt