Sebastian: for-Schleife in HTML-Seite

Beitrag lesen

Nachtrag:

ich habe gerade festgestellt, dass es in der einfachen Variante funktioniert!
Sobald der zu erzeugende Code aber etwas komplexer wird, passiert nichts mehr.

Beispiel:

<script type="text/javascript">
for (var i=1; i<=3; i++)
document.write(
<TABLE style="width:500px;" cellspacing="0" cellpadding="0" border="0">
<tr style="height:20px"></tr>
<tr style="height:120px">
<td style="background:url(dia_mid.gif); background-repeat:repeat-x;"><table style="width:100%;" class="smalltxt" cellspacing="0" cellpadding="2" border="0"></td></tr>
<tr>
<td valign="top" style="width:25%">Titel:</td>
<td style="width:5px">&nbsp</td>
<td><a href="/fotos/les2alpes2005/index.html"><b>Les 2 Alpes 2005</b></a></td>
<td style="width:10px; background:url(dia_right.gif); background-repeat:no-repeat;" nowrap="nowrap"></td>
</tr></table>
);
</script>