[JavaScript] brauche dringend hilfe!!!!

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [JavaScript] brauche dringend hilfe!!!!

    hi! ich habe gerade versucht einen tabellenteil mittels javascript zu erzeugen aber irgendwie klappts nicht... kann mir jemand helfen und sagen wo der fehler in dem script liegt?

    <script language="JavaScript">
    <!--
    platz1=new Array("&nbsp;","SV Bräunsdorf","19","16","0","3","65:14","51","48","&nbsp;");
    platz2=new Array("&nbsp;","SV Linda","19","14","2","3","40:23","17","44","&nbsp;");
    platz3=new Array("&nbsp;","SV Oberschöna","18","9","4","5","34:23","11","31","&nbsp;");
    platz4=new Array("&nbsp;","Zuger SV II","18","9","3","6","44:32","12","30","&nbsp;");
    platz5=new Array("&nbsp;","ESV Nassau","18","8","5","5","38:29","9","29","&nbsp;");
    platz6=new Array("&nbsp;","SV Cämmerswalde","18","8","3","7","34:30","4","27","&nbsp;");
    platz7=new Array("&nbsp;","SV Leubsdorf II","19","8","3","8","29:35","-6","27","&nbsp;");
    platz8=new Array("&nbsp;","Kleinwalthersdorfer SV","19","7","5","7","28:31","-3","26","&nbsp;");
    platz9=new Array("&nbsp;","TSV Flöha II","19","7","1","11","30:28","-8","22","&nbsp;");
    platz10=new Array("&nbsp;","SSV 1863 Sayda II","19","4","9","6","39:46","-7","21","&nbsp;");
    platz11=new Array("&nbsp;","VfB Halsbrücke II","19","6","3","10","34:47","-13","21","&nbsp;");
    platz12=new Array("&nbsp;","FSV Nassau/Re.-Bi.","19","4","4","11","24:50","-26","16","&nbsp;");
    platz13=new Array("&nbsp;","SV Mulda","19","3","5","11","28:40","-12","14","&nbsp;");
    platz14=new Array("&nbsp;","TSV Langhennersdorf","19","3","3","13","25:54","-29","12","&nbsp;");
    bgc="#ffffff"

    for (i=1;i=14;i=i+1)
    { if (i = 1 || i = 3 || i = 5 || i = 7 || i = 9 || i = 11 || i = 13)
    { bgc="#cccccc";
    }
    else
    { bgc="#eeeeee";
    }

    document.write("<tr class=inhalt height=20 bgcolor="+bgc+">");

    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz1[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz2[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz3[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz4[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz5[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz6[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz7[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz8[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz9[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz10[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz11[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz12[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz13[j]+"</td>);
    }
    for (j=1;j=10;j=j+1)
    { document.write("<td>"+platz14[j]+"</td>);
    }

    document.write("</tr>");
    }

    //-->
    </script>

  • #2
    if (i = 1 || i = 3 || i = 5 || i = 7 || i = 9 || i = 11 || i = 13)
    [x] du kennst den unterschied zwischen = und == nicht
    [ ] du verwendest einen browser wie mozilla oder firefox und schaust dir die fehlermeldungen dort an
    Ich denke, also bin ich. - Einige sind trotzdem...

    Kommentar

    Lädt...
    X