මුලින්ම Blogger –> Template — > Edit HTML වෙත ගොස් </head> tag එක හොයාගෙන, එයට ඉහලින් පහත දී තිබෙන jQuery plugin එක එකතු කරගන්න. ඔබ මීට පෙර මෙම jQuery plugin version එක ඔබේ බ්ලොග් එකට එකතු කරගෙන නම් තිබෙන්නේ, නැවත මෙය එකතු කරන්නට අවශ්ය නැහැ.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
ඔයගෙ blogger account එකට යන්න දෑන් Layout > Add a Gadget >
HTML/ Java Script.
දෑන් මේ code එක copy කරලා blog එකෙ HTML/ Java Script.එකට past කරන්න
<!-- facebook popup like box with timer by pctrickks @ pctrickks.blogspot.com -->
<style type='text/css'>
#pctrickkspopup{
position: fixed;
top:100px;
z-index:9999;
display:none;
padding:0px;
right:600px;
border:10px solid rgba(82, 82, 82, 0.7);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
-webkit-border-radius:8px 8px 8px 8px;
-moz-border-radius:8px 8px 8px 8px;
border-radius:8px 8px 8px 8px;
width:400px;
height:360px;
overflow:hidden;
}
#pctrickkspopup span{
font-size:20px !important;
font-weight:bold !important;
}
#pctrickkspopup h1{
background:#6d84b4 url(http://sphotos-a.ak.fbcdn.net/hphotos-ak-frc1/733790_128584594001239_974672347_n.jpg) 98% no-repeat;
border:1px solid #3b5998 !important;
color:#FFFFFF !important;
font-size:20px !important;
font-weight:700 !important;
padding:5px !important;
margin:0 !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
overflow:hidden !important;
}
.htmlarea{
font-size:12px !important;
font-weight:normal !important;
height:265px !important;
padding:1px !important;
background:#fff !important;
border-bottom:2px solid #ddd;
overflow:hidden !important;
}
#tlfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#tlclose{
float:right;
background-color:#eee !important;
border:1px solid #ccc !important;
color:#111 !important;
font-weight:bold !important;
padding:5px 8px 5px 8px !important;
text-decoration:none !important;
display:inline-block !important;
font-family:'"lucida grande",tahoma,verdana,arial,sans-serif !important;
outline:none !important;
position:relative !important;
font-size:18px !important;
margin:1px !important;
}
#tlclose:active{
top:1px;
left:1px;
}
.grabthis{
bottom:80px;
font:8px "lucida grande",tahoma,verdana,arial,sans-serif;
position:absolute;
right:6px;
text-align:right;
z-index: 99999;
}
.grabthis a{
color: #000;
text-decoration:none;
}
.grabthis a:hover{
text-decoration:underline;
}
</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function pctrickks_ppopup() {
var sec = 20
var timer = setInterval(function() {
$("#tlfooter span").text(sec--);
if (sec == 0) {
$("#pctrickkspopup").fadeOut("slow");
clearInterval(timer);
}
},2000);
var tlwh = jQuery(window).height();
var tlpph = jQuery("#pctrickkspopup").height();
var tlfromTop = jQuery(window).scrollTop()+50;
jQuery("#pctrickkspopup").css({"top":tlfromTop});}
jQuery(window).fadeIn(pctrickks_ppopup).resize(pctrickks_ppopup)
//alert(jQuery.cookie('sreqshown'));
//var tlww = jQuery(window).width();
//var tlppw = jQuery("#pctrickkspopup").width();
//var tlleftm = (tlww-tlppw)/2;
var tlleftm = 500;
//var tlwh = jQuery(window).height();
//var tlpph = jQuery("#pctrickkspopup").height();
//var tlfromTop = (jQuery(window).scrollTop()+tlwh-tlpph) / 2;
jQuery("#pctrickkspopup").animate({opacity: "1", left: "0" , left: tlleftm}, 0).show();
jQuery("#tlclose").click(function() {
jQuery("#pctrickkspopup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="pctrickkspopup">
<h1>Join us on Facebook</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fpctrickksblogspotcom%2F152434628249739%23&width=400&colorscheme=light&show_faces=true&border_color=%23fff&stream=false&header=false&height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe>
<div class="grabthis">
By <a href="http://pctrickks.blogspot.com/" target="_blank">pctrickks.blogspot.com</a> / <a href="http://pctrickks.blogspot.com/?p=10159" target="_blank">+Get This!</a>
</div>
</div>
<div id="tlfooter">
Please wait..<span>20</span> Seconds
<a href="#" id="tlclose" onclick="return false;">Close</a>
</div>
</div>
<!-- End popup -->
රතු පාට සියල්ල වෙනස් කරන්න
Join us on Facebook = ඔබ කමති වදනක්
pctrickksblogspotcom = ඔබගේ Facebook Page URL එක
20 = Preview විය යුතු වේලව තත්පර වලින්