Hi,
function wheel(event){
var delta = 0;
if (!event) event = document.getElementById('kartenmodul').event;Nein, das muss window.event bleiben, für den IE.
/* Initialization code. */
if (window.addEventListener)
window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;So:
var div = document.getElementById('kartenmodul');
if (div.addEventListener)
div.addEventListener('DOMMouseScroll', wheel, false);
div.onmousewheel = document.onmousewheel = wheel;Gruß!
Habe das was du mir geschrieben hast ausprobiert, es Funktioniert leider nicht
function wheel(event){
var delta = 0;
if (!event) event = window.event;
if (event.wheelDelta) {
delta = event.wheelDelta/120;
if (window.opera) delta = -delta;
} else if (event.detail) {
delta = -event.detail/3;
}
if (delta)
handle(delta);
}
/* Initialization code. */
var div = document.getElementById('kartenmodul');
if (div.addEventListener)
div.addEventListener('DOMMouseScroll', wheel, false);
div.onmousewheel = document.onmousewheel = wheel;
evtl. hilft der Link zum Kartenmodul um mir zu helfen ;-) www.dlzg.de/karte2/index2.php
Gruß