| | |
PHP page loading
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 142
Reputation:
Solved Threads: 0
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
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
html Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <script language="javascript" type="text/javascript"> <!-- (document.getElementById) ? dom = true : dom = false; function hideIt() { if (dom) {document.getElementById("layer1").style.visibility='hidden';} if (document.layers) {document.layers["layer1"].visibility='hide';} } //--></script> </head> <body onload='setTimeout("hideIt()",1000);'> <div id="layer1" >this is a div that will show till the page is loaded +1 second (see timeout above)</div> as;lkjasd bla bla blah this is the reast of the page </body></html>
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
javascript Syntax (Toggle Plain Text)
(document.getElementById) ? dom = true : dom = false; function hideIt(id) { if (dom) {document.getElementById(id).style.visibility='hidden';} if (document.layers) {document.layers[id].visibility='hide';} } function showIt(id) { if (dom) {document.getElementById(id).style.visibility='visible';} if (document.layers) {document.layers[id].visibility='show';} } 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
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
![]() |
Similar Threads
- How to call a PHP function from Javascript and return the results back into Javascrip (PHP)
- Error: on PHP page... (PHP)
- PHP Navigation help please (PHP)
- random page crashes in php (PHP)
- PHP Dynamic Images Loads Slowly! (PHP)
- IE only loading pages in Safe Mode on XP Home (Web Browsers)
- Multiple PHP INCLUDES (PHP)
- page.php?page=1,2,3,4,..inf. (PHP)
Other Threads in the PHP Forum
- Previous Thread: embedding java script in php
- Next Thread: Aes_encrypt/decrypt strange problem
Views: 370 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






