Forum Moderators: not2easy

Message Too Old, No Replies

need help

loading div on page load

         

c0mrade

12:54 pm on Dec 3, 2007 (gmt 0)

10+ Year Member



hi all,

I have a problem with my website. I want to create something like that one div loads when my page opens and that other website parts become black so that only that part is visible, click able etc.

thank you for any answers

Xapti

6:45 am on Dec 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would not recommend that. I believe that this requires Javascript to be done effectively, which increases load time, and can look bad for people with JS disabled (unless special effort is done for them).
It doesn't really have much to do with CSS, so I wouldn't be able to give a real solution.
Another method (which I'm not sure if it's any better) is to use PHP (or perhaps another server-side language) to use "page-loading" redirects, or something like that.

Generally I find that if a loading screen is necessary, the page just has too much content, and should be reduced. There should never be a loading page, since it just adds even more to load!