Results 1 to 2 of 2

Thread: Create an Hourglass

  1. #1
    Join Date
    Feb 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Create an Hourglass

    Hey guys! I was wondering if any of you might be able to help me out here. I have a table with buttons (actually png images) that are linked to another site. When the buttons are clicked, the content from the other site takes a while to come up, which can be confusing to my users.

    I need some code that I can put around each "button" (there are 7 of them) that will bring up an hourglass while the linked page is rendered.

    Any ideas?

    Thanks so much!
    Adam

  2. #2
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Play around with this, maybe ?
    in the head:
    Code:
    <style type="text/css">
    #loading{
    position: absolute; 
    position: middle;
    margin-left: auto;
    margin-right: auto;
    padding-left: auto;
    padding-right: auto;
    color: grey; 
    background: #ffffff; 
    font-family: arial; 
    }
    </style>
    Code:
    <body onload="document.getElementById('loading').style.display = 'none';document.getElementById('content').style.display = 'inline';">
    
    <div id="loading" style="padding-top:50px;">
    <p align=center>text
    <p align=center>text...
    <p align=center><img src="imgs/loader.gif" style="border: 0px;">
    </div>
    <div id='content' style='display:none;'>
    You could adapt this into your current design, where you place this code (with the css) in the area where your clock should be.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •