Showing posts with label Jquery. Show all posts
Showing posts with label Jquery. Show all posts

Wednesday, December 17, 2014

facebook-jquery-likebox

 

[button link="http://demo-mybloggerworld.blogspot.com/2015/01/facebook-static-jquery-likebox-with.html" align="center"]Live Demo[/button]


Hello Friends toady we will show you that how you can add facebook static jquery hover likebox on your blogger or website.

Facebook Static Jquery Likebox with Hover





First of all go to Blogger Dashboard > Layout > Click on add widget. Then select HTML/Javascript. Now paste the following below code on it.
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><style type="text/css">.mdfbplikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}.mdfbplikebox span a{color: #808080;text-decoration:none;}.mdfbplikebox span a:hover{text-decoration:underline;}
/*<![CDATA[*/
#fbplikebox{display: block;padding: 0;z-index: 99999;position: fixed;}
.fbplbadge {background-color:#3B5998;display: block;height: 150px;top: 50%;margin-top: -75px;position: absolute;right: -47px;width: 47px;background-image: url("http://mybloggerworld.net/wp-content/uploads/2014/12/md_vertical-left.png");background-repeat: no-repeat;overflow: hidden;-webkit-border-top-right-radius: 8px;-webkit-border-bottom-right-radius: 8px;-moz-border-radius-topright: 8px;-moz-border-radius-bottomright: 8px;border-top-right-radius: 8px;border-bottom-right-radius: 8px;}
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
(function(md){
md(document).ready(function(){
var $dur = "medium"; // Duration of Animation
md("#fbplikebox").css({left: -250, "top" : 100 })
md("#fbplikebox").hover(function () {
md(this).stop().animate({
left: 0
}, $dur);
}, function () {
md(this).stop().animate({
left: -250
}, $dur);
});
md("#fbplikebox").show();
});
})(jQuery);
/*]]>*/
</script>
<div class="mdfbplikebox">
<div id="fbplikebox" style="display:none;">
<div class="fbplbadge"></div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/mybloggerworlds&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#F5EBF5;" allowTransparency="true"></iframe><span>
By <a href="http://mybloggerworld.net">My Blogger World</a> / <a href="http://mybloggerworld.net/blogger/facebook-static-jquery-likebox-hover/">+Get This!</a>
</span>
</div>
</div>

 


 Now replace  https://www.facebook.com/mybloggerworlds with your facebook fan page url. After Changing these thing you are done.

Note: If you want to change the color of likebox replace this color code F5EBF5 with the color you want

Friday, December 5, 2014

FB Jquery Popup


How to add Facebook Jquery Pop Like-Box Timer Widget to Blogger



  • Go to Blogger > Layout

  • Click "Add a Widget"

  • Select . HTML/JavaScript

  • Add the following below code on Widget.


<style type='text/css'>
#mbwpopup{
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:4px 4px 4px 4px;
width:400px;
height:400px;
overflow:hidden;
}
#mbwpopup span{
font-size:20px !important;
font-weight:bold !important;
}
#mbwpopup h1{
background:#6d84b4 url() 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;
}
#bwfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#bwclose{
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;
}
#bwclose: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 mbw_ppopup() {var sec = 10
var timer = setInterval(function() {
$("#bwfooter span").text(sec--);
if (sec == 0) {
$("#mbwpopup").fadeOut("slow");
clearInterval(timer);
}
},1000);
var bwwh = jQuery(window).height();
var bwpph = jQuery("#mbwpopup").height();
var bwfromTop = jQuery(window).scrollTop()+50;
jQuery("#mbwpopup").css({"top":bwfromTop});}
jQuery(window).fadeIn(mbw_ppopup)
.resize(mbw_ppopup)
//alert(jQuery.cookie('sreqshown'));
//var bwww = jQuery(window).width();
//var bwppw = jQuery("#mbwpopup").width();
//var bwleftm = (bwww-bwppw)/2;
var bwleftm = 500;
//var bwwh = jQuery(window).height();
//var bwpph = jQuery("#mbwpopup").height();
//var bwfromTop = (jQuery(window).scrollTop()+bwwh-bwpph) / 2;
jQuery("#mbwpopup").animate({opacity: "1", left: "0" , left: bwleftm}, 0).show();
jQuery("#bwclose").click(function() {
jQuery("#mbwpopup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="mbwpopup">
<h1>Join us on Facebook</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/mybloggerworlds&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://mybloggerworld.net/" target="_blank">My Blogger World</a> / <a href="http://mybloggerworld.net/blogger/facebook-jquery-pop-like-box-timer/" target="_blank">+Get This!</a>
</div>
</div>
<div id="bwfooter">Please wait..<span>10</span> Seconds<a href="#" id="bwclose" onClick="return false;">Close</a>
</div>
</div>
<!-- End popup -->


  •  Replace Facebook url https://www.facebook.com/mybloggerworlds with your Fan Page url.

  • We have add default 10 Sec to Display. If u want to change Display Seconds then Replace 10 with Seconds you want.