Basic HTML version of Foils prepared April 4 1999

Foil 40 Capturing Events in Today's DHTML

From The Document Object Model - Universal Access - Other Objects - CORBA XML Jini JavaScript etc. Tango Seminar to DoD Modernization MSRC -- April 6 1999. by Geoffrey C. Fox

NPAC Dynamic HTML Examples
function WW_pageisloaded() { // Initialize when page loaded
if(WW_oldbrowser)
return;
if( WW_Netscape4 ) { // Netscape
window.captureEvents(Event.CLICK);
window.onclick=WW_processclick; }
else { // Microsoft
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; }
return;
} // End WW_pageisloaded()
Capture ALL Click events and set handler
Set event handlers for mouse events recognized
in conventional way



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Apr 12 1999