|
Nice work, Mike. I wonder if both browsers would support the following? If so, it's fewer lines of code to maintain. <div id="msg" class="msg_hidden"> <style media="screen" type="text/css"> .msg_visible { position: absolute; z-index: 1; top: 100px; left: 0px; visibility: visible; } .msg_hidden { position: absolute; z-index: 2; top: 10px; left: 10px; visibility: hidden } </style> <script> function downLoad(){ oMsg = document.getElementById("msg"); oMsg.className = "msg_visible"; } </script> ----- Original Message ----- From: <MEovino@xxxxxxxxxxxxxxxxx> To: "Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx> Sent: Friday, July 18, 2003 1:22 PM Subject: Re: [WEB400] Message while SQL is pulling records... > > Nathan, > > I think I have this working in both IE 6 and Moz. Here's your styles: > > <style media="screen" type="text/css"> > .layer1_class { position: absolute; z-index: 1; top: 100px; left: > 0px; visibility: visible; } > .layer2_class { position: absolute; z-index: 2; top: 10px; left: > 10px; visibility: hidden } > </style> > > Here's your JS function: > <script> > function downLoad(){ > if (document.all){ > document.all["layer1"].style.visibility="hidden"; > document.all["layer2"].style.visibility="visible"; > } > else if (document.layers){ > document.layers.layer1.visibility="hidden"; > document.layers.layer2.visibility="visible"; > } > else if (document.getElementById){ > node = document.getElementById("layer1").style.visibility='hidden'; > node = document.getElementById("layer2").style.visibility > ='visible'; > } > } > </script> > > Refer to the div's as follows: > <div id="layer1" class="layer1_class"> > ... > <div id="layer2" class="layer2_class"> > > Mozilla seems to like this stuff in classes. IE 6 does not seem to mind > either way. With this, I get my waiting message in either browser. > > Mike E.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.