that's what I get for using someone elses script
The script that the guy used was bad. I'm repairing it now.
this is what it should have looked like if you had done it corectly.
<HTML>
<HEAD>
<TITLE>Find the Ball</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var a=0
function Randomise(maxValue) {
currentdate = new Date ()
seconds = currentdate.getSeconds()
return (seconds % maxValue);
}
function MakeArray(size) {
this.length = size;
for(var g = 1; g <=size; g++);
{
this[g] = 0;
}
return this;
}
function getSwish() {
swishArray = new MakeArray(20);
swishArray[1] = "mov1.swf";
swishArray[2] = "mov2.swf";
swishArray[3] = "mov3.swf";
swishArray[4] = "mov2.swf";
swishArray[5] = "mov1.swf";
swishArray[6] = "mov3.swf";
swishArray[7] = "mov1.swf";
swishArray[8] = "mov1.swf";
swishArray[9] = "mov3.swf";
swishArray[10] = "mov2.swf";
swishArray[11] = "mov3.swf";
swishArray[12] = "mov1.swf";
swishArray[13] = "mov1.swf";
swishArray[14] = "mov2.swf";
swishArray[15] = "mov3.swf";
swishArray[16] = "mov2.swf";
swishArray[17] = "mov3.swf";
swishArray[18] = "mov2.swf";
swishArray[19] = "mov3.swf";
swishArray[20] = "mov1.swf";
randSwish = swishArray[Randomise(20)];
return randSwish;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#009900"> <form name="first_form">
<input type="number" name="first_text" value="">
</form>
<P ALIGN="center">
<SCRIPT LANGUAGE="JavaScript">
document.writeln(" <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
document.writeln(" codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' ");
document.writeln(" ID=Untitled WIDTH=400 HEIGHT=250> ");
document.writeln(" <PARAM NAME=movie VALUE='"+getSwish()+"'> ");
document.writeln(" <PARAM NAME=loop VALUE=false> ");
document.writeln(" <PARAM NAME=menu VALUE=false> ");
document.writeln(" <PARAM NAME=quality VALUE=high> ");
document.writeln(" <PARAM NAME=bgcolor VALUE=#009900> ");
document.writeln(' <PARAM NAME="loop" value="true"> ');
document.writeln( "</OBJECT>");
</SCRIPT>
</BODY>
</HTML>
what you have there is good
Guys what we have here is a script that will Draw a Random SWF and display it. Remove the "" from around the loop param to make it loop. This script has many uses.
Note-this only works in IE- I cut the Netscape section.