Ir para conteúdo

[Entregue]Duvida site


yNinguem

Posts Recomendados

Adicione os códigos abaixo antes da tag </body>



<div class="se-pre-con"></div>
<style>
/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript,
if it's not present, don't show loader */
.no-js #loader { display: none; }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url(LINK-DO-GIF) center no-repeat #fff;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js"></script>
<script>
//paste this code under the head tag or in a separate js file.
// Wait for window load
$(window).load(function() {
// Animate loader off screen
$(".se-pre-con").fadeOut("slow");;
});
</script>

Substitua LINK-DO-GIF pelo link do seu gif.


Aqui tem 17 gifs diferentes pra você escolher. Clique com o botão direito na imagem e copiar endereço da imagem.


 


http://imgur.com/a/aydSa


 


 


 


Créditos - http://smallenvelop.com/display-loading-icon-page-loads-completely/


Link para o comentário
Compartilhar em outros sites

 

Adicione os códigos abaixo antes da tag </body>

<div class="se-pre-con"></div>
<style>
/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript, 
if it's not present, don't show loader */
.no-js #loader { display: none;  }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: url(LINK-DO-GIF) center no-repeat #fff;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js"></script>
<script>
//paste this code under the head tag or in a separate js file.
	// Wait for window load
	$(window).load(function() {
		// Animate loader off screen
		$(".se-pre-con").fadeOut("slow");;
	});
</script>

Substitua LINK-DO-GIF pelo link do seu gif.

Aqui tem 17 gifs diferentes pra você escolher. Clique com o botão direito na imagem e copiar endereço da imagem.

 

http://imgur.com/a/aydSa

 

 

 

Créditos - http://smallenvelop.com/display-loading-icon-page-loads-completely/

 

Como muda o time , o tempo que vai ficar essa img na pagina ?

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...