ssll1
Aug 14th 2006, 9:42 pm
Hello. I was wondering if anyone could help me.
I'm working with javascript and I have 3 different images when I click on one image the opacity should decrease from 100 to 80 etc...
But I am using firefox and I'm not worrying about IE at the moment.
<img src= "images/card1.GIF" alt= "Card One" style= "opacity:1" onclick = "setOpac()">
in my script tags
function setOpac()
{
<img src= "images/card1.GIF" alt= "Card One" style= "opacity:opacity-0.2">
}
obviously this doesn't work...any tips?
Many thanks in advance :D
I'm working with javascript and I have 3 different images when I click on one image the opacity should decrease from 100 to 80 etc...
But I am using firefox and I'm not worrying about IE at the moment.
<img src= "images/card1.GIF" alt= "Card One" style= "opacity:1" onclick = "setOpac()">
in my script tags
function setOpac()
{
<img src= "images/card1.GIF" alt= "Card One" style= "opacity:opacity-0.2">
}
obviously this doesn't work...any tips?
Many thanks in advance :D