Can someone please tell me how to make this script repeat... At the moment it only runs once, there are 9 links on the page, if you hover over 1 it fades in but then none of the other links do.
They are layers that fade in, the javascript is just run on mouseover.
Quote:
<script language="JavaScript">
ie5 = (document.all && document.getElementById);
ns6 = (!document.all && document.getElementById);
opac = 0;
function fadein(ln)
{
if(opac < 90)
{
opac+=5;
if(ie5) { document.getElementById(ln).filters.alpha.opacity = opac; setTimeout("fadein('"+ln+"')", 1);}
if(ns6) { document.getElementById(ln).style.MozOpacity = opac / 100; setTimeout("fadein('"+ln+"')", 20);
}
}
}
</script>
|
Any help appreciated...