<HTML>
<HEAD>
<script>
function init()
{
if(document.getElementById('img1').complete)
{
document.getElementById('img1').style.visibility = "visible"
}
}
</script>
</HEAD>
<BODY onload=init()>
<img src="hello.gif" id="img1" style="visibility:hidden">
</BODY>
</HTML>
"Louise Greally" <lou_greally@h...> wrote in message
news:228347@j...
>
> Hi
>
> Can anyone tell me how to check if the scr of image exists. what Im
> trying to do is assign an image a src but if it doesnt exist (the source)
> or is incorrect then
> I dont want the X symbol which denotes the image source is
> incorrect,therefore the ALt wont do either- rather Id like to make the
> image invisible.
>
> frmSmp.pic.src = pic_src
> if ( // some way of assessing if source exists)
> {
> frmSmp.pic.style.display='';
> }
> return false;
>
> thanks
>
>