I have a htm page who use frame like this:
<HTML>
<HEAD>
<TITLE></TITLE>
<frameset Cols="150,*" border=0>
<frame name="left" src="menu_sound.htm" marginwidth="10" marginheight="10" scrolling="Auto" frameborder="no" noresize>
<frame name="right" src="home.htm" marginwidth="10" marginheight="10" scrolling="Auto" frameborder="no" noresize>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</HEAD>
<BODY>
</BODY>
In menu.htm a have put a background sound (an mp3 file).
MY PROBLEM:
How can I stop runing the mp3 file when i load in frame named "right" newpage.htm ?
Do you have any idea?
It might help if you post the code for the left frame so we can see how the mp3 is played
for media player it would be something like
onload="parent.left.document.MediaPlayer.Stop()"
which would be placed in newpage.htm's opening body tag
Thanks man !!!
Here is the index page:
<HTML>
<HEAD>
<TITLE>index</TITLE>
<frameset Cols="150,*" border=0>
<frame name="left" src="a2.htm" marginwidth="10" marginheight="10" scrolling="Auto" frameborder="no" noresize>
<frame name="right" src="a3_1.htm" marginwidth="10" marginheight="10" scrolling="Auto" frameborder="no" noresize>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</HEAD>
<BODY>
------------------------------------------------------------------------------------
in the right page I have only text.
this is left page code (a2.htm)
<HTML>
<HEAD>
<TITLE>a2 page</TITLE>
<script LANGUAGE="JavaScript" SRC="aud.js"></script>
<script LANGUAGE="JavaScript"><!--
var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "a1.mp3";