Preserved Topic: Handling Preloading (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 07-08-2002 06:06
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 |
posted 07-08-2002 15:24
Um. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-08-2002 18:15
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 |
posted 07-08-2002 18:52
Another option would be to put the following after the Preloader function: |
Nervous Wreck (II) Inmate From: |
posted 07-08-2002 22:02
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 |
posted 07-15-2002 08:36
Hugh, it is better not to use a loaded flag, instead set the timer as: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-15-2002 13:24
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 |
posted 07-15-2002 14:25
yes slime right, i forgot! |