VB icon

While the page is loading, a PLEASE WAIT message

Email
Submitted on: 1/5/2015 9:33:00 AM
By: PIAZZA Stephane (from psc cd)  
Level: Beginner
User Rating: By 18 Users
Compatibility: HTML
Views: 7653
 
     Add those lines at the beginning of your page if there is a lot of pictures aso. While loading, a message will appear and will be hidden when the page will be fully loaded. Enjoy it ... And if u like it .... rate it .... Let's go to www.editeurjavascript.com to find a lot of javascript programs as this one.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: While the page is loading, a PLEASE WAIT message
' Description:Add those lines at the beginning of your page if there is a lot of pictures aso.
While loading, a message will appear and will be hidden when the page will be fully loaded.
Enjoy it ... And if u like it .... rate it ....
Let's go to www.editeurjavascript.com to find a lot of javascript programs as this one.
' By: PIAZZA Stephane (from psc cd)
'**************************************

<BODY onLoad="cacheOff()">
<!-- BEGINNING OF THE SCRIPT -->
<STYLE TYPE="text/css">
<!-- 
#cache {
 position:absolute; left=10; top:10px; z-index:10; visibility:hidden;
}
-->
</STYLE>
<!--
Lines above are creating a layer which show a message
displaying the 'PLEASE WAIT ... ' message
-->
<SCRIPT LANGUAGE="JavaScript">
ver = navigator.appVersion.substring(0,1)
if (ver >= 4)
	{
	document.write('<DIV ID="cache"><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Arial, Verdana" SIZE=4><B><BR>PLEASE WAIT ... <BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
	var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
	var HIDDEN = (navi) ? 'hide' : 'hidden';
	var VISIBLE = (navi) ? 'show' : 'visible';
	var cache = (navi) ? document.cache : document.all.cache.style;
	largeur = screen.width;
	cache.left = Math.round(100);
	cache.visibility = VISIBLE;
	}
function cacheOff()
	{
	if (ver >= 4)
		{
		cache.visibility = HIDDEN;
		}
	}
</SCRIPT>
<!--
When the page will be fully loaded, the message will be hidden
-->


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.