+ 3

This post explains to you how to add background music?

To add background music do this: <audio autoplay loop> <source src="[url]" type="audio/[type]"> </audio> But I do not know how to make audio play by pressing a button you made.

8th Jan 2017, 3:04 AM
koder
koder  - avatar
2 Réponses
+ 2
<audio controls> <source src="[url]" type="audio/[type]"> </audio> this shows what you want.
8th Jan 2017, 3:39 AM
Nahuel
Nahuel - avatar
+ 1
no I know controls I'm talking about when you press a button then a sound plays. For example you press an image of a cookie. Then it makes a mario coin sound.
3rd Feb 2017, 1:52 PM
koder
koder  - avatar