Basic HTML version of Foils prepared 11 March 99

Foil 61 Set Other Properties of a Layer 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 First DHTML Example in html and text for Foil 61
WW_setbackgroundcolor(WW_messageobject,cc);
function WW_setbackgroundcolor(obj,actualcolor) {
if( WW_Netscape4 ) {
obj.bgColor = actualcolor; }
else {
obj.style.backgroundColor = actualcolor; }
return;
} // End WW_setbackgroundcolor(obj,actualcolor)
WW_layertogeneric(WW_messageobject,75) // Set stacking index to 75
// At any point of window, object with largest stacking(z) index is shown
function WW_layertogeneric(obj,stackingindex) {
if(WW_Netscape4 ) {
obj.zIndex = stackingindex; }
else {
obj.style.zIndex = stackingindex; }
} // End WW_layertogeneric(obj)
ASCII string such as "pink" setting dynamically object
background color
One can separately
choose to hide layer
or make it visible



© 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