Thanks for that – I have got that working. However, the SWF takes on the opacity setting of the overlay so you can see the background through the movie. How can I make it opaque?
The code I am using is below.
<script>
function clicker(){
var thediv=document.getElementById(‘displaybox’);
if(thediv.style.display == “none”){
thediv.style.display = “”;
thediv.innerHTML = “<table width=’100%’ height=’100%’><tr><td align=’center’ valign=’middle’ width=’100%’ height=’100%’><object classid=’clsid:D27CDB6E-AE6D-11cf-96B8-444553540000′ codebase=’https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0′ width=’640′ height=’400′><param name=’movie’ value=’movie.swf’><param name=’bgcolor’ value=’#000000′><param name=’quality’ value=’high’><embed src=’movie.swf’ autoplay=’true’ quality=’high’ pluginspage=’https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash’ type=’application/x-shockwave-flash’ height=’400′ width=’640′ bgcolor=’#000000′></embed></object><br><br><a href=’#’ onclick=’return clicker();’>CLOSE WINDOW</a></td></tr></table>”;
}else{
thediv.style.display = “none”;
thediv.innerHTML = ”;
}
return false;
}
</script>