Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Show "Loading..." DIV a la gmail.com in the right top corner

Reply
Thread Tools

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

 
 
yonthebeach@googlemail.com
Guest
Posts: n/a
 
      06-29-2006
Hi,

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

thanks
yavuz

 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      06-29-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In FF the top is at 50px realative to the div top but in IE8 it's at 100 AAaron123 ASP .Net 6 11-05-2009 08:08 PM
vista 64 - mouse pointer stuck in top left corner of screen liquidstool Windows 64bit 5 06-26-2008 12:08 AM
objects default to top left corner when adding to templates LaurieRQHR ASP .Net Web Controls 0 04-11-2007 09:00 PM
Float a <div> in bottom right corner of paragraph J Rice HTML 2 07-25-2006 12:26 AM
How to float a DIV top right corner of browser? Michael Javascript 1 02-20-2006 12:26 AM



Advertisments