Results 1 to 4 of 4

Thread: Swap image on timer?

  1. #1
    Join Date
    Oct 2007
    Posts
    53
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Swap image on timer?

    Hi, I am wondering if there is a way to use javascript to swap an image on the page for another one as soon as the page is done loading. Any help and code examples would be much appreciated!

    Thanks, Ka

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Why?

    If the page is loading, then the user may not be able to see the image. So if the image changes as soon as the page loads, the user may not see the change.

  3. #3
    Join Date
    Feb 2008
    Posts
    42
    Thanks
    0
    Thanked 13 Times in 13 Posts

    Default

    once again, look at quirksmode.org at the compatibility tables. setTimer is what you are looking for, but like AmenKa already alluded to, there isn't a reliable way to ensure that any sort of loading happens in the proper order without using javascript to load all of the elements on the page when you want them to.

  4. #4
    Join Date
    Oct 2007
    Posts
    53
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    I have managed to achieve the same effect using js to control the pages load
    Last edited by AmenKa; 03-16-2008 at 12:30 AM.

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
  •