Audio with control java script
In Head:<script language="JavaScript" type="text/javascript">
//Lets Make The Play Function
function play() {
document.embeds[0].play();
}
function stop() {
document.embeds[0].stop();
}
</script>Make This Your First Embed Thing. (aka put it before any other <embed> tags)<embed src="your music file" hidden=true autostart=false>And of coarse, your start and stop buttons:<a href="#" onClick="play();">Play!</a><br><a href="#" onClick="stop();">Stop!</a>
No comments:
Post a Comment