Ciao Raga, vorrei rendere questo script in modo "automatico" al caricamento della pagina e non come azione dopo il click del tasto...
Che posso fare?

Grazie


PS Ah ecco lo script:


<SCRIPT>



function cols(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19){

this.c1 = c1;

this.c2 = c2;

this.c3 = c3;

this.c4 = c4;

this.c5 = c5;

this.c6 = c6;

this.c7 = c7;

this.c8 = c8;

this.c9 = c9;

this.c10 = c10;

this.c11 = c11;

this.c12 = c12;

this.c13 = c13;

this.c14 = c14;

this.c15 = c15;

this.c16 = c16;

this.c17 = c17;

this.c18 = c18;

this.c19 = c19; }



rainbow = new cols("FFFF7D", "B9D861", "606E8B", "184040", "75A0A9", "BEC0B2", "red", "FFFF7D", "B9D861", "606E8B", "184040", "75A0A9", "BEC0B2", "red", "FFFF7D", "B9D861", "606E8B", "184040", "75A0A9", "BEC0B2");


function cycle(rainbow){

scheme = rainbow;

document.bgColor = scheme.c1;

timerID=setTimeout('document.bgColor = scheme.c2', document.selector.interval.value * 20);

timerID=setTimeout('document.bgColor = scheme.c3', document.selector.interval.value * 40);

timerID=setTimeout('document.bgColor = scheme.c4', document.selector.interval.value * 60);

timerID=setTimeout('document.bgColor = scheme.c5', document.selector.interval.value * 80);

timerID=setTimeout('document.bgColor = scheme.c6', document.selector.interval.value * 100);

timerID=setTimeout('document.bgColor = scheme.c7', document.selector.interval.value * 120);

timerID=setTimeout('document.bgColor = scheme.c8', document.selector.interval.value * 140); }


</SCRIPT>



<FORM NAME="selector">



Premi:

<INPUT type="button" value="prova1" onClick="cycle(rainbow)">






<input type="hidden" name="interval" value="200">



</FORM>