Posted: May 28, 2012 in Random Posts

To implement this you will need to:

1. Every time your page loads a “init()” function will load.

<body onLoad="init()">

2. Define a div named “loading” right after section.

The loading.gif image should be an animated gif that suggests that the page is still loading.

3. Place this javascript code right after you define the div.

var ld=(document.all);
var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
if (ns4)
else if (ns6)
else if (ie4);
function init()
else if (ns6||ie4) ld.display="none";

View original post


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s