Menu
is it possible to start or stop the music by clicking on the same text
I would lik to start or stop the music by clicking on the text and alsow change the text, sow music plays you see the stop text, when you click music stops and you see the play text
<html>
<head>
<script language=”JavaScript”>
<!–
function startPlay() {
document.all[‘BGSOUND_ID’].src=’x.mp3′
}
function stopPlay() {
document.all[‘BGSOUND_ID’].src=”
}
//–>
</script>
</head>
<body>
<BGSOUND ID=”BGSOUND_ID” LOOP=1 VOLUME=”-600″ SRC=”onestop.mid”>
<a href=”javascript:startPlay();”>play</a></p>
<a href=”javascript:stopPlay();”>stop</a></p>
</body>
</html>