Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

suggestion to display swf

Status
Not open for further replies.

spicymango

Programmer
May 25, 2008
119
CA
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.


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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top