Results 1 to 2 of 2

Thread: IE7 onLoad?

  1. #1
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default IE7 onLoad?

    Hello everyone. I use a lot of Flash in my designs, and I like to have them wait until the page is loaded to start playing. I use the body onLoad to accomplish this. In IE6, onLoad only fires *after* background images were downloaded. In FF2, background images are not considered when firing onLoad. From many a forum post found through google I found that it was FF2 that was behaving badly, and that the correct browser behavior was to wait for those background images. Complaints and bug reports were made to Mozilla, and now FF3 waits for the background images before firing onLoad.

    But IE7 seems to have moved backward from IE6? It seems like IE7 does not wait for background images when firing onLoad. Is this correct? Do I have the wrong idea about this whole issue?

    Any insight greatly appreciated!

  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

    I'm not making any promises, but you could try window.onload instead as well as window.attachEvent(). If you use window.attachEvent(), you also need window.addEventListener() for those browsers which support it and not the attachEvent method - basically (with one or two exceptions) all but IE.
    - 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
  •