I thought about that, but I have thousands of images, I would just like to
"X" out the image when the page loads if neccessary.
Maybe it just can't be done.
Andy
"Randy Webb" <hi************@aol.com> wrote in message
news:xM********************@comcast.com...
Andy wrote:
Is there a way to overlay a Red X on top of a .jpg image so the image
still is visible but X'd out?
function XitOut{
if(document.me.Quantity.value == 0)
{
Put a X over the .jpg image(Okay, I know thats not JS)
}
}
Take the image, make a second one with the red X already on it. Then, do
a simple image swap.
if (document.forms['me'].elements['Quantity'].value == 0)
{
document.images['imageName'].src = 'imageWithX.jpg';
}
<img src="imageWithoutX.jpg" name="imageName">
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/