freechus9
07-08-2003, 06:33 AM
I am pretty new to JavaScript, so I probably messed this up or left something out. But I have no clue what I did! Here's the code:
<SCRIPT LANGUAGE="JavaScript1.2">
var a = Math.round(Math.random())
var array = new Array(2)
array[0] = <a href="http://www.aratronix.com"><img src="aratronix.jpg" border="1" bordercolor="000000"></a><b>Aratronix</b> is a computer company whose layout was completed in June of 2003.;
array[1] = More completed projects to come!;
document.write('+array[a]+');
</SCRIPT>
A syntax error keeps on showing up, and I don't know what's wrong. Could someone please tell me?
<SCRIPT LANGUAGE="JavaScript1.2">
var a = Math.round(Math.random())
var array = new Array(2)
array[0] = <a href="http://www.aratronix.com"><img src="aratronix.jpg" border="1" bordercolor="000000"></a><b>Aratronix</b> is a computer company whose layout was completed in June of 2003.;
array[1] = More completed projects to come!;
document.write('+array[a]+');
</SCRIPT>
A syntax error keeps on showing up, and I don't know what's wrong. Could someone please tell me?