player.onwheel = function(e){ var del = e.deltaY/100; this.setVolume( this.getVolume() + del > 100 ? 100 : this.getVolume() + del < 0 ? 0 : this.getVolume() + del ); };