vascobrito
Technical User
Hi there,
i have a page with 3 images in it. The name of one of the images depend on the current day (ex: image20041031.gif).
no trouble in there. some times the file isn't there for a while, and i need to load an alternative image if the first one isn't there.
i'm using "getElementById" and "getElementsByTagName" to set the SRC of the IMG tag after checking the date to determine the file name, but if the file isn't there , i get those stupid crosses in place of the image.
resuming, i need to check if the image loaded correctly and if not, load an alternative image.
thanks for any help
i have a page with 3 images in it. The name of one of the images depend on the current day (ex: image20041031.gif).
no trouble in there. some times the file isn't there for a while, and i need to load an alternative image if the first one isn't there.
i'm using "getElementById" and "getElementsByTagName" to set the SRC of the IMG tag after checking the date to determine the file name, but if the file isn't there , i get those stupid crosses in place of the image.
resuming, i need to check if the image loaded correctly and if not, load an alternative image.
thanks for any help