Hi all, I'm working on a redesign of a corporate website, here's the url:
http://www.medican.com/dev I have java script that loads a random flash movie in the upper right of this
page. It works well in Safari and Firefox on MAC/PC, but the random flash won't
load in IE. Any ideas? - Thanks in advance for any help!
BTW, here's the applicable code:
<div id="Layer3">
<script language="JavaScript">
// Generate a Random Number - change the number in red to equal the number of
movies in your selection pool
var randomnumber = Math.round(Math.random()*3);
// Select a movie and execute the corresponding function
if (randomnumber == 1)
{movie1();}
else if (randomnumber == 2)
{movie2();}
else {movie3();}
//Functions to write out the correct flash movie resource.
function movie1(){
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=4,0,2,0\" width=\"495\" height=\"262\"><param name=movie
value=\"movie1.swf\"><param name=quality value=high><embed
src=\"flash/features/movie1.swf\" quality=high
pluginspage=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Ver sion=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"495\"
height=\"262\"></embed></object>")
}
function movie2(){
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=4,0,2,0\" width=\"495\" height=\"262\"><param name=movie
value=\"movie2.swf\"><param name=quality value=high><embed
src=\"flash/features/movie2.swf\" quality=high
pluginspage=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Ver sion=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"495\"
height=\"262\"></embed></object>")
}
function movie3(){
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=4,0,2,0\" width=\"495\" height=\"262\"><param name=movie
value=\"movie3.swf\"><param name=quality value=high><embed
src=\"flash/features/movie3.swf\" quality=high
pluginspage=\"
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Ver sion=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"495\"
height=\"262\"></embed></object>")
}
</script>
</div>