your function is not what I exactly I wanted since removing the flash object is not an option, but you've proven that re-rendering the flash object is possible by removing and re-adding it (and showed me how). Thanks a lot! :)
This raises another issue though. After reloaded, the flash stopped playing and you have to do a right click and select "Play" to restart it. Is there any way to make it play automatically after putting it back to the page?
Main Topics
Browse All Topics





by: mplungjanPosted on 2008-01-11 at 01:33:55ID: 20635064
What happens if you do
ed ave-flash" src="Player.swf" id="Player" name="Player" bgcolor="#ffffff" quality="best" flashvars="songId=nzZN9ZfM n64%3D& ;isLocal=Y " wmode="window" height="400" width="436"></div>
vId).inner HTML; vId).inner HTML = (content)?"":saveFlash;
der'); // to turn it on or off
vId).inner HTML; vId).inner HTML = (on)?saveFlash:"";
der',true) ; // to turn it on
der',false ); // to turn it off
<div id="flashPlaceHolder"><emb
type="application/x-shockw
and in the page have
var saveFlash = "";
function toggleFlash(divId) {
var content = document.getElementById(di
if (saveFlash=="") saveFlash=content; // save it first time
document.getElementById(di
}
then in the dhtml menu have
toggleFlash('flashPlaceHol
If you need a flag, you can do
var saveFlash = "";
function toggleFlash(divId,on) {
var content = document.getElementById(di
if (saveFlash=="") saveFlash=content; // save it first time
document.getElementById(di
}
and do
toggleFlash('flashPlaceHol
toggleFlash('flashPlaceHol