D
Defacta
HiYa!
I am trying to set the opacity of a div, it works with FF and with
Safari but not with IE7:
The page (which has been reduced) is:
http://boxfly.free.fr/test/opacity.html
Using IE7, we enter inside the "if" of the function:
function change_opa(i) {
if(document.all) {
alert("dans if") ;
document.getElementById('main-data').style.filter='alpha
(opacity=30)';
} else {
alert("dans else") ;
document.getElementById('main-data').style.opacity = 3/10 ;
}
}
But IE7 does not do the .style.filter...
Any idea ?
Thanks,
Vincent.
PS: Sorry for the alert('') which takes all the page!
I am trying to set the opacity of a div, it works with FF and with
Safari but not with IE7:
The page (which has been reduced) is:
http://boxfly.free.fr/test/opacity.html
Using IE7, we enter inside the "if" of the function:
function change_opa(i) {
if(document.all) {
alert("dans if") ;
document.getElementById('main-data').style.filter='alpha
(opacity=30)';
} else {
alert("dans else") ;
document.getElementById('main-data').style.opacity = 3/10 ;
}
}
But IE7 does not do the .style.filter...
Any idea ?
Thanks,
Vincent.
PS: Sorry for the alert('') which takes all the page!