SPeedY_B
I may actually be insane.
- Joined
- 31 Mar 2002
- Messages
- 15,807
Presently, I have the following code to replace images which are not available:
which works perfectly, however onError within an img tag isn't XHTMLv1.1 compliant, therefore does anyone know of a different way this can be done, which is compliant?
Code:
[b]Head[/b]
<script language="JavaScript" type="text/javascript">
function noImage(theImage) { theImage.src = "images/offline.png"; }
</script>
[b]Img Code[/b]
<img src="[i]whatever[/i]" alt="img" onError="noImage(this);" />