Forum Moderators: not2easy
function LHNRollOver(item) {
item.style.backgroundImage="url(http://www.foxsports.com.au/images/leftnav_over_bg.gif)";
item.style.color='#4B4B4B';
}
The page in question is here:
<sorry, no URLs>
Its a new site, there may be other things whack. I need to solve this menu thing though.
I have tried using base href in the page, standard JS preloading the 2 menu images, removing 'www', all no luck.
I hope someone can offer a suggestion or point out something obvious - which would make me happy :)
I will try to solve someone else's problem in return - although its hard to find one unsolved!
[edited by: tedster at 11:37 am (utc) on Nov. 6, 2002]
Unforunately, this is a browser problem with recent versions of IE and I don't know of a workaround, sorry to say. I stopped designing image rollovers because of it and use CSS hover behaviors instead. That helps with bandwidth, but it does limit the artisitc effects that I can achieve.
I see what you're saying about hover effects saving bandwidth over image rollovers, but that's why I like CSS swapping out the background image. Only 2 images needed for an entire nav, and if each image is only a few hundred bytes then bandwidth won't be an issue, and the designer is happy. :)
...that's why I like CSS swapping out the background image
Please, let us know if IE does use the cached image when you reference the relative path instead of the absolute. With foreground rollovers, that doesn't seem to change the stupid behavior.
If background-image swaps do work with relative URLs, I will happily add this to my bag of tricks.
You're right on the money -- a few hundred bytes is a very small bandwidth price. However, a server hit on every mouseover is no good at all - and a lot of the web currently suffers from sluggish rollover response because of this IE strangeness. Standard DW rollovers are affected, and they're all over.
Mozilla, Netscape 7 and even Opera will correctly use the cached image regardless of whether the mouseover background image path is relative or absolute. It's a really clumsy bug by Microsoft I must say.
At least we do have a workaround, and the technique allows us to have light-weight semi-graphical rollover menus that are bandwidth friendly. They may even come back in fashion!