I've released a few Facebook page templates,this template got something new.This facebook page template is powered with Jquery animation and features.The template contain 3 tabs,so it is easy to create pages under one tab without redirecting onto site.
How to Use
You can add the custom tab by following steps.
- Go to on this app on Facebook
- Install the app and add the following code in it.
Code
This is the following script of the page template<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(".be-facebook-template").find("button:first-child").addClass("highlight");
$(".be-facebook-template").find("button").click(function(){
$(".be-facebook-template").find("button").removeClass("highlight");
$(this).addClass("highlight");
});
$("#template-b-1").click(function(){
$("#be-facebook-template-canvas-1").slideDown(300);
$("#be-facebook-template-canvas-2").slideUp(300);
$("#be-facebook-template-canvas-3").slideUp(300);
});
$("#template-b-2").click(function(){
$("#be-facebook-template-canvas-2").slideDown(300);
$("#be-facebook-template-canvas-1").slideUp(300);
$("#be-facebook-template-canvas-3").slideUp(300);
});
$("#template-b-3").click(function(){
$("#be-facebook-template-canvas-3").slideDown(300);
$("#be-facebook-template-canvas-1").slideUp(300);
$("#be-facebook-template-canvas-2").slideUp(300);
});
});
</script>
<style>
img.recent_thumb
{
border: 0;
float: left;
height: 55px;
margin: 10px;
padding: 1px;
width: 55px;
}
.recent_posts_with_thumbs
{
float: left;
font-size: 12px;
margin: 5px 0px 5px 0px;
min-height: 70px;
padding: 0;
width: 100%;
}
ul.recent_posts_with_thumbs
{
list-style: none;
}
ul.recent_posts_with_thumbs li
{
min-height: 65px;
padding-bottom: 5px;
padding-top: 5px;
}
.recent_posts_with_thumbs a
{
text-decoration: none;
}
.recent_posts_with_thumbs strong
{
font-size: 10px;
}
.be-facebook-template-buttons button
{
background: #00b3ff;
border: none;
color: #fff;
display: block;
float: left;
font-family: segoe UI light;
font-size: 19px;
margin-left: 10px;
padding: 10px;
position: relative;
width: 30%;
}
.be-facebook-template-canvas a
{
border-bottom: 1px dotted #00b3ff;
color: #00b3ff;
text-decoration: none;
}
.be-facebook-template-canvas
{
font-family: segoe Ui light;
font-size: 20px;
margin-top: 60px;
padding: 20px;
position: absolute;
text-align: center;
width: 500px;
}
.highlight
{
background: #00b3ff;
border: none;
display: block;
float: left;
margin-left: 10px;
padding: 10px;
position: relative;
width: 30%;
}
.highlight:after
{
border: solid transparent;
content: " ";
height: 0;
pointer-events: none;
position: absolute;
top: 100%;
width: 0;
}
.highlight:after
{
border-color: rgba(0, 179, 255, 0);
border-top-color: #00b3ff;
border-width: 10px;
left: 50%;
margin-left: -10px;
}
#be-facebook-template-canvas-2,#be-facebook-template-canvas-3
{
display: none;
}
</style>
<div class="be-facebook-template">
<div class="be-facebook-template-buttons">
<button id="template-b-1">Button 1</button>
<button id="template-b-2">Button 2</button>
<button id="template-b-3">Button 3</button>
</div>
<div class="be-facebook-template-canvas">
<div id="be-facebook-template-canvas-1">
<h2>Recent Posts</h2>
<script style='text/javascript' src='http://yourjavascript.com/1159358112/www.mybloggertopic.blogspot.com.js'></script>
<script style='text/javascript'>
var numposts = 5;
var showpostthumbnails = true;
var displaymore = true;
var displayseparator = true;
var showcommentnum = false;
var showpostdate = true;
var showpostsummary = true;
var numchars = 100;</script>
<script src='http://www.bloggerever.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentpostswiththumbs'></script>
<hr/>
</div>
<div id="be-facebook-template-canvas-2">
Canvas 2</div>
<div id="be-facebook-template-canvas-3">
canvas-3</div>
<Script Language='Javascript'>
<!--
document.write(unescape('%3C%64%69%76%20%73%74%79%6C%65%3D%22%66%6F%6E%74%2D%73%69%7A%65%3A%31%32%70%78%3B%70%61%64%64%69%6E%67%3A%35%70%78%3B%2D%77%65%62%6B%69%74%2D%62%6F%78%2D%73%68%61%64%6F%77%3A%20%30%70%78%20%30%70%78%20%31%30%70%78%20%72%67%62%61%28%35%30%2C%20%35%30%2C%20%35%30%2C%20%30%2E%37%35%29%3B%0A%2D%6D%6F%7A%2D%62%6F%78%2D%73%68%61%64%6F%77%3A%20%20%20%20%30%70%78%20%30%70%78%20%31%30%70%78%20%72%67%62%61%28%35%30%2C%20%35%30%2C%20%35%30%2C%20%30%2E%37%35%29%3B%0A%62%6F%78%2D%73%68%61%64%6F%77%3A%20%20%20%20%20%20%20%20%20%30%70%78%20%30%70%78%20%31%30%70%78%20%72%67%62%61%28%35%30%2C%20%35%30%2C%20%35%30%2C%20%30%2E%37%35%29%3B%22%3E%0A%43%72%65%61%74%65%64%20%42%79%20%3C%61%20%68%72%65%66%3D%22%68%74%74%70%3A%2F%2F%62%6C%6F%67%67%65%72%65%76%65%72%2E%63%6F%6D%22%3E%42%6C%6F%67%67%65%72%20%45%76%65%72%3C%2F%61%3E%0A%3C%2F%64%69%76%3E'));
//-->
</Script>
</div>
Editing
- There are 3 canvas or tabs.First one will show your blog feeds,while you can add content in second and third canvas.As I instructed below.
- Replace this www.bloggerever.com with your blog link,so that your blog feeds shows.
- Replace Button 1 with your first button name,which will show your first canvas which is Recent Posts.
- Similarly replace Button 2 and Button 3 which will show your second and third canvas respectively.
- Replace Canvas 2 and Canvas 3 with your content of Canvas 2 and Canvas 3 respectively.
- Click on save and publish and you have done.
Post A Comment:
0 comments: