Снежка* помоги пожалуйста!
Вот нашла скрипт, а он не работает :dntknw: . Что не так?
<html>
<head>
<title>Ссылка меняет цвет при нахождении курсора над ней.</title>
<script language="JavaScript">
<!--
// choose the colors the link-animation will rush through
var newcolor=new Array("ff0000","ff3300",
"ff3300","ff6600","ff6600","ff9900",
"ff9900","ffcc00","ffcc00","ffff00",
"ffff00","ccff00","ccff00","99ff00",
"99ff00","00ff00","00ff00","00cc00",
"00cc00","00cc99","00cc99","00ccff",
"00ccff","0099ff","0099ff","0066ff",
"0066ff","0033ff","0033ff","9900cc",
"9900cc","9933cc","9933cc","cc33cc",
"cc33cc","ff00cc","ff33cc","ff0066",
"ff0066","ff0000")
// speed of animation. Smaller means faster
var pause=30
// Do not edit the values below
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>
</head>
<body>
<DIV id="deletethisblock"><A name="link1" onMouseOver="startanimation(this.name)" onMouseOut="stopanimation()" href="http://scriptic.narod.ru"> JavaScript</a> <A name="link5" onMouseOver="startanimation(this.name)" onMouseOut="stopanimation()" href="http://studuo.scriptic.ru">Дизайн студия</a><br></DIV>
</body>
</html>