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