My JS code includes some images that are empty at the beginning (without src attribute specified at all + display:none).
When added to sites with CSS1 compatibility I see broken image icon where the image should be even though the images are supposed not to be displayed (display:none).
Any idea how I can hide the broken image icons?
Notes: I don’t want to load empty images. I tried width and height= 1px or 0px . didn’t work. specifying src=” also gives empty image icons.
Edit: I found the solution: add style=’display:none’ to the img definition (Not in CSS)
Have you tried wrapping the images inside a div and hiding the div instead?