Forum Moderators: open
To support alpha transparency for PNGs in IE 6 I am using Dean Edward's IE7 javascript patch that adds that functionality. When the page loads, the script finds PNGs and replaces them with AlphaImageLoader calls if the browser is IE less than 7. It works fine, heck it works great.
Problem is, I have pages where the user can dynamically swap the SRC of the PNGs. Right now I reference the PNG using the it's ID. But, in IE6 using the IE7 javascript patch, that ID references an element that has been removed. I can't sort out how to reference the replaced object.
I have browsed through the source code but it's written in a way that does not make sense to me. Anyone have any ideas?
I doubt if this is helpful, but jus thinking: would there be a way of referencing the images by class instead of ID and then using multiple classes, one of which is unique to the replaced image another to the original image?