Capturing Events in Today’s DHTML
function WW_pageisloaded() { // Initialize when page loaded
if( WW_Netscape4 ) { // Netscape
window.captureEvents(Event.CLICK);
window.onclick=WW_processclick; }
document.onclick=WW_processclick; }
WW_pointerlayer = WW_getlayer('WWpointerblock'); // Pointer
WW_pointerlayer.onmouseover = WW_overpointerblock; // Mouse Over
WW_pointerlayer.onmouseout = WW_offpointerblock; // Mouse Out
WW_pointermessageobject = WW_getlayer('WWpointermessage');
if(!WW_Netscape4 ) { // Microsoft set layer width
WW_pointermessageobject.style.width =200;
WW_pointerlayer.style.width=64; }
} // End WW_pageisloaded()
Capture ALL Clickevents and set handler
Set event handlersfor mouse events captured