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
1 function WW_processclick(e) { // Process Mouse Click
2 var clickX = WW_eventx(e); // Extract Mouse Click Position
3 var clickY = WW_eventy(e);
4 // Position Top right of pointer at mouse click
5 var width = WW_getlayerwidth(WW_pointerlayer);
6 WW_layershiftto(WW_pointerlayer,clickX-width,clickY);
7 WW_layershow(WW_pointerlayer); // Make pointer visible
8 WW_layertotop(WW_pointerlayer); // set zindex=1000
9 WW_offpointerblock(); // remove stray mouseover messages
10 window.status = 'click'; // flag action
11 // true implies that you continue conventional processing i.e.
12 return true; // that clicks on links are recognized
13 } // End WW_processclick(e)

in Table To:


© 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