Anyway: What I'm trying to do is write myself a script that will play an embedded mp3 (a single file, not a playlist), but only when a link element is clicked on. As in: I don't want the file itself to be visible on the page, I don't want to have to redirect people to another page or to a pop-up window, to be able to do this. I'd rather not have to rely on browsers plugins or activeX controls that people may or may not have installed, if that's possible...
Which I'm not sure it is. One or two blog/forum posts I've seen suggest that it IS possible to get such a script working cross-browser, but those people either didn't provide examples of the script they were working on, or linked to sites that no longer work.
Anyway, yeah, I'm getting kind of lost in all this (mis?)information. Thoughts or suggestions would be hugely appreciated. Sorry for the lengthy post - but to make it lengthier still, here's the code I'm using at the moment - works in IE but not Firefox (and I have no idea if it works in any other browser).
<embed src="audio/StraightandNarrow.mp3" autostart=false hidden=true id="straightandnarrow" name="straightandnarrow">
<a href="#" onClick="playSong()" onDblClick="stopSong()">Straight and Narrow</a>
(Yes, I'm aware that the embed tag is deprecated. I'm using it for two reasons: the only examples I've seen of the object tag have been for flash movies and I can't seem to get that working with mp3 files, and from what I've read it seems like the embed tag is more widely supported anyways.)
Anyway - I'll shut up now. Thanks much.