I'm wondering how you can substitute the src-property (or delete the whole img-node) with JavaScript, if the browser is realizing, that the image beyond the image-src-property doesn't exist (any more).
For example:
<div id="foo">
<img src="bar">
</div>
And the img-tag is pointing to nowhere. In some browser, esp. the iE, are showing a "no image" cross. I prefer to substitute bar with an alternative image url or substitute the img-node with a nbsp.
I found an approach, that doesn't really worked for me.
Please suggest me solutions only with PrototypeJS or raw JS (its a project which is using PrototypeJS and I don't wanna overload it with other frameworks).
best wishes
chris