Show "Loading..." DIV a la gmail.com in the right top corner

Discussion in 'HTML' started by yonthebeach@googlemail.com, Jun 29, 2006.

  1. Guest

    Hi,

    how can i show a div on the top right corner like gmail's "Loading..."
    div?

    thanks
    yavuz
     
    , Jun 29, 2006
    #1
    1. Advertising

  2. wrote:
    > Hi,
    >
    > how can i show a div on the top right corner like gmail's "Loading..."
    > div?
    >

    Not sure exactly what you want, but solution JavaScript dependent.

    JavaScript:

    function loadMsg(){
    var el=document.getElementById('loading');
    el.style.display="none";
    }

    // attach event after page loads
    if( window.addEventListener ) {
    window.addEventListener('load',loadMsg,false); //legacy
    } else if( document.addEventListener ) {
    document.addEventListener('load',loadMsg,false); //proper
    } else if( window.attachEvent ) {
    window.attachEvent("onload", loadMsg); //IE only
    }


    HTML:

    <div id="loading">Loading...</div>

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Jun 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J Rice
    Replies:
    2
    Views:
    713
    J Rice
    Jul 25, 2006
  2. AAaron123
    Replies:
    6
    Views:
    617
    AAaron123
    Nov 5, 2009
  3. LaurieRQHR

    objects default to top left corner when adding to templates

    LaurieRQHR, Apr 11, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    154
    LaurieRQHR
    Apr 11, 2007
  4. Michael
    Replies:
    1
    Views:
    191
  5. Replies:
    1
    Views:
    141
Loading...

Share This Page