my friend e-mailed me this quesion, i am more of a php person so i would appreciate it if you could help me look smart here is the quetsion
I am trying to write a simple script to play audio files for this guysnow i know that with the <a ...> tag that calls the javascript he could have just used the onclick, don't know why he didn't but i have changed that in another place but still it won't work.
website and i need some help.
in the <head> if have:
/In the <body> i have:Expand|Select|Wrap|Line Numbers
- /<script language="javascript">
- function player(source)
- {
- document.player.hidden(false);
- document.player.src(source);
- document.player.play(true);
- }
- </script>
/And then later:Expand|Select|Wrap|Line Numbers
- /<embed src="" loop=false name="player" controls=console hidden=true>
/It does nothing, like it doesn't even go into the function... Its beenExpand|Select|Wrap|Line Numbers
- /<a href="#top" onClick="player("audio/01.mp3")">Play</a>
so long since i have used javascript, its probably a simple problem. I
attached a copy of the html file. If you could take a look at it i would
appreciate it.
Ben
thanks for any assistance
eirc