Closed Thread Icon

Preserved Topic: JavaRollover images don't preload (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18251" title="Pages that link to Preserved Topic: JavaRollover images don&amp;#039;t preload (Page 1 of 1)" rel="nofollow" >Preserved Topic: JavaRollover images don&#039;t preload <span class="small">(Page 1 of 1)</span>\

 
KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-15-2001 08:56


I borrowed one of Doc's Hand's On tutorials, fiddled around with it, then got realy drunk and wrote one of my own from scratch. I expanded on it a bit (ok, a LOT) so that the imageOn names are coming from a database, and the javascript for this is rendered by an ASP page. It works fine, except TWO of the images (PAN LEFT and PAN RIGHT - the menu is "pannable") don't preload. When I mouseover them, THEN they load.

To make matters even more mysterious, once the page does in fact load, if I let it set for a few hours, then come back an mouseover the buttons, they load ALL OVER AGAIN! One at a time as you mouseover them.

This is my first foray into JavaScript rollover menus (hell, this is my first JavaScript experience at all) - so I'm quite new to this.

The work is at http://www.wallaceinfo.com

Please have a look and tell me what you think the problem is. If you are on dialup, you may not wanna. It takes a LONG time to load. Also, if you look at 1024, then close the browser, reset winres to 800x600 and come back, everything will be resized (most of it) so that the screen looks about the same as it did in 1024x768.




GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-15-2001 13:29

could it be, that you dont have those two images in your preload array?



KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-21-2001 06:27

You were right about that. Those images were not in the image array. However, I still have the problem with after the browser sits inactive for a while (say ten minutes or 20) when you mouse over those rollovers, the images are downloading AGAIN! Both the ON and OFF states were originally downloaded, and do their rollover trick neatly. But after sitting idle for a while, then mouseover those images again, and the "flipside" image has to download again!

Any ideas?


Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

posted posted 12-21-2001 07:12

To me, that suggests that (for some weird reason) your browser is clearing its own cache after a while. Either double-check your browser settings, or give us a link so we can try it out ourselves.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-21-2001 22:16

IE does that. I don't know why. I've never considered it a big enough problem to worry about.

KirbyWallace
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

posted posted 12-22-2001 08:27

P.T. The link is in the message: http://www.wallaceinfo.com

Check it out.

« BackwardsOnwards »

Show Forum Drop Down Menu