iFrame aktualisieren

  • Ich wollte für eine Bildershow eine <noscript> Lösung in ältere WEB-Seiten einbauen. Dachte, die einfachste Form ist die Auslagerung in einen iFrame. Geht so. Leider bekommt der iFrame bei den Browsern der Mozilla-Gruppe nicht die vorgesehene html-Seite, wenn JS nachträglich aktiviert und die Seite manuel aktualisiert wird. IE, Opera und Safari machen es.
    Kennt einer eine elegantere Lösung oder erkennt den Fehler?

    Gruß Thomas [HTML]<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/html4/loose.dtd&quot;>
    <html>
    <head>
    <meta name=&quot;generator&quot; content=&quot;Scribe! 2 [http://scribe.de]&quot; />
    <title>Irland 2003</title>
    <meta name=&quot;description&quot; content=&quot;Sportangler Verein Pliete L&uuml;beck&quot;>
    <meta name=&quot;keywords&quot; content=
    &quot;Sportangler Verein Pliete L&uuml;beck, SAV Pliete L&uuml;beck, Sportangeln, Angeln , Stocksee, Hemmelsdorfer See in Ostholstein&quot;>
    <meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;>
    <meta name=&quot;robots&quot; content=&quot;index&quot;>
    <meta name=&quot;robots&quot; content=&quot;follow&quot;>
    <meta name=&quot;language&quot; content=&quot;de&quot;>
    <meta name=&quot;author&quot; content=&quot;Freier&quot;>
    <meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;>
    <meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot;>

    <style type=&quot;text/css&quot;>

    td {font-family:Verdana;font-size:12px;font-weight:normal;COLOR:black;padding:0px 0px 0px 0px;}
    div {font-family:Verdana;font-size:12px;font-weight:normal;color:#0080C0;padding:0px 0px 0px 0px;}

    .zeile2 {vertical-align:middle; margin-right:0px;
    padding:1px 1px 1px 1px;
    border-style:solid;
    border-color:#6f95c7;
    border-width:1px 1px 1px 1px;}

    a.menu2 {font-family:Verdana;
    font-weight:normal;
    font-size:12px;
    color: Black;
    text-align:center;
    margin-top: 1px;
    border-style:none;
    }

    a.menu2:link {color:Black;text-decoration: none;}
    a.menu2:visited {color:Black;text-decoration: none;}
    a.menu2:hover {color:red;}
    a.menu2:active {color:Black;}
    </style>


    </head>
    <body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>

    <center>


    <hr width=&quot;40%&quot; />

    <div align=&quot;center&quot; style=&quot;font-family:Conga, Verdana;font-size:14px;color:#0080C0;margin-left:20px; margin-right:30px;&quot;>
    Impressionen in 18 Bildern</div>


    <iframe src=&quot;iFrameIrland.html&quot; name=&quot;Fenster&quot; width=&quot;670px&quot; height=&quot;540px&quot;
    frameborder=&quot;0&quot;>
    </iframe>

    <noscript>

    <div align=&quot;center&quot; >Sie haben JavaScript deaktiviert. Bitte w&auml;hlen sie die Bilder manuel.</div>

    <table align=&quot;center&quot;>
    <tr>
    <td align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;><a class=&quot;menu2&quot; href=&quot;Irland-2003-01.jpg&quot; target=&quot;Fenster&quot;>01</a></td>
    <td align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;><a class=&quot;menu2&quot; href=&quot;Irland-2003-02.jpg&quot; target=&quot;Fenster&quot;>02</a></td>
    <td align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;><a class=&quot;menu2&quot; href=&quot;Irland-2003-03.jpg&quot; target=&quot;Fenster&quot;>03</a></td>
    <td align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;><a class=&quot;menu2&quot; href=&quot;Irland-2003-04.jpg&quot; target=&quot;Fenster&quot;>04</a></td>
    </tr>
    </table>

    </noscript>

    </center>
    </body>
    </html>
    [/HTML]Für den iFrame:
    [HTML]<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/html4/loose.dtd&quot;>
    <html>
    <head>
    <meta name=&quot;generator&quot; content=&quot;Scribe! 2 [http://scribe.de]&quot; />
    <title>Reiseberichte von Mitgliedern im SAV Pliete e.V.
    L&uuml;beck</title>
    <meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;>
    <meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot;>
    <meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot;>

    <style type=&quot;text/css&quot;>

    td {font-family:Verdana;font-size:12px;font-weight:normal;COLOR:black;padding:0px 0px 0px 0px;}

    .zeile2 {padding:1px 1px 1px 1px;
    border-style:solid;
    border-color:#6f95c7;
    border-width:1px 1px 1px 1px;
    text-align:center;
    }
    a.menu2 {font-family:Verdana;
    font-weight:normal;
    font-size:12px;
    color: Black;
    text-align:center;
    margin-top: 1px;
    border-style:none;
    border-width:0px;
    padding: 1px;}

    a.menu2:link {color:Black;text-decoration: none;}
    a.menu2:visited {color:Black;text-decoration: none;}
    a.menu2:hover {color:red;}
    a.menu2:active {color:Black;}
    </style>

    <script src=&quot;fkds.js&quot; type=&quot;text/javascript&quot;></script>

    </head>

    <body>

    <center>

    <img src=&quot;Irland-2003-01.jpg&quot; align=&quot;center&quot; alt=&quot;große Bilder&quot; id=&quot;fkdsImg3&quot;>
    <script type=&quot;text/javascript&quot;>var diashow3 = new fkds('diashow3', 'fkdsImg3', 4);</script>

    <table width=&quot;640&quot; align=&quot;center&quot;>
    <tr>
    <td width=&quot;25%&quot; align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;>
    <a class=&quot;menu2&quot; href=&quot;javascript:diashow3.start(3000)&quot;>Show start</a></td>
    <td width=&quot;25%&quot; align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;>
    <a class=&quot;menu2&quot; href=&quot;javascript:diashow3.stop()&quot;>Show stop</a></td>
    <td width=&quot;25%&quot; align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;>
    <a class=&quot;menu2&quot; href=&quot;javascript:diashow3.next()&quot;>Bild vor</a></td>
    <td width=&quot;25%&quot; align=&quot;center&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; class=&quot;zeile2&quot;>
    <a class=&quot;menu2&quot; href=&quot;javascript:diashow3.prev()&quot;>Bild zurück</a></td>
    </tr>
    </table>

    <script type=&quot;text/javascript&quot;>var diashow3 = new fkds('diashow3', 'fkdsImg3', 4);</script>

    </center>
    </body>
    </html>

    [/HTML]

    Gruß Thomas

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress, WoltLab & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Problem beseitigt mit:
    [HTML]<script type="text/javascript" language="JavaScript">
    function FensterTauschen(URL)
    {
    parent.Fenster.location.href=URL;
    }
    </script>[/HTML]im header und im body dann:
    [HTML]<script type="text/javascript" language="JavaScript">
    FensterTauschen('iFrameIrland.html');
    </script>[/HTML]

    Gruß Thomas

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!