I have the following DIV in my HTML which holds a large background image:
<div id="widget-image" class="tyreinfo1"></div>
Depending on which select box on a form on the page is selected, the background image will scroll to a different point. These positions are defined like so:
#widget-image.tyreinfo1 { background-position: 0px -105px }
#widget-image.tyreinfo2 { background-position: 0px -210px }
#widget-image.tyreinfo3 { background-position: 0px -315px }
#widget-image.tyreinfo4 { background-position: 0px -420px }
#widget-image.tyreinfo5 { background-position: 0px -525px }
The code on the select boxes is:
onfocus="$('#widget-image').removeClass().addClass('tyreinfo1');"
5 select boxes, each one adding a different tyreinfo class.
Surprise, surprise it's not working in IE6. I've checked using the debug toolbar and the classes are definitely being applied, however the background position resets to 0px 0px each time.
Any help appreciated!