Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/10/2011, 13:41
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Interfaz javascript y problema con settimeout

esto es lo que he conseguido. he usado poo
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="application/xhtml; charset=utf-8" />
<title></title>
<script type="text/javascript">
function weatherLoad(options){



// Refresh page
this.intervalo = function(){
document.getElementById('fm').innerHTML = '<iframe id="weather_iframe" name="weather_iframe" src="http://external.netflie.es/vedadovision/weather.php?AEMET_ID=35015&amp;lang=es&amp;backgro undColor=%23000&amp;font=Arial&amp;fontSize1=29px& amp;fontSize2=16px&amp;fontSize3=15px&amp;iconSize =70px&amp;width=575px&amp;height=53px&amp;timeScro ll=4&amp;aleatorio=9" width="575px" height="53px" frameborder="0" scrolling="no"></iframe>';
//document.write('<iframe id="weather_iframe" name="weather_iframe" src="http://external.netflie.es/vedadovision/weather.php?AEMET_ID=35015&amp;lang=es&amp;backgro undColor=%23000&amp;font=Arial&amp;fontSize1=29px& amp;fontSize2=16px&amp;fontSize3=15px&amp;iconSize =70px&amp;width=575px&amp;height=53px&amp;timeScro ll=4&amp;aleatorio=9" width="575px" height="53px" frameborder="0" scrolling="no"></iframe>');
}
}

var obj = new weatherLoad();
window.onload = setInterval(function() {obj.intervalo()}, 10000);
</script>
</head>

<body>
<div id="fm"></div>
</body>
</html>