thomas91
Goto Top

Iframe reload nach 5 Minuten

Hallo Community,

ich versuche gerade ein <iframe> dazu zu bringen das es alle 5 Minuten sich selbst neuläd.

<iframe frameborder="0" width="50%" height="250" scrolling="no" src='http://www.dwd.de/DWD/warnungen/warnstatus/SchilderSU.jpg' height="250" name='dwd' onload="dwd.setTimeout(function(){ dwd.location.reload();}, 5000);">  

Leider funktioniert das ganze nicht und ich google mich zu tode und komme nicht weiter. Ich hoffe es kann mir hier jemand helfen.

Gruß

Content-Key: 327094

Url: https://administrator.de/contentid/327094

Ausgedruckt am: 19.03.2024 um 04:03 Uhr

Mitglied: michi1983
Lösung michi1983 21.01.2017 aktualisiert um 13:10:23 Uhr
Goto Top
Hallo,

hier wird doch schön beschrieben wie das geht.

Gruß
Mitglied: Thomas91
Thomas91 23.01.2017 um 08:33:07 Uhr
Goto Top
Ich bekomme es leider nicht zum laufen =(

<?php 

<meta http-equiv="Refresh" content="500">  

<tr height="100%">  
<td align="center" valign="middle">  
<iframe src="http://www.dwd.de/DWD/warnungen/warnstatus/SchilderSU.jpg" width="50%" height="250" frameborder="0" scrolling="no" name='iframe_dwd' onload="iframe_review.setTimeout(function(){ iframe_review.location.reload();}, 30000);">  

</td>
</tr>

</table>

?>
Mitglied: colinardo
Lösung colinardo 23.01.2017 aktualisiert um 11:48:37 Uhr
Goto Top
Servus,
<!doctype html>
<html>
<head>
<meta charset="utf-8">  
<title>Demo iFrame reload every 10 seconds</title>
</head>
<body>
<iframe frameborder="0" width="50%" height="250" scrolling="no" src="http://www.dwd.de/DWD/warnungen/warnstatus/SchilderSU.jpg" name="dwd" onload="frm = this; window.setTimeout(function(){frm.src = frm.src + '?' + (new Date()).getTime();},10000);" />  
</body>
</html>
Grüße Uwe