Palehorse
11-30-2006, 10:22 PM
Howdy,
I am hoping somebody might be able to assist me. What I want to accomplish may not even be possible, but it is worth a shot.
With an <IMG> tag, we are able to use the "alt" property to display text to a user should the image not be available. What I am trying to figure out is if there is a way for me to just display a different image if the primary one is not available.
I was thinking there would be a way - sort of like you can specify many different font-names in a style sheet - is there a way to specify different images some how?
I want this to be client-side - I can do check via server-side to see if the image even exists before I try to display it, but do to some other issues, I can't do that. Basically, if "image1.gif" is not there - I want it to display "image2.gif" and I was wondering if there is a way to do this...any help is appreciated :)
I am hoping somebody might be able to assist me. What I want to accomplish may not even be possible, but it is worth a shot.
With an <IMG> tag, we are able to use the "alt" property to display text to a user should the image not be available. What I am trying to figure out is if there is a way for me to just display a different image if the primary one is not available.
I was thinking there would be a way - sort of like you can specify many different font-names in a style sheet - is there a way to specify different images some how?
I want this to be client-side - I can do check via server-side to see if the image even exists before I try to display it, but do to some other issues, I can't do that. Basically, if "image1.gif" is not there - I want it to display "image2.gif" and I was wondering if there is a way to do this...any help is appreciated :)