Is this a good idea?

Discussion in 'HTML & Website Design' started by 87654321, May 28, 2006.

  1. #1
    I just implemented (hope i spelt that right) a page loading script on the site:
    http://indoxyldesigns.com

    So basically what it does is that while the page is loading it shows a div and after the page is loaded, using JS, it sets the div's visibility to hidden (CSS).

    I also made the div 60% transparent, to improve the look and feel of the site.

    Now, my problem is that if Javascript is disabled... the loading div does not go away :eek:

    Can anyone suggest any different approaches?:confused:

    TIA
    -Paul
     
    87654321, May 28, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Unless your page takes too long to load, there's no need for the wobbler. But, if you just feel you must use one, have it {display: none;} by default. Use an early loading javascript to make it visible. That way if there's no javascript, there's no wobbler to begin with.

    In fact, have the js draw the wobbler so that if there's no css either, the rogue wobbler div won't be there at all.

    cheers,

    gary
     
    kk5st, May 29, 2006 IP