Hi folks

I have a zoom-style app that moves the background-position of an image if the mouse is moved on an element.

The code is essentially

$("#leftImageHolder").css({backgroundPosition:newX+"% "+newY+"%"});

In all compliant browsers, this works perfectly and smoothly, but in IE6 it causes the background to disappear before reappearing at the new position.

I've tried the following solution:

   try {
     document.execCommand("BackgroundImageCache", false, true);
   } catch(err) {}

But to no avail :(

Any ideas ?

BTW, the test showing is in IE6 in "Multiple IE Versions" on XP, which might have a bearing since it's not "true" IE6.

P.S. The sooner this crappy browser gets consigned to history, the better!!!!!

Thanks in advance,
Liam

Reply via email to