<table border="0" cellspacing="0" cellpadding="0" width="400">
<script language="JavaScript" type="text/javascript">
<!--
inhalt = new Array;
inhalt[1] = 'test 1 test';
inhalt[2] = 'test 2 test';
inhalt[3] = 'test 3 test';
inhalt[4] = 'test 4 test';
inhalt[5] = 'test 5 test';
inhalt[6] = 'test 6 test';
inhalt[7] = 'test 7 test';
/**********/
for ( i = 1; i < inhalt.length; ++i ) {
document.write('<tr>');
var test = i % 2;
if ( test == 0 ) {
document.write('<td bgcolor="#aaaaaa">' + inhalt[i] + '</td>');
} else {
document.write('<td bgcolor="#cccccc">' + inhalt[i] + '</td>');
}
document.write('</tr>');
}
//-->
</script>
</table> |