Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html area map onclick play music

Status
Not open for further replies.

kathyc20

Programmer
Mar 7, 2001
96
CA
Hello

I have reference an mp3 file on my website and am having difficulty with the coding of playing the music. I don't want a new window to appear, just to play once and then stop.

<area shape=rect coords="20,249,111,271" href="images/mm_jingle.mp3">

Can someone please help me out with this?

Thank you
 
you are hyperlinking to an audio file and so the browser will behave depending on how the users browser is set up.

you could look at these links for inspiration..


and simply change your <area shape=rect coords="20,249,111,271" href="javascript:play_sound_function('mm_jingle.mp3';">

replacing play_sound_function with the javascript function used to play your sound.

this should give you a good head start anyway

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top