-
I like what you say, so if its browser settings what on earth is wrong with the settings of my version of IE5.5?
I have read those 2 sites you referenced and no clues as to whats wrong came to me (know a lot more about caching working the way I always thought it should) but no clues to the present problem.
Egg: if it all works for you as it should (are you sure there is absolutely no downloading taking place when you pass over the test buttons?) then maybe we need to compare some of our IE settings more intimately? You show me yours and I'll show you mine. [img]/infopop/emoticons/icon_biggrin.gif[/img]
Alan
-
I've cleaned out my temp internet file and tried your site again. The buttons are working as they should. My IE settings are basically set to the default. Why your browser should want to reload them afresh each time is a mistry?
Egg
-
I have IE5.5 SP2, default config, Win2K. If I switch to offline then IE caches the images locally and works.
The cache setting is set to Automatic (under Tools->Internet Options->Temporary Internet Files->Settings) on mine.
Security levels etc shouldn't make any difference to caching.
(worth checking whether it was fixed in one of the service packs)
James
-
... you are right!
Sorry for that! It wasn't XARA it was me... or really my Internet Explorer.
It works just fine, now.
Thanks for replies.
Risto
diri@videotron.ca
-
Alan, could it be that you are just out of disc space so the images can't be cached?
Mickie
-
1 Attachment(s)
Egg: Its no longer a mystery (or mistry!) read on...
Risto: your last comment is just what I would like to say, but you already have...
Mickie: Nope! If cache (temp files) fills it will just delete the oldest, but read on...
TOP HONOURS today go to James Frost I repeat James Frost is our winner!!!!
Your casual mention
<BLOCKQUOTE><font size="-1">quote:</font><HR> The cache setting is set to Automatic (under Tools->Internet Options->Temporary Internet Files->Settings) on mine.
<HR></BLOCKQUOTE>
sent me off to check what mine were, and I had 'every visit' checked. Now I am not quite sure why that setting should have stopped IE in its tracks, but it did!
Changed my setting to Automatic and absolutely everything worked just like I had always thought it ought to. I can't begin to imagine what IE's train of thought might have been, but all rollovers now work nice and quick on my site, my test site and Oystein's example as well.
So it gives me great pleasure to award James with his official 'Thank You' stamp. James, please feel free to plaster this image wherever you feel it might improve your street cred!
Thanks a bunch everyone - another success to notch up.
Alan
-
Alan,
It is my understanding - and I work for a browser company, so I may get the guys to confirm this tomorrow - that the preloading JavaScript is not reliable. There are two methods of getting a script to run when as part of a page load: put the script in-line, or use the onLoad event as part of the BODY tag.
Macromedia Dreamweaver does it differently. Have a look at http://www.isocalc.com/isocalc.js and http://www.isocalc.com/index.htm for the JavaScript and onLoad events in motion. I find this is far more reliable than in-line scripts. The onLoad event is only triggered _after_ all of the page and its in-line images (mouse-off) have been loaded. Typically the throbber stops throbbing, but the status bar indicates another x images to download. Giveaway.
You are relying on the browser to preload the images by running in-line script in the Head. I don't think you can rely on that to work. It's quite likely that later IE versions cope, but IE is pretty resilient to poor HTML and the like. Opera and Navigator will probably reject such mistakes. You can try moving that if (document.images) { block into the BODY section (i.e. between the <body> and </body> tags), or wrap it up into its own function and then call that function as part of the onLoad event response:
function preloadImages( ) {
if (document.images) {
Button1MouseOff = new Image(); Button1MouseOff.src = "Button1.gif"
Button1MouseOver = new Image(); Button1MouseOver.src = "Button1MouseOver.gif"
Button2MouseOff = new Image(); Button2MouseOff.src = "Button2.gif"
Button2MouseOver = new Image(); Button2MouseOver.src = "Button2MouseOver.gif"
Button3MouseOff = new Image(); Button3MouseOff.src = "Button3.gif"
Button3MouseOver = new Image(); Button3MouseOver.src = "Button3MouseOver.gif"
Button4MouseOff = new Image(); Button4MouseOff.src = "Button4.gif"
Button4MouseOver = new Image(); Button4MouseOver.src = "Button4MouseOver.gif"
Button5MouseOff = new Image(); Button5MouseOff.src = "Button5.gif"
Button5MouseOver = new Image(); Button5MouseOver.src = "Button5MouseOver.gif"
}
}
<BODY onLoad="preloadImages[ );">
Hope this helps clear it up.
Cheers,
Nick Wilkinson.
http://www.isocalc.com/index.htm
-
Oh, bugger, this flippin' form removed the <head> tag that I'd constructed for you. It should have been:
<BODY onLoad="preloadImages( )">
Hmmm, that should be better.
Nick.
-
Clearly knowing more about the detail of the subject than I do I think I get the drift of what you are saying, except that having made the changes as detailed in my post above the problem seems to have reliably gone away.
I will accept that the way of preloading the images may not (in your opinion) be the best way and I can respect that, but at the end of the day what I am doing now does work.
Again, Xara Ltd in their wisdom (and this is fundamentally their code) chose this method for whatever reasons, and for someone like myself for whome this subject is more a means to an end than an interest in itself, we have to rely on others and accept what they say.
Thank you anyway for your interest, I am sure I will in time begin to tune my html by experience, for it is only because of people like you and the others in this forum, that this particular thread has produced a result, and no doubt added a little to everybodys experience on the way.
Alan