alin19 Posted February 1, 2008 Share Posted February 1, 2008 i hope that it's ok that i post this here i need help with a timeout comand i want to write these until number reach 3 and then wait a little and continue <html> <body> <script language="javascript" type="text/javascript"> <!-- for (i=1;i<10;i++) { document.write ( (i+1) + 'number') document.write ('<br>') if (i==3) { setTimeout(1) } } --> </script> </body> </html> Link to comment https://forums.phpfreaks.com/topic/88983-javascript/ Share on other sites More sharing options...
A2xA Posted February 1, 2008 Share Posted February 1, 2008 here's the javascript board http://www.phpfreaks.com/forums/index.php/board,6.0.html Here's a tutorial on looping that is something similar http://w3schools.com/php/php_looping.asp Link to comment https://forums.phpfreaks.com/topic/88983-javascript/#findComment-455709 Share on other sites More sharing options...
alin19 Posted February 1, 2008 Author Share Posted February 1, 2008 i need to create a grafic, and then to create another one and put it over the first, and to give the impresion that the line is drowing it self, but i need this timeout comand Link to comment https://forums.phpfreaks.com/topic/88983-javascript/#findComment-455716 Share on other sites More sharing options...
phpQuestioner Posted February 2, 2008 Share Posted February 2, 2008 Just do this: "i<=3" and you will not need a setTimeout; because when it reaches, it will stop. Link to comment https://forums.phpfreaks.com/topic/88983-javascript/#findComment-455727 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.