Basic HTML version of Foils prepared April 4 1999

Foil 39 Set Positions of a Layer 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_getlayer(idstring) { // Find layer with given label
if( WW_Netscape4 ) {
return eval("document." + idstring); }
else { // Microsoft
return eval("document.all." + idstring); }
} // End WW_getlayer()
function WW_layershiftto(obj,x,y) { // Move layer to given position
if(WW_Netscape4 ) {
obj.moveTo(x,y); }
else { // Microsoft
obj.style.pixelLeft = x;
obj.style.pixelTop = y; }
} // End WW_layershiftto(obj,x,y)
WW_messageobject = WW_getlayer('WWmessage1');
WW_layershiftto(WW_messageobject,parseInt(x),parseInt(y));
id attribute in <div> #WWmessage1 in STYLE
Returned by WW_getlayer
Read in from form as text
Decide on Browser



© 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