472,125 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

Ridding the image red cross

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:

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>"

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 1056
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.