GG, nothing like, I'm afraid.
To the audio control widget, you must add an ID:
Code:
<audio class="xar_meplayer" src="index_htm_files/pdintropagemono.mp3" id="musicintro" controls width = "100%" height="100%"/>
"musicintro" can be renamed but what it is called is used in the link applied to the image:
Code:
javascript: document.getElementById("musicintro").play();
If you place your 30x30px play control on top then a click on either it or the image will start the track; the Pause button appears and only it stops the track.
If you hide the play control under the image then nothing stops the track, unless you add another linked shape with a Stop or Pause function:
Code:
javascript: document.getElementById("musicintro").stop();
This will replay the track , when Played.
Code:
javascript: document.getElementById("musicintro").pause();
This will restart the track.
Pick one or the other or none.
JS - Controlling Audio.xar
Acorn
Bookmarks