473,396 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Are hover background images automatically preloaded?

Hi!

When I assign a different background image "on hover" for an element, such
as

a {background-image:url(normal.gif);}
a:hover {background-image:url(hover.gif);}

is the hover image then automatically preloaded by the browser? Or would I
have to include a JavaScript preload to make sure? (Mozilla seems to
preload, but I can't get any preloading to work on my IE5 - not even with
JavaScript; but maybe there's just something wrong with my configuration,
though I have no clue what...).

Thomas
Jul 20 '05 #1
2 7554
Thomas Mlynarczyk wrote:
Hi!

When I assign a different background image "on hover" for an element, such
as

a {background-image:url(normal.gif);}
a:hover {background-image:url(hover.gif);}

is the hover image then automatically preloaded by the browser? Or would I
have to include a JavaScript preload to make sure? (Mozilla seems to
preload, but I can't get any preloading to work on my IE5 - not even with
JavaScript; but maybe there's just something wrong with my configuration,
though I have no clue what...).

Thomas


Try this: http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #2
Also sprach Anne van Kesteren:
Try this: http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/


Thanks a lot for this link - great idea. I've just tried it out and it seems
to work - except for my IE50 (haven't tested IE6 yet). My IE supports all
the features needed and produces the expected effect, but it still responds
to the hover as slowly as if it would get the image from the server! Why???

Could someone using IE50 please test the rollover?
http://www.mlynarczyk-webdesign.de/lena/

Thanks for your help.
Thomas

--

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nikolaos Giannopoulos | last post by:
If I have simplified html (I have removed height, weight, alt, etc... attributes to simplify the example) such as: <div id="header"> <a href="blah.html"><img src="img/blah.jpg"></a> </div> ...
3
by: Alex | last post by:
Hi all, I'm using the following code in my website, and it's looking totally different on IE and Firefox. It actually works on IE while Firefox is weird. In CSS: img.left_nav_1 {background:...
10
by: Richard Steele | last post by:
Can anyone help me I am developing an application runs on a PC (client) only. For graphical reasons it was decided that the content would be displayed in a Browser that is embedded in a Windows...
2
by: chris_culley | last post by:
Hi there, I've got a gif with (highly) irregular shapes (lots of jigsaw pieces) that I want to map so that each piece is a link... The pieces are currently just a frame drawing, but as they...
2
by: andrewtayloruk | last post by:
Hi, i'm pretty new to CSS and html so please go easy on me. I'm trying to make a menu, the idea is that when you hover over the images in the menu they glow. To do this i have set up the...
3
by: noize | last post by:
I have found other bugs related to using hover is CSS with IE, but I cannot find a fix for my issue. I have checked it in both IE 6 & 7 with the same results. I have built a drop-down menu using...
1
by: darkzone | last post by:
Hi I saw this layout and wanted to try some thing similar, but I am unable to change the position of the vertical menu with out changing the position of the hole document and I don't really have a...
4
by: Sigilaea | last post by:
My previous post got squashed because m post is too long. Sorry for that: I have an AJAX page with a CSS menu at the top. My problem is the hover functionality stops working after someone clicks...
1
by: rupak | last post by:
I have an mouseover effect with css on hover, which change the image on hover through Css. It works with IE fine but have problem with Mozilla, as the background image not coming full on hover. If...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.