Results 1 to 2 of 2

Thread: looking for a script / idea which will disable my page untill it loads completely

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default looking for a script / idea which will disable my page untill it loads completely

    Hi to all.
    I am quiet a bit new bee here .. i have tried to search for this on dynamic drive but i am not succesfull .. so if i duplicating issue or putting issue in wrong catagory then pls forgive me.

    OK .. I want a script or idea in which my page will stay in disabled mode(i.e user cannot click any text or control) untill my page loads compltely.

    Pls someone help me out. i m in urgent need.

    Thx in advance.

    Regards,
    Plazma

  2. #2
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Default

    Try this:

    HTML Code:
    <html>
    <head>
    <title>My Page</title>
    function showDiv(divID)
    {
    	var div = document.getElementById(divID);
    	div.style.display = ""; //display div
    }
    </head>
    <body onLoad="showDiv(content);">
    <div id="content" style="display:none;">
    PLACE YOUR ENTIRE BODY SECTION IN HERE 
    </div>
    </body>
    </html>

  3. The Following User Says Thank You to kaos For This Useful Post:

    plazma (09-21-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •