469,331 Members | 1,885 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

Ridding the image red cross

36
Hi Guys

Can anyone help me with this one?

Basically I am using the following script to pull in a url from a field called "Picturelink" in my databse table:

----------script-------------
response.write "<table>"
response.write "<tr><td width=131 width=40 background=mainblankpic.gif><img height=65 src=" & picturelink & " width=88 border=0></td</tr>"
response.write "</table>"
---------end------------

The "picturelink" field simply contains a url which points to an image on my web server. However, sometimes the url in the "picturelink" field, which point to the images, are incorrect and therefore I get one of those red crosses where the image should be.

I have used the following script to get around this type of problem before but I am unable to incorporate it into the above script.

<IMG Src="mysite/images/noimagethere.jpg" style="display: none;" onLoad="this.style.display='inline';">

Has anyone got any ideas how I can stop the red cross from appearing when there are no images present or even perhaps have a better solution?

Any help would be fully appreciated

best regards

Rod from the UK
Sep 18 '07 #1
1 1031
rjoseph
36
Hi Guys

I finally managed to suss it.

Thanks anyway

Rod from the UK
Sep 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Gianpiero Colagiacomo | last post: by
15 posts views Thread by Anand Ganesh | last post: by
1 post views Thread by Dan | last post: by
1 post views Thread by swetha | last post: by
16 posts views Thread by Stevo | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.