if ( document.attachEvent ) { document.attachEvent ( 'onmousewheel', mufuncwheel, false ); } else { document.addEventListener("DOMMouseScroll", mufuncwheel, false);; }