•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 392,099 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,815 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 540 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 0
Hi Everyone, i wanted to know how i can have a script write some pre defined strings of text over a 40 second period with ocational pre defined second pauses.
I would really appreciate everyones help with this as it is quite important. thank you
The end result would be something like:
--------------------------------------------------------------------------------------------
(All of the following would be written by the script)
(The following would be written in a 5 second period with a 1 second pause after the first and second lines)
Searching For Webpage Configuration files...
...
Found 10 configuration files.
Loading Flies...
(The following would all be written in around 10 seconds, with the pauses being after the "Loading.." lines)
Loading confg...
Done..!
Loading fav...
Done..!
Loading sysinfo...
Done..!
Loading CCPVQ...
Done..!
Loading location...
Done..!
Loading history...
Done..!
Loading log...
Done..!
Loading fwconfig...
Done..!
Loading index...
Done..!
Loading ipconfig...
Done..!
File Loading Completed.
( Now the next 15 seconds would be spent writting the following. the status bars should take 4 seconds to finish each )
Checking Settings...
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Modifying Settings
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Applying Settings
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(After that is done the remaining 10 seconds would be spent on the following, with the pauses before the "Done" lines)
Settings successfu applied !
Renewing IP Address...
Done..!
Activating Webpage...
Done..!
Settings Check Completed.
Press Home on the left hand menu to go to the webpage.
(Here it should stop and just wait for teh user to press the HOME button)
--------------------------------------------------------------------------------------------
I would really appreciate everyones help with this as it is quite important. thank you

The end result would be something like:
--------------------------------------------------------------------------------------------
(All of the following would be written by the script)
(The following would be written in a 5 second period with a 1 second pause after the first and second lines)
Searching For Webpage Configuration files...
...
Found 10 configuration files.
Loading Flies...
(The following would all be written in around 10 seconds, with the pauses being after the "Loading.." lines)
Loading confg...
Done..!
Loading fav...
Done..!
Loading sysinfo...
Done..!
Loading CCPVQ...
Done..!
Loading location...
Done..!
Loading history...
Done..!
Loading log...
Done..!
Loading fwconfig...
Done..!
Loading index...
Done..!
Loading ipconfig...
Done..!
File Loading Completed.
( Now the next 15 seconds would be spent writting the following. the status bars should take 4 seconds to finish each )
Checking Settings...
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Modifying Settings
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Applying Settings
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(After that is done the remaining 10 seconds would be spent on the following, with the pauses before the "Done" lines)
Settings successfu applied !
Renewing IP Address...
Done..!
Activating Webpage...
Done..!
Settings Check Completed.
Press Home on the left hand menu to go to the webpage.
(Here it should stop and just wait for teh user to press the HOME button)
--------------------------------------------------------------------------------------------
Last edited by Roiie 530x2 : Dec 4th, 2007 at 5:37 pm.
•
•
Join Date: Dec 2007
Location: Russia
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 1
Seems like you need to do this:
And the use following HTML to test this:
javascript Syntax (Toggle Plain Text)
var strings = [ 'loading config', 'done', 'loading fav', 'done' ];// define values to print in this array function writeText(index) { var area = document.getElementById('area'); // textarea object where will be print each word step-by-step area.value += strings[index] + '\n'; index++; if (index < strings.length) { // will stop when all words will be printed setTimeout('writeText('+index+')', 1000); // will print next word after 1 second } }
<textarea id='area'></textarea><br/> <input type="button" value="start" onclick="writeText(0);">
Last edited by adorosh : Dec 6th, 2007 at 1:50 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Creating Crystal report using MS Access query (VB.NET)
- Pet Petition (Geeks' Lounge)
- Issue with Javascript embedded in C# (ASP.NET)
- Getting Search Engine Traffic? Starting it? (Search Engine Optimization)
- request.form is not working in asp.net (ASP.NET)
- Site doesnt work Properly (Java)
- Guestbook help. Post in two different spots. (Perl)
- May have Virus/Spyware/Aliens? or IE Hijacked (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: I want visitor counter in my website
- Next Thread: i need it please


Linear Mode