D
Dean Edwards
I am attempting to change the opacity of an image. I can modify opacity ok:
function flip(pic, opacity){
pic.style.filter = 'alpha(opacity='+opacity+')';
}
But I'm not familiar with javascript. How can I read the existing opacity
value?
accessing the value like:
opacity=cell.style.filter.alpha.opacity;
does not work (in IE6).
Also I am having trouble with the equivalent netscape syntax.
Any help would be much appreciated.
TIA
function flip(pic, opacity){
pic.style.filter = 'alpha(opacity='+opacity+')';
}
But I'm not familiar with javascript. How can I read the existing opacity
value?
accessing the value like:
opacity=cell.style.filter.alpha.opacity;
does not work (in IE6).
Also I am having trouble with the equivalent netscape syntax.
Any help would be much appreciated.
TIA