Results 1 to 2 of 2

Thread: Time intervals

  1. #1
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Time intervals

    I need a small script (time interval script) that will execute another javascript when time elapses.
    For example, after 30 seconds greeting script appears.

    Any info, will be welcomed.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Let's say your greeting script is started by a function called greet(). Then just use this:

    setTimeout=("greet()",30000);

    30000 is 30 seconds counted in milliseconds, the time unit accepted by the setTimeout command.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •