![]() Preserved Topic: Handling Preloading |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
![]() OK, here is the situation. We all know how ImageReady sets up rollovers, with preloading the images at the body onLoad. If that function isn't executed, then rollovers don't work. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Um. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() I prefer using the body onload method, it's just more elegant and helps the content load faster but you don't necessarily need to do it that way, you can just call the function at the bottom of your script. But then all the images need to load 3 times before the user gets the page. Depends on how graphic intensive your page is, if it's relatively light then the user won't notice much of a diff. |
Paranoid (IV) Inmate From: Dublin, Ireland |
![]() Another option would be to put the following after the Preloader function: |
Nervous Wreck (II) Inmate From: |
![]() Well, in case this comes as a surprise, ZoneAlarm is an extremely popular firewall software, which has, among it's features, the option to block ads (in the Pro version), and if set to block pop-up/pop-under, one of the things removed from the page is the onLoad property. |
Paranoid (IV) Inmate From: Lebanon |
![]() Hugh, it is better not to use a loaded flag, instead set the timer as: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() First of all, you don't need clearTimeout once the Timeout has happened. You only need that with setInterval. setTimeout will only execute the code once, and then loses its effect. |
Paranoid (IV) Inmate From: Lebanon |
![]() yes slime right, i forgot! |