01
2019
04

[html]苹果安卓手机背景音乐微信自动播放器html代码



<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312"/>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> 
<title></title>
</head>
<body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
 function autoPlayAudio1() {
        wx.config({ 
            debug: false,
            appId: '', 
           timestamp: 1,
            nonceStr: '', 
           signature: '', 
           jsApiList: []
        });
        wx.ready(function() {
            document.getElementById('bgmusic').play();
        });
    }
autoPlayAudio1(); 
</script>
<p align="center">
<audio id="bgmusic" src="mp3地址" autoplay preload loop controls></audio>
</p>
</body>
</html>
查看全文 >>




« 上一篇 下一篇 »