You could write a javascript function that changes the image source. You can call the function with the onError event handler of the <img> tag.
example: <img src="image.gif" onError="changeImage()"> Owen Munton --- Scott Mulholland <[EMAIL PROTECTED]> wrote: > Not in my case though, the images are on a remote > server :) > > -----Original Message----- > From: Jim Taylor > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 4:20 PM > To: CF-Talk > Subject: RE: detecting an image > > > This Should Do it > > <cfif FileExists(images.gif) > <IMG SRC="image.gif" WIDTH=18 HEIGHT=20" > <cfelse> > <IMG SRC="Otherimage.gif" WIDTH=18 HEIGHT=20" > </cfif> > > JT > > -----Original Message----- > From: Jochem van Dieten > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 12:22 PM > To: CF-Talk > Subject: Re: detecting an image > > > Jochem van Dieten wrote: > > Scott Mulholland wrote: > > > >>Any way using CF to tell if an image exists, and > show another image if it > >>doesn't? > >> > >>I don't think FileExists is not an option as the > images are on a remote > >>machine. CFHTTP and check the length of the > response? > > > > > > I would go for CFHTTP but for one of the customtag > versions. > not > > Jochem > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists