tengo lo siguiente
Código:
var iFrame = '';
$(function() {
setTimeout(findLike, 100);
function findLike() {
$('iframe').each(function() {
var src = $(this).attr('src');
var title = $(this).attr('title');
if (src.indexOf('plugins/like.php') > 0 || $(this).hasClass('fb_ltr') == true || title.indexOf('Like this content on Facebook') > 0 ) {
iFrame = $(this);
}
});
}
$(document).click(function() {
$('.fb_ltr').css('opacity', '.90');
});
$('#safe').mouseover(function() {
if (iFrame != '') {
$(document).unbind('mousemove');
}
});
});
Lo que quisiera agregar pero nose como hacerlo es que al hacer click se cierre.
No quiero agregar un boton aparte ni nada sino que al hacer click se cierre o si es posible al segundo click se cierre, no tengo conocimientos en jquery, y me si pueden ayudarme se los agradeceria mucho!
el html seria este :
Código HTML:
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FAvdelOficial&width=150&layout=box_count&action=like&show_faces=false&share=false&height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:65px;" allowTransparency="true" ></iframe>