HTML, WAVs, and Links

qIat

Senior member
Jul 16, 2001
434
0
0
I have a text link to another page on my site, and I want a short wav to play when the link is clicked. How can I do this?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Try this <a href="/sounds/zing.wav">it's my zing!</a>

Edit - oops, misread your question. You need some javascript OnClick command in the <a href> probably calling a function and passing the link and/or sound. the script code would trigger the sound then change the current location.

Or, each linked-to page could have sound code in the on load event.

Hopefully someone who's done this will step in and give you some code. Or try googling?