I have a html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title/>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
<style type="text/css">
a.button {
background: url('button.png') repeat-x;
}
a.button:hover {
background: url('button_hover.png');
}
</style>
</head>
<body>
<p><a class="button" href="#">Button</a></p>
</body>
</html>
The image button_hover.png
is only being downloaded when I hover the button. I know that it is the default browser behaviour.
Is there some way to force the download of the image? If yes, how? (I would prefer not to use JavaScript, but I could if there was no other choice).
Thanks and sorry for my bad English.