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
1 WW_setbackgroundcolor(WW_messageobject,cc);
2 function WW_setbackgroundcolor(obj,actualcolor) {
3 if( WW_Netscape4 ) {
4 obj.bgColor = actualcolor; }
5 else {
6 obj.style.backgroundColor = actualcolor; }
7 return;
8 } // End WW_setbackgroundcolor(obj,actualcolor)
9 WW_layertogeneric(WW_messageobject,75) // Set stacking index to 75
10 // At any point of window, object with largest stacking(z) index is shown
11 function WW_layertogeneric(obj,stackingindex) {
12 if(WW_Netscape4 ) {
13 obj.zIndex = stackingindex; }
14 else {
15 obj.style.zIndex = stackingindex; }
16 } // End WW_layertogeneric(obj)
17 ASCII string such as "pink" setting dynamically object
18 background color
19 One can separately
20 choose to hide layer
21 or make it visible

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