madchemist
Programmer
I have an html page that has a WMP file and a flash animation. I want to use javascript to set the media player to play. I honestly think Im having the most problems because Im on a mac. Anyway here are the functions I wrote.... Any idea why they not working? Im new to JS
<script language=javascript >
<!--
var Player = document.mPlayer;
function play_movie(){
Player.Play();
}
function stop_movie(){
Player.Stop();
}
function disp_movie(){
Player.AutoStart="1"
}
//-->
</script>
<script language=javascript >
<!--
var Player = document.mPlayer;
function play_movie(){
Player.Play();
}
function stop_movie(){
Player.Stop();
}
function disp_movie(){
Player.AutoStart="1"
}
//-->
</script>