rcarnes
10-27-2003, 10:30 PM
I have posted this in the wrong area, sorry, can someone move it. Thanks
Here's my problem. I have a scenario as follows and I'll just lay it out using a couple of pages as an example..
My main page (index.htm)
Another page, we'll call that gallery.htm
At the top of each page is a header that is a flash animation that plays some music upon entrance to the site (actually each page but I can fix that by calling another flash animation without the sound, no problem....) My problem is that if I hit the home button or the back button it goes back to the main page and calls the header file with the sound. Is there anyway to say that if you're navigating from within the site to NOT play the music ?
Here's the code....
From the index.htm file
<script language="JavaScript" src="header-sound.js"></script>
And from the header-sound.js......
<!-- Begin
document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width="100%" BGCOLOR="#D12428"><tr><td ALIGN="LEFT">');
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="750" HEIGHT="50" id="logo-nosound" ALIGN="">');
document.write('<PARAM NAME=movie VALUE="mylogo.swf">');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=wmode VALUE=transparent>');
document.write('<PARAM NAME=bgcolor VALUE=#D12428>');
document.write('<EMBED src="mylogo.swf" quality=high wmode=transparent bgcolor=#D12428 WIDTH="750" HEIGHT="50" NAME="mylogo" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');
document.write('</td></tr></table>');
// End -->
Thanks
Here's my problem. I have a scenario as follows and I'll just lay it out using a couple of pages as an example..
My main page (index.htm)
Another page, we'll call that gallery.htm
At the top of each page is a header that is a flash animation that plays some music upon entrance to the site (actually each page but I can fix that by calling another flash animation without the sound, no problem....) My problem is that if I hit the home button or the back button it goes back to the main page and calls the header file with the sound. Is there anyway to say that if you're navigating from within the site to NOT play the music ?
Here's the code....
From the index.htm file
<script language="JavaScript" src="header-sound.js"></script>
And from the header-sound.js......
<!-- Begin
document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width="100%" BGCOLOR="#D12428"><tr><td ALIGN="LEFT">');
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="750" HEIGHT="50" id="logo-nosound" ALIGN="">');
document.write('<PARAM NAME=movie VALUE="mylogo.swf">');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=wmode VALUE=transparent>');
document.write('<PARAM NAME=bgcolor VALUE=#D12428>');
document.write('<EMBED src="mylogo.swf" quality=high wmode=transparent bgcolor=#D12428 WIDTH="750" HEIGHT="50" NAME="mylogo" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');
document.write('</td></tr></table>');
// End -->
Thanks