il secondo pezzo di funzione, mettila cosi' ...
codice:Sound.prototype.fade = function( how ) { var fadeTo = how == "in" ? 1 : -1; if( this.increment ) { clearInterval( this.increment ); } this.increment = setInterval( soundFader, 20, this, fadeTo ); }


Rispondi quotando