-
RESOLVED! There's just something about this script...
...which prevents it working in IE. OMG, I don't know what it is; can anyone help find what it's lacking?
Respect
<script language="JavaScript">
// Generate a Random Number
var randomnumber = Math.round(Math.random()*4);
// Select a swf and execute the corresponding function
if (randomnumber == 1)
{movie1();}
else if (randomnumber == 2)
{movie2();}
else if (randomnumber == 3)
{movie3();}
else
{movie4();}
//Functions to write out the correct flash movie resource.
function movie1(){
document.write("<object classid=\"clsid
27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"980\" height=\"285\"><param name=movie value=\"1.swf\"><param name=quality value=high><embed src=\"1.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"980\" height=\"322\"></embed></object>")
}
function movie2(){
document.write("<object classid=\"clsid
27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"980\" height=\"285\"><param name=movie value=\"2.swf\"><param name=quality value=high><embed src=\"2.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"980\" height=\"322\"></embed></object>")
}
function movie3(){
document.write("<object classid=\"clsid
27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"980\" height=\"285\"><param name=movie value=\"3.swf\"><param name=quality value=high><embed src=\"3.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"980\" height=\"322\"></embed></object>")
}
function movie4(){
document.write('<img src="gifTWO.gif" width="980" height="323" alt="Welcome"/>');
}
</script>
-
-
FAIR DUES, there wasn't anything to prevent it working in IE. That was a post to test y'all. Yeah, right...//sheepish face//
RESOLVED!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks