Social Medias like Facebook, Twitter and Google+ plays a vital rolefor generating genuine and relevant traffic for your blogs or websites.
We have already discussedon our previous articles about how to increase Facebook likes and major SEO strategies for increasing social media ranking for your websites or blogs.
Showing a social media promotion boxes while visitors visiting your blogs/websites will be a great idea to make them noticed that you are active on social medias . Major disadvantage of such pop up boxes are they may interrupt visitors buy showing all reloads and this will looks like you are forcing them. So, here we are providing you an auto closing (with timer) facebook pop up widget for your blog.
How to Enable Facebook
for the box.
3. Now we need to add some style sheetsfor the box for the looks and feels. Again find the code below in the template
: skin tag.
Change the yellow colored text (tamilhackers2.0 ) to your Facebook username.
We have already discussed
![Join Is On Facebook box with timer](https://2.bp.blogspot.com/-LJbOrdAlw5E/VQ0nDFbN2GI/AAAAAAAABaw/Rv_j4Yj6q9Q/s640/facebook_popup_with_timer.jpg)
How to Enable Facebook Pop Up box for blogs/websites
1. Got to Blogger Dashboard >> Template >> Edit HTML.
You will see a box with core HTML codes of your blog. Beware of editing this codes .
2. Copy and paste the following script before closing </head> tag or after opening <head> tag. (Press Ctrl + F after clicking on the HTML box and type </head> on pop up box for easily getting this tag).
We have successfully added Jquery code <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
3. Now we need to add some style sheets
]]></b : skin>
And add the code shown below before closing b4. Almost completed the final step is here.
<! -- Facebook POPUP LikeBox With Timer Code Start -- >
<script type='text/javascript'>
jQuery ( document). ready( function( ) {
function fbpopupdatafunc ( ) {
var sec = 60
var timer = setInterval( function( ) {
$( "#fbpopupdatafooter span"). text( sec --);
if (sec == 0) {
$( "#fbpopupdata"). fadeOut ( "slow");
clearInterval ( timer);
}
},1000);
var fbpopupdatawindow = jQuery ( window). height( );
var fbpopupdatadiv = jQuery ( "#fbpopupdata"). height( );
var fbpopupdatatop = jQuery ( window). scrollTop ( ) +50;
jQuery ( "#fbpopupdata"). css ( {"top": fbpopupdatatop });}
jQuery ( window). fadeIn ( fbpopupdatafunc ). resize( fbpopupdatafunc )
//alert ( jQuery . cookie( 'sreqshown '));
//var fbpopupdataww = jQuery ( window). width( );
//var fbpopupdatawww = jQuery ( "#fbpopupdata"). width( );
//var fbpopupdataleft = (fbpopupdataww-fbpopupdatawww)/2;
var fbpopupdataleft = 500;
//var fbpopupdatawindow = jQuery ( window). height( );
//var fbpopupdatadiv = jQuery ( "#fbpopupdata"). height( );
//var fbpopupdatatop = (jQuery(window).scrollTop()+fbpopupdatawindow-fbpopupdatadiv) / 2;
jQuery ( "#fbpopupdata"). animate( {opacity: "1", left: "0" , left: fbpopupdataleft }, 0). show( );
jQuery ( "#fbpopupdataclose"). click( function( ) {
jQuery ( "#fbpopupdata"). animate( {opacity: "0", left: "-5000000"}, 1000). show( );});});
<
$
$
}
},1000);
//
//
//
//var fbpopupdataleft = (fbpopupdataww-fbpopupdatawww)/2;
//
//
//var fbpopupdatatop = (jQuery(window).scrollTop()+fbpopupdatawindow-fbpopupdatadiv) / 2;
</script >
<div id="fbpopupdata ">
<h1>Join Us On Facebook <a style="font-size: 12px; color: white; float: right ; margin-right: 15px; text-align: inherit; text-decoration: none;" href="http://www.techiefeeds.com/2015/03/javascript-facebook-popup-box-timer.html/" rel="nofollow "
>Get Widget</a></h1>
<div class="fbpopupdatadata"><center><iframe src="http://facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F/Tamilhachers2.0&width=400&colorscheme=light&show_faces=true&border_color=%23fff&stream=false&header=false&height=250" scrolling="no" frameborder="0" style="border:none; overflow:show; width:400px; height:250px;" allowtransparency="true"></iframe></center></div><div id="fbpopupdatafooter">Please Wait <span>60</span> Seconds<br/><a href="wwww.techiefeeds.com" target="_blank" id="fbpopupdataclose" onclick="return false;">Close X</a></div></div>
<! -- Facebook POPUP LikeBox With Timer Code End – >
Change the yellow colored text (
0 Comments
Post a Comment