jcdevelopment
12-08-2011, 09:34 PM
I know it's a cardinal sun, but I have background music on a sub site for my company. I need to be able to turn it on and off. It doesnt seem to work. Can anyone take a second to look at my code and see what might be the issue?
<script type="text/javascript">
function stop() {
document.getElementById("music").src = "";
}
</script>
<a href="javascript:stop()" >
<img name="_stp_gfx" src="images/_stp_gfx.jpg" width="121" height="55" border="0" id="_stp_gfx" alt="" />
</a>
<embed name="music" src="_media/12_8_media.mp3" id="music" autostart="false" loop="false" hidden="true">
Thanks for any help.
<script type="text/javascript">
function stop() {
document.getElementById("music").src = "";
}
</script>
<a href="javascript:stop()" >
<img name="_stp_gfx" src="images/_stp_gfx.jpg" width="121" height="55" border="0" id="_stp_gfx" alt="" />
</a>
<embed name="music" src="_media/12_8_media.mp3" id="music" autostart="false" loop="false" hidden="true">
Thanks for any help.