Default TemplateGreen TemplateBlue TemplateRed TemplateGold TemplateBlue Gloss Template
Article Categories

Mycities Network
Java Scripts Examples and Tutorials
Java Script Page Loading....

Friday Jan 05, 2007
This is a small script I have found from a website, it will display a loading message before your page is loading, I don't know if you just copy and past it will work, please read the code and understand and then use it.

<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
    function waitPreloadPage() { //DOM
        if (document.getElementById){
            document.getElementById('prepage').style.visibility='hidden';
        }else{
            if (document.layers){ //NS4
                document.prepage.visibility = 'hidden';
            }else { //IE4
                document.all.prepage.style.visibility = 'hidden';
            }
        }
    }
</SCRIPT>

<body onLoad="waitPreloadPage();" topmargin="0" leftmargin="0">

<DIV id="prepage" style="position:absolute; font-family:arial; font-size:16; left:0px; top:0px; height:100%; width:100%;">
    <TABLE width=100% height="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
        <TR>
            <TD>LOADING</TD>
        </TR>
    </TABLE>
</DIV>

Author: Safras Ahamed



Comments : What do you think about this news?
No Comments yet.

POST COMMENT
Name
Message
  Post will be visible after admins approval
 

About Maldives Resorts

Members Login
User ID
Password
    Register
Forgot password?

SriLankaWebHosting.com
Just for (Rs.500) $5 per month

Your own domain name, 1GB Space, Unlimited Email Address, Sri Lankan Support & for more info call us.
077-989-5368, 072-829-9077



Terms And Conditions | Link Directory

Join Sri Lanka Banner Exchange | Resources - Free Link Exchange