Javascript – Display Loading Image While Page Loads

Html:

CSS:

.loader {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: url('images/page-loader.gif') 50% 50% no-repeat rgb(249,249,249);
}

Javascript:



Referência.

Share and Enjoy !

0Shares
0 0