Friday 13 October 2017

Inserting sound click for buttons for html files

First download a click.mp3 file.

Make a javascript file consist of this code and save as sound-mouseover.js file.


Put both the mp3. and js. files into the same destination folder as html page.


Inside the head, insert the code highlighted blue.
, insert this code:


Inside the body, insert this code:
 


(.ogg file is used when audio works in ogg)

Inside the body, insert this code:

onmouseover= "playclip();"







No comments:

Post a Comment