Forum Moderators: not2easy
I'm trying to use the sliding doors technique on a submit button. It works in Firefox as expected. In IE6 the image doesnt change, and the hand pointer doesnt appear on hover. Any suggestions?
.checkout {
background:url(../images/cartbuttons/checkout.gif) repeat 0px 0px;
width: 156px;
height: 60px;
border:0px;
display: block;
}
.checkout span {
display: none;
}
.checkout:hover {
background: url(../images/cartbuttons/checkout.gif) repeat 0px -60px;
cursor:pointer;
}
<form>
<input type="submit" value="" class="checkout">
</form>
But the reason it doesn't work is one of the bugs/features of IE6: it doesn't support hovering over anything but an <a>.
To fix it you need some scripted help e.g. IE7.js [code.google.com] does wonders.
[edited by: DrDoc at 12:06 am (utc) on April 21, 2009]
[edit reason] fixed link code [/edit]