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 }

Here's your JS function:
      function downLoad(){
        if (document.all){
        else if (document.layers){
        else if (document.getElementById){
        node = document.getElementById("layer1").style.visibility='hidden';
        node = document.getElementById("layer2").style.visibility

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.

                    "Nathan M. Andelin"                                         
                    <nandelin@xxxxxxxxxx       To:     "Web Enabling the AS400 
/ iSeries" <web400@xxxxxxxxxxxx>      
          >                 cc:                              
                    Sent by:                   Subject:     Re: [WEB400] 
Message while SQL is pulling records...     
                    07/17/2003 08:24 PM                                         
                    Please respond to                                           
                    Web Enabling the                                            
                    AS400 / iSeries                                             

> From: <MEovino@xxxxxxxxxxxxxxxxx>
> Stick something like this in your ...

Good example, Mike.  Combining CSS style and JavaScript to control
visibility of the user message.

> It works well in IE 6, not so well in Mozilla (if someone
> wants to play around with this).

I've noticed that too.

> Does Mozilla fire the onload event as soon as the page starts to
> load?

I don't think the problem is with the timing of the onload event.  Netscape
just doesn't seem to support the display or visibility attributes of CSS.
At least, I haven't been able to get it to work.  I'm still looking for a
standards compliant way to toggle element visibility on and off in

Nathan M. Andelin

This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.