PHP page loading

Reply

Join Date: Sep 2008
Posts: 142
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

PHP page loading

 
0
  #1
Mar 9th, 2009
Hi
I had a php page with some datas. When a visitor visit this page I need to show a div until the page loads completely... I tried many but cant.... Please any one help me with right idea or a bit of script ......
Thank you for your time .....
And Sorry is my post is in a wrong place ( means in php instead of Javascript )

Thanks in Advance
Rajeesh
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,396
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 170
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: PHP page loading

 
0
  #2
Mar 9th, 2009
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  3. <head>
  4. <script language="javascript" type="text/javascript">
  5. <!--
  6. (document.getElementById) ? dom = true : dom = false;
  7. function hideIt() {
  8.  if (dom) {document.getElementById("layer1").style.visibility='hidden';}
  9.  if (document.layers) {document.layers["layer1"].visibility='hide';} }
  10. //--></script>
  11. </head>
  12. <body onload='setTimeout("hideIt()",1000);'>
  13. <div id="layer1" >this is a div that will show till the page is loaded +1 second (see timeout above)</div>
  14. as;lkjasd bla bla blah this is the reast of the page
  15. </body></html>
I use this script
hideit showit declared twice for mozilla and IE DOMs
the external javascripts actually define as
hideit(id) asnd showit(id) as a generic hide/show script
  1. (document.getElementById) ? dom = true : dom = false;
  2. function hideIt(id) {
  3. if (dom) {document.getElementById(id).style.visibility='hidden';}
  4. if (document.layers) {document.layers[id].visibility='hide';} }
  5. function showIt(id) {
  6. if (dom) {document.getElementById(id).style.visibility='visible';}
  7. if (document.layers) {document.layers[id].visibility='show';} }
  8. onResize="window.location.href = window.location.href"
Last edited by almostbob; Mar 9th, 2009 at 3:16 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 142
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Re: PHP page loading

 
0
  #3
Mar 9th, 2009
Thankyou for your support
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 370 | Replies: 2
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC