|
|
#1 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
|
a timed script
does any one here know the javascript code for a script that should start...say after ten seconds. I have the script I want to run, but I need it done after a certain amount of time another script finishes. Any one know of such a script?
Thanx
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby --- Don't ever argue with idiots. They drag you down to their level and beat you with experience. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
|
*bump*
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby --- Don't ever argue with idiots. They drag you down to their level and beat you with experience. |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2004
Lives in PK, NY
Hosted on pilot
85 posts
Gave thanks: 1
Thanked 3 times
|
You use the onLoad property in your HTML body tag to start the script.
example -- <BODY onLoad="start()"> In the script have a function named start <SCRIPT LANGUAGE="JavaScript"> function start() { } </SCRIPT> In the start function, use SETTIMEOUT to initiate another function, which contains the javascript you want to run. (You could skip the start function and just have onLoad="settimeout blah blah") I'm too lazy to reference the settimeout function right now, but it's easy to use. Google it. |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
|
thanx for the info, but I messed up on my part. This is what I want to do:
(Guest clicks link)--> (This triggers a script) --> (After 10 seconds another script is triggered.)
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby --- Don't ever argue with idiots. They drag you down to their level and beat you with experience. Last edited by darkzeroman; September 21st, 2004 at 7:00 PM.. |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
|
oh forget it...thanks though..I used the script and kinda changed it...but I think I got what I wanted.
Thanx
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby --- Don't ever argue with idiots. They drag you down to their level and beat you with experience. |
|
|
|