Basic HTML version of Foils prepared April 4 1999

Foil 41 A User Event Handler in 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_processclick(e) { // Process Mouse Click
var clickX = WW_eventx(e); // Extract Mouse Click Position
var clickY = WW_eventy(e);
// Position Top right of pointer at mouse click
var width = WW_getlayerwidth(WW_pointerlayer);
WW_layershiftto(WW_pointerlayer,clickX-width,clickY);
WW_layershow(WW_pointerlayer); // Make pointer visible
WW_layertotop(WW_pointerlayer); // set zindex=1000
WW_offpointerblock(); // remove stray mouseover messages
window.status = 'click'; // flag action
// true implies that you continue conventional processing i.e.
return true; // that clicks on links are recognized
} // End WW_processclick(e)



© 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