Forums

This topic is locked

setTimeout ???

Posted 21 Mar 2005 07:00:08
1
has voted
21 Mar 2005 07:00:08 Dominique Braschi-Blondeau posted:
Hi !

could anyone explain me why

setTimeout('crepiter()', 0)

works, and

crepiter()

doesn't, in

function crepiter()
{
index=Math.floor(Math.random()*chaine.length)
crepite_chaine=crepite_chaine.replace(crepite_chaine.charAt(index), chaine.charAt(index))
emplacement.innerHTML=crepite_chaine
if(crepite_chaine!=chaine)
setTimeout('crepiter()', 0)
}

Thanx for your explanations !



Replies

Replied 21 Mar 2005 17:47:03
21 Mar 2005 17:47:03 Dave Thomas replied:
my guess would be the syntax requires the number value to translate the timeout

regards

Dave Thomas
<b>DMX Zone Manager</b>

Reply to this topic