Foros del Web » Programando para Internet » Jquery »

Cerrar al hacer click

Estas en el tema de Cerrar al hacer click en el foro de Jquery en Foros del Web. 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'); ...
  #1 (permalink)  
Antiguo 01/11/2014, 09:10
 
Fecha de Ingreso: noviembre-2014
Mensajes: 6
Antigüedad: 9 años, 6 meses
Puntos: 0
Cerrar al hacer click

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&amp;width=150&amp;layout=box_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:65px;" allowTransparency="true" ></iframe> 

Etiquetas: cerrar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:48.