Olá amigos blogueiros. Neste artigo vou ensinar-vos como colocar a Facebook Like Box Flutuante. É sempre útil quanto se necessita de mais espaço na lateral do blog. Se ainda não tem o seu blog inserido nas redes sociais, leia este artigo, A importância das redes sociais - Analise e pense melhor sobre o assunto.
Adicionando a Jquery Plugin
1. Primeiramente faça o Login no Blogger2. Vá à Painel > Modelo > Editar HTML3. Adicione este código a cima da tag </head> no HTML do seu blog:
1
2
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <script type="text/javascript">//<!--$(document).ready(function() {$(".floatinglikebox").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});//</script><style type="text/css">.floatinglikebox{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpIvehAzpYjd9Dp7OVnPEvuXUrfBzyqyNfsvJiHxC_XybI9UAT2nlK9zciNvXPKEvVr_3nH7pQXDKB1KGBETOq3NudPjXRZ9RWugYaWn5X6Tr_ll-lfScCsDO1BnTFlq5zwyH-owYaIJQ/s1600/floatingfb.png") no-repeat scroll left center transparent !important;display: block;float: right;height: 270px;padding: 0 5px 0 40px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}.floatinglikebox div{border:none;position:relative;display:block;}.floatinglikebox span{bottom: 10px;font: 10px tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}.floatinglikebox span a{color: #808080;text-decoration:none;}.floatinglikebox span a:hover{text-decoration:underline;}</style><div class="floatinglikebox"><div><iframe allowtransparency="true" frameborder="0" scrolling="no" src="//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/sitesinforweb&width=251&height=270&colorscheme=light&show_faces=true&border_color=%23cccccc&stream=false&header=false&appId=159468740772399" style="background: #fff; border: none; height: 270px; overflow: hidden; width: 251px;"></iframe><a href="http://www.dicasbox.com/2012/11/facebook-like-box-flutuante-para-blogger.html" target="_blank">+Obtenha este Widget!</a></div></div> |
3.Troque https://www.facebook.com/sitesinforweb, pelo URL da sua página do FB.
4. Depois de fazer isso visualiza para verificar se esta tudo bem, se tiver, clique em salvar e pronto feito galera...
Abraços não esqueça de comentar...
