sdlangers Posted August 3, 2006 Posted August 3, 2006 i have a site that displays dynamic images whose src is taken from a database. however, some of the image links are broken. is there a way to specify an 'alternate image' if the link is broken.. e.g. if an image called 'someImage.jpg' is missing or renamed, then i need a way to display a default image 'default.jpg' instead of displaying the standard red x that indicates a broken link <img src="/path/someImage.jpg"> i also cannot check on the server side if the file exists or not, because sometimes it exists but its not a valid image - and its a large database, so i dont want to have to manually review them all. thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.