codice:
Link colorati e animati
Inserire tra head
<script language="JavaScript">
<!--
// Prelevato su http://web-link.it
var newcolor=new Array("ffff00","ccff00","66ffff","ffcc00","00cc00","ff99ff","3399cc","ff6600","652C91","2F3192","0054A5","0072BC","00BFF3","00FFFF")
var pause=30
var timer
var animation_on=true
var thislink
var i_color=0
function startanimation(newlink) {
if (document.all) {
animation_on=true
thislink=eval("document.all."+newlink+".style")
changecolors()
}
}
function changecolors() {
if (animation_on) {
if (i_color>=newcolor.length-1) {i_color=0}
thislink.color=newcolor[i_color]
i_color++
timer=setTimeout("changecolors()",pause)
}
else {
clearTimeout(timer)
}
}
function stopanimation() {
if (document.all) {
animation_on=false
}
}
// -->
</script>
Inserire tra body
Web link!
Web link!
E questo l'effetto?
Comunque sottoscrivo ciò che ha detto Jerry