Jump to content

JS Change Opacity


Mencarta

Recommended Posts

java script:

function changeOpacity(var opacity){	// CSS3	document.getElementById("gallery-pic").style.opacity = opacity / 100;	// IE	document.getElementById("gallery-pic").style.filter = "alpha(opacity=" + opacity + ")";}

For some strange reason this code won't work. Nothing is wrong with it as far as I can tell. Any help would be greatly appreciated.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...