[Php-it] [JS] simulare lo sleep.

Davide Michel 'ZioBudda' Morelli michel at ziobudda.net
Thu Dec 28 15:28:42 CET 2006


Marcello Vezzelli ha scritto:
> function mostra() {
>   tmp = document.createElement('input');
>           tmp.setAttribute('type','text');
>           tmp2= document.getElementById('miodiv');
>           tmp2.appendChild(tmp);
>            //Questa l'ho scritta io per provarle tutte.
>           tmp2.innerHTML = tmp2.innerHTML;
>           setTimeout('dormi()',1);
> }

Funziona solamente perche' setTimeout() è l'ultima istruzione ad essere 
eseguita. Altrimenti non andrebbe bene.

Grazie comunque :)

M.


-- 
Michel 'ZioBudda' Morelli                       michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: +39-0240706096 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ajaxblog.it                           



More information about the Php-it mailing list