how 'bout <html> <head> <title>My page</title> <style type='text/css'> #content { display: block } #loading { display: none } </style> <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 5/24/07, Sam Collett <[EMAIL PROTECTED]> wrote:
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
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ