spicymango
Programmer
Hi,
I have different flash movies that I want to display on my page. Depends on what movie person click. I am doing it by changing the inner html calling the following javascript function.
It seems to be working fine. I was wondering if you see any problem with they way I am doing it.
I have different flash movies that I want to display on my page. Depends on what movie person click. I am doing it by changing the inner html calling the following javascript function.
It seems to be working fine. I was wondering if you see any problem with they way I am doing it.
Code:
<SCRIPT TYPE="text/javascript">
function openDemo_MarketGuys(demo)
{
//here demo is the name of the swf file
window.location.hash="top";
document.getElementById('video').innerHTML = "<object width='480' height='315'><param name='movie' value='somefile.swf'><embed src='"
+demo+ "' width='480' height='315'></embed></object>";
Code:
<div align="center" id="video">
<img src="/templates/images/vid_window.jpg">
</div>