Hello Everyone… its been a long time since ive done a bit of the old javascript and im having trouble getting something like this to work:
I have a media player that I can send control functions too: play; pause; stop etc… but I can only do it with seperate buttons for play and pause (as below)… it all works as is…
What I would like is a toggle button for play/pause that changes depending on the state of the media clip. If paused it shows “play” and vice-versa.
Can anyone help?
[CODE]<head>
function play(){
make object play
}
function pause(){
make object pause
}
</head>
<body>
<!– two seperate buttons need to make into one toggle button –>
<input type=”button” onClick=”play()” value=”play”>
<input type=”button” onClick=”pause()” value=”pause”>