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> Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.