Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Carregamento ao clicar em categoria

+6
Gaab
[K]oke
Hatz
Inspirage
~Rafra
Daemon
10 participantes

Daemon Daemon  • Sex 31 Jan 2014 - 20:10

Carregamento ao clicar em categoria Empty Carregamento ao clicar em categoria Sex 31 Jan 2014 - 20:10

Reputação da mensagem: 100% (8 votos)
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Nome do Arquivo: Carregamento ao clicar em categoria
Autor: Daemon
Funcionalidade: Todas as versões
Categoria: Recursos BestSkins

Neste tutorial iremos ensina-los a adicionar uma mensagem de carregamento ao clicar em links da categoria.

Vamos primeiro aceder em Painel de controle Seta Visualização Seta Imagens e Cores Seta Cores Seta Folha de estilo CSS
PunBB
Código:
.pun table.table tr {cursor: pointer;}
.pun table.table tr.loading:after {
content: "Carregando...";
position: absolute;
left: 40%;
line-height: 30px;
width: 100px;
margin-left: -50px;
margin-top: 14px;
background: #555;
background: rgba(0,0,0,0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
text-align: center;
color: #fff;
text-shadow: rgba(0,0,0,0.2) 0px 1px 1px;
z-index: 10;
pointer-events: none;
}

PhpBB3
Código:
.topiclist li.row {cursor: pointer;}
.topiclist li.row.loading:after {
content: "Carregando...";
position: absolute;
margin-top: -30px;
left: 40%;
line-height: 30px;
width: 100px;
margin-left: -50px;
background: #555;
background: rgba(0,0,0,0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
text-align: center;
color: #fff;
text-shadow: rgba(0,0,0,0.2) 0px 1px 1px;
z-index: 10;
pointer-events: none;
}

PhpBB2
Código:
.forumline tr {cursor: pointer;}
.forumline tr.loading:after {
content: "Carregando...";
position: absolute;
left: 40%;
line-height: 30px;
width: 100px;
margin-left: -50px;
background: #555;
background: rgba(0,0,0,0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
text-align: center;
color: #fff;
text-shadow: rgba(0,0,0,0.2) 0px 1px 1px;
z-index: 10;
pointer-events: none;
}

Invision
Código:
.borderwrap tr {cursor: pointer;}
.borderwrap tr.loading:after {
content: "Carregando...";
position: absolute;
left: 40%;
line-height: 30px;
width: 100px;
margin-left: -50px;
background: #555;
background: rgba(0,0,0,0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
box-shadow: inset rgba(0,0,0,0.3) 0px 1px 2px;
text-align: center;
color: #fff;
text-shadow: rgba(0,0,0,0.2) 0px 1px 1px;
z-index: 10;
pointer-events: none;
}

Depois iremos até Módulos Seta HTML & JAVASCRIPT Seta Gestão dos Códigos JavaScript
PunBB
Código:
$(document).ready(function() {
 $('.pun table.table tr').each(function(){
      var sURL = $(this).find("td.tcl h3 a").attr("href");
      $(this).click(function(){
         window.location = sURL;
         $(this).addClass("loading");
      })
   });
});

PhpBB3
Código:
$(document).ready(function() {
 $('.topiclist li').each(function(){
      var sURL = $(this).find(".dterm h3 a").attr("href");
      $(this).click(function(){
         window.location = sURL;
         $(this).addClass("loading");
      })
   });
});

PhpBB2
Código:
$(document).ready(function() {
 $('.forumline tr').each(function(){
      var sURL = $(this).find("h3 a").attr("href");
      $(this).click(function(){
         window.location = sURL;
         $(this).addClass("loading");
      })
   });
});

Invision
Código:
$(document).ready(function() {
 $('.borderwrap tr').each(function(){
      var sURL = $(this).find("h3 a").attr("href");
      $(this).click(function(){
         window.location = sURL;
         $(this).addClass("loading");
      })
   });
});
Salve...


Se gostou do tutorial repute, não custa moedas hihi ^^...


Se tiver alguma dúvida em relação a este tutorial crie um tópico de mesmo nome.


Última edição por Daemon em Ter 18 Fev 2014 - 9:35, editado 1 vez(es)

~Rafra ~Rafra  • Sex 31 Jan 2014 - 20:38

Inspirage Inspirage  • Sex 31 Jan 2014 - 20:59

Hatz Hatz  • Sex 31 Jan 2014 - 22:56

[K]oke [K]oke  • Sex 31 Jan 2014 - 23:16

Carregamento ao clicar em categoria Empty Re: Carregamento ao clicar em categoria Sex 31 Jan 2014 - 23:16

Show, Parabéns!

Gaab Gaab  • Sáb 1 Fev 2014 - 9:53

Carregamento ao clicar em categoria Empty Re: Carregamento ao clicar em categoria Sáb 1 Fev 2014 - 9:53

Nossa parabéns daemon Lindoso

Ground Ground  • Sáb 1 Fev 2014 - 11:33

B4N3 B4N3  • Sex 7 Fev 2014 - 22:33

Alexandre51 Alexandre51  • Dom 9 Fev 2014 - 7:26

avatar Eragon™  • Seg 10 Mar 2014 - 0:45

Conteúdo patrocinado  • 

Carregamento ao clicar em categoria Empty Re: Carregamento ao clicar em categoria

Permissões neste sub-fórum
Não podes responder a tópicos