Playing sound on my website

后端 未结 6 1762
鱼传尺愫
鱼传尺愫 2021-01-18 17:40

I use a code to play background music on my website..



         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-18 18:01

    The HTML5 solution is the Audio tag http://www.w3schools.com/tags/tag_audio.asp

    This is the older solution: http://drayblog.gotdns.com/index.php/2009/05/13/html-embed-an-audio-clip-and-repeat-loop-it/

    
    
        <object type="audio/mp3" data="http://www.domain.com/audio/media.mp3"><param name="src" value="http://www.domain.com/audio/media.mp3"></param><param name="autostart" value="true"></param><param name="hidden" value="True"></param><param name="loop" value="true"></param>
        </object>
    
    

提交回复
热议问题