Play sound with javascript

前端 未结 3 1151
闹比i
闹比i 2021-01-13 21:43

I want to create a table with string and button(that play sound) in each row and every button play a different sound.

i want to do it with this method :



        
3条回答
  •  一整个雨季
    2021-01-13 22:10

    You can achieve it as follow:

    refer blog How to Play a Sound on Click or on MouseOver

    
    

    In web page

    
    Click here to hear a sound
    
     

    Mouse over this text to hear a sound

提交回复
热议问题