icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old September 21st, 2004, 2:09 PM   #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.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 21st, 2004, 5:42 PM   #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.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 21st, 2004, 6:48 PM   #3 (permalink)
Registered User
Seasoned Poster
 
potato's Avatar
 
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.
potato is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 21st, 2004, 6:54 PM   #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..
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 21st, 2004, 7:13 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.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On