Basic HTML version of Foils prepared 11 March 99

Foil 64 A User Event Handler in DHTML

From Overview of JavaScript II -- From Cookies to Dynamical HTML CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

DHTML Utilities and Second DHTML Example in html and text for Foil 64
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 Thu Mar 11 1999