JQuery中怎么给Dewplayer播放器添加自动播放
varmp3=$("<objectid='dewplayerclassic'width='220'height='30'name='dewplayerclassic'da...
var mp3=$("<object id='dewplayerclassic' width='220' height='30' name='dewplayerclassic' data='dewplayer.swf' type='application/x-shockwave-flash'><param value='dewplayer.swf?mp3=" + mp3url + "' name='movie'><param value='opaque' name='wmode'><embed wmode='opaque'><param value='mp3=" + mp3url +"' name='flashvars'></object>");怎么添加自动播放,添加一个<param name='AutoStart ' value='true'>也不行。
展开
1个回答
2015-01-25
展开全部
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>last.html</title>
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$ (function ()
{
var embed = $ ('<embed id="__emb" volume="1" currentPosition="0" src="Music/MusicList/xxdd.mp3" type="application/x-mplayer2" autostart="true" loop="false" height="100" width="100" ></embed>');
$ ('body').append (embed);
})
</script>
</head>
<body>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询