Wilse wrote:
Whabangs code is perfectly ok for the job.
Well, I already have this code, minus the 'bapp' part and it does play from the location.
What's 'bapp', anyway?
Damn, Wilse, think with your head (the hairy thing on the top :-P ) just LOOK at the code.
HTML is a simple END-&-START delimited language. In that case, the tag used is the "A" one, one of the most common, used to link the entity enclosed to a file or location or whatever. BTW be careful and make sure that it points to something that EXISTS. In this very case your "filename.wav" has to live in the same dir as your HTML page file, witch is quite not tidy.
See ? It has a
that starts, and that closes it. Whatever is in within the opening en end tags are affected, that is by clicking on the element the user will execute the action.
The syntax is always the same, if you open a
you close it with a
, simple as that.
Now go away :rtfm:
pX
PS : A last word about your very issue : If what you want when a visitor clicks on your link (a text, image, anything) is some fancy custom player, maybe you should look towards
Flash