How about: <html> <head> <title>My page</title> <script type="text/javascript"> document.write("<style type='text/css'>#content { display: none } #loading { display: block } <\/style>"); $( function() { $("#loading").hide(); $("#content").show(); }); </script> </head> <body> <div id="loading">Loading...</div> <div id="content"> .. content here </div> </body> </html>
On May 24, 7:45 pm, "Jean Nascimento" <[EMAIL PROTECTED]> wrote: > I´ve tried add some code before the $(document).ready but its dont > work, so i wanna know how the best way to show some Loading div before > all docuemnt be ready? > > -- > > []´s Jeanwww.suissa.info > > Ethereal Agencywww.etherealagency.com