rem: setOpacity: function(opacity) { if(opacity<0.0001) opacity = 0; if(opacity==1.0) { this.element.style.opacity = '0.999999'; this.element.style.filter  = null; } else { this.element.style.opacity = opacity; this.element.style.filter  = "alpha(opacity:"+opacity*100+")"; } } 
add: Element.setOpacity = function(element, value){ element= $(element); if (value == 1){ Element.setStyle(element, { opacity: (/Gecko/.test(navigator.userAgent) && !/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999 : null }); if(/MSIE/.test(navigator.userAgent)) Element.setStyle(element, {filter: Element.getStyle(element,'filter').replace(/alpha\([^\)]*\)/gi,'')}); } else { if(value < 0.00001) value = 0; Element.setStyle(element, {opacity: value}); if(/MSIE/.test(navigator.userAgent)) Element.setStyle(element, { filter: Element.getStyle(element,'filter').replace(/alpha\([^\)]*\)/gi,'') + 'alpha(opacity='+value*100+')' }); } } 
context:   setOpacity: function(opacity) {    if(opacity<0.0001) opacity = 0; // fix errors with things like 6.152242992829571e-8    if(opacity==1.0) {      this.element.style.opacity = '0.999999';      this.element.style.filter  = null;    } else {      this.element.style.opacity = opacity;      this.element.style.filter  = "alpha(opacity:"+opacity*100+")";    }  }
meta: 3991	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3991/d29159eae8749c508d01bb447868321a3ba6bbfa/effects.js/buggy/manager/media/script/scriptaculous/effects.js