473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1084
rjoseph
36
Hi Guys

I finally managed to suss it.

Thanks anyway

Rod from the UK
Sep 19 '07 #2

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

Similar topics

4
by: Gianpiero Colagiacomo | last post by:
Hi, I'm trying to use the following code (found online - can't remember where) to validate images being uploaded to my server: function checkImageUpload (fileName) { if (document.layers &&...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
9
by: EricJ | last post by:
hi all the situation there is a picbox w a drawing, if the user clicks somewhere on the drawing a cross is added where he clicked (the cross is a pic in a new picture box), he can add as many...
1
by: Dan | last post by:
Hi, I was wondering if anyone could come up with a cross browser image transition that I could use... I have already made one that works in IE but i know it doesn't work in Mozilla Firefox. ...
3
by: BB | last post by:
Hi, I am using repeater control.in my aspx page. one of the column of control displays images. Filenames of images are stored in table. Now when I run it and if display Image is blank. I see place...
1
by: swetha | last post by:
HI, I am very new to C++.Using C++ I am reading one bitmap image.Now,I am trying to zooming that image.Can any one tell me which function have to use for this.Or can any one send some sample code...
1
by: saikris | last post by:
I have a requirement in which I need to check some files and provide the report on UI. And I would like to design this in such a way that on Windows form it displays all file names and then it...
16
by: Stevo | last post by:
I'm guessing this is a laughably obvious answer to many here, but it's not to me (and I don't have a server or any knowledge of PHP to be able to try it). It's not strictly a PHP question, but...
2
by: Ben | last post by:
Hi, i defined an imagebutton like this: <asp:ImageButton ID="ImageButton1" runat="server" /> Sometimes, the picture must be shown, sometimes not. I did this in code-behind: Dim x As Integer...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.