Volker Kolb: Javascript und layers bei Netscape

Hallo,

kann mir jemand sagen, warum mein Banner 468 x 60 unter http://www.fahrschule.de/topframe1.html nur mir <iframe> unter IE rotiert, nicht aber mit <ilayer> unter Netscape 4.5? Wenn ich die Bannerrotation unter Netscape alleine unter http://www.fahrschule.de/abann.html laufen lasse, klappt es einwandfrei.

Danke im voraus für Eure Antworten!

Gruß Volker

  1. Hier noch der Quellcode:

    abann.html:

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

    <html>
    <head>
    <title>Bannerrotation bei fahrschule.de</title>
    <script type="text/javascript" language="JavaScript">
    <!---

    // how many seconds delay between each banner
    var BigbAdDelay = 10

    function BigbAdChange()
    {
        window.location.reload();  
    }

    function AdbChange()
    {
        setTimeout("BigbAdChange()", BigbAdDelay * 1000)    
    }

    //--->
    </script>
    </head>
    <Body bgcolor="#f9f9f9" link="#0000ff" vlink="#ff0000" text="#000000" background="kachel.gif">
    <a href="http://ad.dig-online.de/click.phtml?id=98" target="new"><img name="BigbAd" width=468 height=60 src="http://ad.dig-online.de/pic.phtml?id=98" border=0></a>
    <script type="text/javascript" language="JavaScript">
    <!---
    AdbChange();
    //--->
    </script>
    </BODY>
    </HTML>

    und topframe1.html:

    <HTML>
    <HEAD>
    <TITLE>topframe1.html</TITLE>
    <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
    <!--
    function Go(x)
    {
    teil = x.substr(0,5);
        if(teil=="http:")
    {
      window.open(x);
    }
        else if(teil=="index")
    {
      top.location.href = x;
    }
    else
    {
      top.frames[2].location.href = x;
    }
    }
    //-->
    </SCRIPT>

    <script type="text/javascript" language="JavaScript">
    <!---

    // how many seconds delay between each banner
    var AdDelay = 6

    function PreLoadImage() {
    this.length = PreLoadImage.arguments.length
        for (var i = 0; i < this.length; i++)
    {
      this[i+1] = new Image();
      this[i+1].src = PreLoadImage.arguments[i];
    }  
    }

    function mkArray() {
    this.length = mkArray.arguments.length
        for (var i = 0; i < this.length; i++)
      this[i+1] = mkArray.arguments[i];
    }

    // Put here image URLs for Ads
    var arrAdIMG = new PreLoadImage(
        "ani_kfz.gif",
        "scoutlani.gif");

    // Put here link URLs, for Ads
    var arrAdURL = new mkArray(
        "http://www.optima.de",
        "http://www.scout-logic.com");

    // Put here description ALT, for Ads
    var arrAdALT = new mkArray(
        "Kfz-Online Dienst",
        "SCOUT-LOGIC Fahrschulen");
                              
    var AdIDX = 0;

    function AdChange()
    {
        // such link must exist
        AdIDX = AdIDX + 1;  
        AdIDX = AdIDX % arrAdIMG.length;
        if (AdIDX == 0 )
            AdIDX = arrAdIMG.length;  
        
        document.images["Ad"].src = arrAdIMG[AdIDX].src;  
        document.images["Ad"].alt = arrAdALT[AdIDX];

    setTimeout("AdChange()", AdDelay * 1000)    
    }

    function GoToURL()
    {
        // If you want to open a Ad site in a window
        // you can uncomment the line below
        //-------------------------------------
        window.open(arrAdURL[AdIDX]);
        
        
        // Line below opens current window in
        // a new location. Comment the line below
        // if you use window.open  
        //-------------------------------------
        // window.location.href=arrAdURL[AdIDX];
        return 1;
    }
    //--->
    </script>
    </HEAD>

    <Body background="kachel.gif" bgcolor="#f9f9f9" link="#0000ff" vlink="#ff0000" text="#000000">
    <form action="post"><DIV align="center">
    <TABLE WIDTH="760" border="0" cellpadding="0" cellspacing="0">
    <TR>
    <td>
    <IMG SRC="fahrschulede60_410.gif" WIDTH="410" HEIGHT="60" ALT="www.Fahrschule.de und www.Fahrschulen.de" vspace="0" hspace="0">
    </td>
    <TD>
    <DIV align="center"><select name="jumps" size="1" onChange="Go(document.forms[0].jumps.options[document.forms[0].jumps.selectedIndex].value)">
           <option selected value="index.html">Partnerseiten
           <option value="http://www.radarfalle.de">Radarfalle.de
           <option value="http://www.verkehrslage.de">Verkehrslage.de
           <option value="http://www.autokonzept.de">Autokonzept.de
           <option value="http://www.autogewinne.de">AutoGewinne.de
           <option value="http://www.baumarkt.de">Baumarkt.de
           <option value="http://www.fertighaus.de">Fertighaus.de
           <option value="http://www.gedichte.de">Gedichte.de
          </select>
    </DIV></td>
    </tr>
    <tr>
    <td>
    <iframe src="abann.html" width=468 height=60 scrolling=no name="abann" frameborder=0 marginheight=0 marginwidth=0><ilayer src="abann.html" left=3 top=1 width=468 height=60 name="abann"><a href="http://ad.dig-online.de/click.phtml?id=98" target="new"><img width=468 height=60 src="http://ad.dig-online.de/pic.phtml?id=98" border=0  ALT=""></a></ilayer></iframe></td>
    <td>
    <IMG SRC="transpix.gif" WIDTH="1" HEIGHT="1" hspace="117" ALT=""><BR>
    <a href="topframe1.html" onclick="return GoToURL()"><IMG name="Ad" SRC="ani_kfz.gif" ALT="" border="0" vspace="0" hspace="0"></A><BR></td>
    </tr>
    <tr>
    <td align=center colspan=2>
    <TABLE WIDTH="720" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align=center>
    <font face="Arial">
    <A HREF="willkommen.html" target="min"><IMG SRC="Start.gif" WIDTH="51" HEIGHT="21" ALT="Startseite" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="suchen.html" target="min"><IMG SRC="FSsuchen.gif" WIDTH="72" HEIGHT="21" ALT="FS suchen" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="Praesentation.html" target="min"><IMG SRC="Fahrlehrer.gif" WIDTH="122" HEIGHT="21" ALT="Fahrlehrer Bereich" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="dbsubscribe.asp" target="min"><IMG SRC="infos.gif" WIDTH="49" HEIGHT="21" ALT="Aktuelle Informationen" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="fahren_lernen/Fahrtipps.html" target="min"><IMG SRC="Tipps.gif" WIDTH="48" HEIGHT="21" ALT="Tipps für Fahrschüler und Autofahrer" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="Fragen/dt.asp" target="min"><IMG SRC="Ueben.gif" WIDTH="45" HEIGHT="21" ALT="300 Übungsfragen für die Theorieprüfung" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="http://foren.forengruppe.de/articles.public?newsgroup=21&lid=20" target="min"><IMG SRC="Board.gif" WIDTH="49" HEIGHT="21" ALT="Diskussionsforum für alle" border=0></A></font></td>
    <td align=center>
    <font face="Arial">
    <A HREF="kontakt.html" target="min"><IMG SRC="Wir.gif" WIDTH="41" HEIGHT="21" ALT="Impressum" border=0></A></font></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </DIV>
    </form>
    <script type="text/javascript" language="JavaScript">
    <!---
    AdChange();
    //--->
    </script>
    </BODY>
    </HTML>

  2. kann mir jemand sagen, warum mein Banner 468 x 60 unter http://www.fahrschule.de/topframe1.html nur mir <iframe> unter IE rotiert, nicht aber mit <ilayer> unter Netscape 4.5? Wenn ich die Bannerrotation unter Netscape alleine unter http://www.fahrschule.de/abann.html laufen lasse, klappt es einwandfrei.

    Hallo Volker,

    nur ein Tip vielleicht klappt es. Lagere mal den Quellcode der den Navigator betrifft in das ilayer-enthaltende Dokument aus. Hier ladest du dann den ilayer jedesmal neu.

    Viele Grüße

    Antje