Bootstrap Templates Bundle

Thursday, January 17, 2013

Slide out Facebook Like Box

Just page this code where you want to show : ( You can add it to your sidebar/ widget)
Check Demo:,

<script src=""></script>
<script>(function(d,s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

$(document).ready(function () {
bottompx = "0px";
$('#facebook_likebox').slideDown(1500).css({bottom: bottompx});
//facebook likebox
function closefaceboxlike(){
<div id="facebook_likebox" style="float: left;
 position: fixed;
 left: 5px;
margin-bottom: 10px; border: 2px solid rgb(205, 219, 228);
background-color: #888fff; z-index: 10; bottom: 0px;">
<div style="position:absolute; left:-10px; margin-top:-10px;
 margin-right:174px; z-index:15;">
<a onClick="Javascript: closefaceboxlike()" href="Javascript:void(0);">
<img height="20" src="
newdesign/style/images/closebox.gif"> </a></div>
<div class="fb-like-box" data-href=""
 data-width="150" data-height="180" data-show-faces="true"
data-stream="false" data-header="false"></div>   </fb:like-box>

N.B: Change the red color portion by your own url

You can make other ads by replacing the Fade background colored portion. You can add image/paragraph etc.

Such as: 

<div style="height:180px;width:280px;">You can add borders to HTML scroll boxes using the CSS 'border' property. Borders can be of any thickness, and any color. You can specify whether it's solid, dotted, dashed, and more. You can also specify a different border for each side of your scroll box.</div> or 

<a href="" target="_blank"><img style="vertical-align: top;" src="" alt="" width="280" height="60" /></a>  

No comments:

Post a Comment

Wokiee React eCommerce Template