Display message while page loading

================================================================
Module : To display message while page loading
Programmer : Mohd Izzairi Yamin
Date : 9/25/2007 12:29PM
Modified : 9/25/2007 12:29PM
================================================================
<?
function page_load(){
echo “<SCRIPT TYPE=’text/javascript’ LANGUAGE=’javascript’>”;
echo “function reloadPage() {”;
echo “if (document.getElementById){”;
echo “document.getElementById(’prepage’).style.visibility=’hidden’;”;
echo “}else{”;
echo “if (document.layers){”;
echo “document.prepage.visibility = ‘hidden’;”;
echo “}”;
echo “else {”;
echo “document.all.prepage.style.visibility = ‘hidden’;”;
echo “}”;
echo “}”;
echo “}”;
echo “</SCRIPT>”;
}
page_load();
?>
<BODY onLoad=’reloadPage();’>
<DIV id=’prepage’ style=’position:absolute; font-family:arial; font-size:16; left:0px; top:0px; background-color:white; layer-background-color:white; height:100%; width:100%;’>
<TABLE width=100%><TR><TD><B>Please wait while loading …..</B></TD></TR></TABLE>
</DIV>


About this entry