MikeFloutier Posted August 30, 2006 Share Posted August 30, 2006 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 More sharing options...
skym Posted August 30, 2006 Share Posted August 30, 2006 Player.URL = "Waves/<?php echo $exhortation_wma; ?>"; Link to comment Share on other sites More sharing options...
MikeFloutier Posted August 30, 2006 Author Share Posted August 30, 2006 Thank you Skym,Very much appreciated.Mike Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now