ok can someone tell me what is wrong with this script. i get syntax errors on line 7 and 14 on character 1
<LAYER name="ani1" bgColor="yellow">
O
<SCRIPT LANGUAGE="JavaScript1.2">
function move(x,y) { this.x = x; this.y = y; }
export move;
</SCRIPT>
</LAYER>
<SCRIPT LANGUAGE="JavaScript1.2">
import document.ani1.*;
var x = 0; y = 0;
setInterval(function() { move(x, y); x = (x + 5)%200; y = (y+5)%200; },
100);
</SCRIPT>
im opening it in IE
<LAYER name="ani1" bgColor="yellow">
O
<SCRIPT LANGUAGE="JavaScript1.2">
function move(x,y) { this.x = x; this.y = y; }
export move;
</SCRIPT>
</LAYER>
<SCRIPT LANGUAGE="JavaScript1.2">
import document.ani1.*;
var x = 0; y = 0;
setInterval(function() { move(x, y); x = (x + 5)%200; y = (y+5)%200; },
100);
</SCRIPT>
im opening it in IE