Link to home
Start Free TrialLog in
Avatar of psenn
psenn

asked on

Javascript EvalSound onClick

http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
has a pretty good write-up on different methods to play sounds.
I like 4. Controlling an Embedded Sound using JavaScript (New) the best.

Q: What's the best method to play a sound when the user presses a hyperlink?
I don't want it to follow the hyperlink, so I know the function should return false.

ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psenn
psenn

ASKER

OK, thanks.
If Flash is the best way, how should I use it?
Convert the wav file to swf, or is it easier than that?
I guess you need to convert the hyperlink to flash, but that might give accessibility issues