Ver Mensaje Individual
  #10 (permalink)  
Antiguo 15/09/2014, 09:27
Avatar de ceaped
ceaped
 
Fecha de Ingreso: febrero-2004
Mensajes: 2.185
Antigüedad: 20 años, 3 meses
Puntos: 9
Respuesta: Detener video html5 cargado con iframe

Hola PHPeros
Te hago otra pregunta:

¿Cómo hago para quitarle setInterval a este jQuery?:

Código Javascript:
Ver original
  1. var lastHeight = 0, curHeight = 0, $frame = $('iframe:eq(0)');
  2.     setInterval(function(){
  3.     curHeight = $frame.contents().find('body').height();
  4.     if ( curHeight != lastHeight ) {
  5.     $frame.css('height', (lastHeight = curHeight) + 'px' );
  6.     }
  7.     },500);

Necesito que para el iframe sea un auto, este código lo hace pero me detiene unos segundos.

Gracias por tu ayuda
__________________
Diseñador Gráfico publicitario