/** * jspceo (v3.0) - class: jc.js for all pages. * * @author : folier * @email : jspceo@qq.com * @qq : 39886616 * @techno-support : ruixing.cc * copyright(c): jspceo 2008 - 2010 * * * * * ============================================================= * ------------------------- * opacity: * ------------------------- * exp: exp: jqobj.opacity(value); value is a integer between 0-100(0 is transparent) * eg.: $("#img").opacity(25); * * * ============================================================= **/ jquery.fn.extend({ opacity : function(value){ return this.each(function(){ if(value!=null){ if ( $.browser.msie ){ this.style.filter = "alpha(opacity = "+value+")"; }else{ this.style.mozopacity = parseint(value)/100; } } }); } });