Jump to content

Opacity


glenelkins

Recommended Posts

Hi mates

You can try with the following method for setOpacity

 

function setOpacity( element, alpha ) {
var style = element.style;
if( style.MozOpacity != undefined ) { //Moz and older
	style.MozOpacity = alpha;
}
else if( style.filter != undefined ) { //IE
	style.filter = "alpha(opacity=0)";
	element.filters.alpha.opacity = ( alpha * 100 );
}
else if( style.opacity != undefined ) { //Opera
	style.opacity = alpha;
}
}

 

Thanks

ShaymoL

Link to comment
https://forums.phpfreaks.com/topic/48106-opacity/#findComment-235099
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.