|
Hi All,
I'm trying to write a small program and I don't really understand why it's not working, please help ....
I know that the problem with the document.write line, but where ? ...
<HTML>
<BODY>
<SCRIPT language=JavaScript>
var a = "<table id='b";
var b = "' width='42' height='16' bgcolor='#00";
var c = "' style='position:absolute; top:48; left:";
var d = "'><td></td></table>";
for ( int i = 0 ; e < 8 ; e++ ){
document.write(a + e + b + "FF00" + c + (29 + (46 * e)) + d);
}
for ( int i = 8 , int j =0 ; i < 16 && j < 8 ; j++ , i++ ){
document.write(a + i + b + "00FF" + c + (29 + (46 * j)) + d);
}
for ( int i = 16 , int j =0; i < 24 && j < 8 ; j++ , i++ ){
document.write(a + i + b + "FF00" + c + (29 + (46 * j)) + d);
}
</SCRIPT>
</BODY>
</HTML>
Thanks a lot
Michael
|
|
|
|
|
|
|
// |