<Html>
<Head>
<Script Language = "Javascript">
isIE4 = (document.all) ? 1 : 0;
isNS4 = (document.layers) ? 1 : 0;
isNS6 = navigator.appVersion.charAt(0) == 5
&& navigator.appName.charAt(0) == "N";
function Input_HopupMessage() {
this.msg = new Array();
this.msg[0] = "";
this.msg[1] = "<Table border=0 width=100 height=100
Bgcolor='#8899bb'><Tr><Td>TEST</Td></Tr></Table>";
this.msg[2] = "<Table border=0 width=100 height=100
Bgcolor='#88bb99'><Tr><Td>TEST</Td></Tr></Table>";
this.msg[5] = "<Table border=0 width=100 height=100
Bgcolor='#bb8899'><Tr><Td>TEST</Td></Tr></Table>";
}
var HopupMessage = new Input_HopupMessage();
var count = 0;
for(xx=0; xx < HopupMessage.msg.length ; xx++) {
if (HopupMessage.msg[xx] ) {
if ( isIE4 || isNS6 ){
document.write("<Div id='MSG"+xx+"' style='position:absolute;
display:block;top:"+ (count * 30) + ";left:"+ (count * 50) +"'>");
document.write( HopupMessage.msg[xx] + "</Div>");
el = document.getElementById("MSG" + xx);
el.style.zIndex = HopupMessage.msg.length-xx;
} else if( isNS4 ) {
document.write("<Layer name='MSG"+xx+" visibility='show'top='"
+ (count * 30) +"'left='"+ (count * 50) +"'>");
document.write( HopupMessage.msg[xx] );
document.write("</Layer>");
document.layers["MSG"+xx ].zIndex =
HopupMessage.msg.length-xx;
}
count ++;
}
}
</Script>
</Head>
<Body>
</Body>
</Html>
|