Menu
I have a script that displays images in a directory, when it tries to call an image that doesnt exist it replaces the image with ‘NoImage.gif’ which is a 1×1 clear pixel.
I can’t help but feel I am doing this shotty. Is there a way to just have not display anything onerror?
[CODE]document.writeln(‘<img src =”‘ + strURL +
‘” onError=”this.src=’NoImage.gif’;” border=”0″>’);