Log in

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



plazma
09-16-2009, 08:30 AM
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

kaos
09-19-2009, 07:55 PM
Try this:


<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>