Page 1 of 1

How to make a sound play when you hover over a specific image?

Posted: Thu Dec 26, 2024 9:35 pm
by Account-Ability
I am trying to make a .wav audio file to play when I haver over an image. It works but it goes to the audio player controls. Is there a way to hover over an image and the sound will play once and stay on the same page? In this specific scenario, I want to hover over an image of a Bear and have a bear Roar play.

Re: How to make a sound play when you hover over a specific image?

Posted: Thu Dec 26, 2024 10:11 pm
by BaconFries
Have you read the following
Using events to create a roll over image with sound. Please read from :Step 4
To play a sound we will use the Audio object.
Please be aware that not all browsers do support the same media formats! See the information in the help for more details about this.
Also note that this will note work in the likes of "Touch" enabled devices such as iPhones, Android etc as they do not support "Hover" as this is primarily used in "Desktop" using a mouse which "Touch" devices do not.

Re: How to make a sound play when you hover over a specific image?

Posted: Thu Dec 26, 2024 11:32 pm
by Account-Ability
Got it. Thanks for your help. Really appreciated.