Jump to content

Using PHP variables within a JScript


MikeFloutier

Recommended Posts

I've just made this little file to play the audio (of the text) for each page:===========</HEAD><BODY><OBJECT ID="Player" height="0" width="0" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"></OBJECT><INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Listen" OnClick="StartMeUp()"><INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()"><script><!--function StartMeUp (){ Player.URL = "Waves/$exhortation_wma";}function ShutMeDown (){ Player.controls.stop();}--></SCRIPT></BODY></HTML>================and at the line I've highlighted I've put the variable name holding the relevant .wma file.Trouble is it doesn't work. I've tried inserting the actual .wma file detail to test it so the rest works ok. I guess I'm not using the correct syntax or something to make the variable work correctlyCan you help?ThanksMike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...