Angus here is my code tat works a treat
You can try it at http://www.ridgebacks.com.au
// *** SCROLLING BY MOUSEWHEEL HANDLER - delete if you want to restore normal mousewheeling ***
var mwHandler = function(evt)
{// Following checks that the mouse is pointing over the Scroll area and if not it aborts the scroll
// so that the main IE window will scroll instead
//Set the numbers here to basedon the Left and Top and Height and Width of the scroller
var ScrollerTop = 437;
var ScrollerHeight = 300;
var ScrollerLeftOffset = 170;
var ScrollerBarWidth = 17;
var ScrollerBarOffset = 354;
var MouseX = event.clientX;
var MouseY = event.clientY;
if (MouseX < (((page.winW()/2) - ScrollerLeftOffset) - (document.body.scrollLeft + document.documentElement.scrollLeft))) return true;
if (MouseX > (((page.winW()/2) + ScrollerBarOffset) + ScrollerBarWidth) - (document.body.scrollLeft + document.documentElement.scrollLeft)) return true;
if (MouseY < (ScrollerTop - (document.body.scrollTop + document.documentElement.scrollTop))) return true;
if (MouseY > ((ScrollerTop + ScrollerHeight) - (document.body.scrollTop + document.documentElement.scrollTop))) return true;
evt=evt?evt:window.event;
// You have to manually specify a scroller name in here (like 'content').
if (evt.wheelDelta) content.scrollBy(evt.wheelDelta / (window.opera ? 3 : -3));
else if (evt.detail) content.scrollBy(evt.detail * 12);
return false;
};
if (window.addEventListener && !window.opera)
window.addEventListener('DOMMouseScroll', mwHandler, false);
else window.onmousewheel = document.onmousewheel = mwHandler;
Wayne Wilson
HodariRafiki Rhodesian Ridgebacks
http://www.ridgebacks.com.au