Hi
I am trying to make a html page where I have 3 swf files which I would to be shown randomly when you refresh the page.
However I can't get the code to work. I have tried to delete the javascript part and then the movies are being shown - but not in the right way. And when the javascript is there no movies are shown.
I would really appreciate if someone could help me!
Thanks!
- <html>
-
<head>
-
<title>Untitled Document</title>
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
</head>
-
-
</body>
-
-
<script language="JavaScript">
-
-
// Generate a Random Number
-
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#version=7,0,19,0" width="600" height="233">
-
-
-
-
-
-
-
-
<param name="movie" value="http://www.wiseentertainment.dk/quizformoney/Interstitials/lobby.swf" />
-
<param name="quality" value="high" />
-
<embed src="http://www.wiseentertainment.dk/quizformoney/Interstitials/lobby.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="233"></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#version=7,0,19,0" width="600" height="233">
-
-
-
-
-
-
-
-
<param name="movie" value="http://www.wiseentertainment.dk/quizformoney/Interstitials/deposit.swf" />
-
<param name="quality" value="high" />
-
<embed src="http://www.wiseentertainment.dk/quizformoney/Interstitials/deposit.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="233"></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#version=7,0,19,0" width="600" height="233">
-
-
-
-
-
-
-
-
<param name="movie" value="http://www.wiseentertainment.dk/quizformoney/Interstitials/lobby.swf" />
-
<param name="quality" value="high" />
-
<embed src="http://www.wiseentertainment.dk/quizformoney/Interstitials/lobby.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="233"></embed>
-
</object>")
-
}
-
-
</script>
-
-
</html>
-