Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
IE bug: javascript affect position when it shouldn't
Is there some javascript&MSIE guru in the room ? I’ve got the strangest bug… and I’m no javascript expert.
Here I use a small javascript effect to fade-in an image (the javascript is inside the xhtml source, easy to read). It only affect the CSS style visibility, and the opacity of the image (yes I agree javascript to pure esthetics is mostly bad, but it degrade gracefully, and it’s an artist’s website… these people have strange needs :p ).
If you reload the page (I’ve tested MSIE 6), you should see the image (img#logo-image
, or /art/images/logo-edges.jpg
) “jump” slightly to its left. Or compare with any other browser, you should see the image where it’s supposed to be.
I’ve checked several things, and if I change the imageId
var to something else than logo-image, the image is not pushed to the left. So I guess it’s not the CSS’s visibility dom-inserted, nor the real CSS styles, but something (else) in the script… quite strange…
Any ideas ?
Last edited by Jeremie (2006-01-15 03:19:13)
Offline