Does anybody knows how to stop the MP3Player with a javascript?
I use [code2caqvpoe]objMP3Player.GotoFrame(0);[/code2caqvpoe]
It works but is it the best way to do it?
Amish
11-08-2006 15:26:52
Probably since thats the only command to send stop to the flash file.
And how to 'pause' the player?
techgeek27
23-01-2008 08:32:21
I made this based on what was put here...
Here is the script.....
[code18j5z3zb]
function stopPlayer()
{
if ( g_browser=='msie' )
{
objMP3Player = document.getElementById('mp3player');
}
else
{
if (document.embeds && document.embeds['mp3player']) {
objMP3Player = document.embeds['mp3player'];
}
}
objMP3Player.GotoFrame(0);
}[/code18j5z3zb]
then i made this span to work with it...
[code18j5z3zb]<span id="stoptheplayerspan" unselectable="on" onclick="stopPlayer();" style=" cursor:hand; font-size:30px;">{STOP}</span>[/code18j5z3zb]