Jump to content

onClick play sound


freddyw

Recommended Posts

Hi there

 

I know javascript isn't ideal for what im trying to do, but i know it is possable.

 

I have an image and a sound. Lets call them image.jpg  and sound.mp3 (those are the formats)

 

What i want is when you click the image the mp3 file plays. I dont need a stop function just play. I have tried to acchieve this but ive given up. any help? please?

 

Link to comment
https://forums.phpfreaks.com/topic/184463-onclick-play-sound/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.