我不明白为什么这个脚本不适用于<! DOCTYPE html>
但只适用于
<! DOCTYPE html PUBLIC "- // W3C // DTD XHTML 1.0 Transitional // EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
你能帮我吗?
脚本是:
<script type="text/javascript">
jQuery(document).ready(function($) {
$("#menu-item-3354,#menu-item-3419").on("click", function() {
$("#jquery_jplayer_1").jPlayer("pause");
});
$("#menu-item-3367,#menu-item-123,#menu-item-304,#menu-item-1048,#menu-item-2788,#menu-item-1046,#menu-item-3753,#menu-item-1045,#menu-item-1044,#menu-item-3719,#menu-item-3754,#menu-item-3755,#menu-item-3751,#menu-item-41,#menu-item-3418,#menu-item-68,#menu-item-123,#menu-item-2788").on("click", function() {
$("#jquery_jplayer_1").jPlayer("play");
});
$.backstretch("http://www.keepradio.it/wp-content/uploads/2014/08/s.jpeg");
$("#jquery_jplayer_1").jPlayer({
ready: function() {
$(this).jPlayer("setMedia", {
mp3: "http://178.32.137.180:8713/;stream/1"
}).jPlayer("play");
},
swfPath: "http://www.keepradio.it/wp-content/themes/soundwave/swf/",
supplied: "mp3",
volume: 1
});
$(".radio-wz-open-hidden").click(function() {
$("#radio-wz #radio-wz-col").slideToggle({
direction: "up"
}, 100);
$(this).toggleClass("clientsClose");
});
$("#radio-wz-col").show();
function mouseHandler(e) {
if ($(this).hasClass("radio-wz-hidden-open")) {
$(this).removeClass("radio-wz-hidden-open");
} else {
$(".radio-wz-hidden-open").removeClass("radio-wz-hidden-open");
$(this).addClass("radio-wz-hidden-open");
}
}
function start() {
$(".radio-wz-open-hidden").bind("click", mouseHandler);
}
$(document).ready(start);
});
</script>
应该处理&#34; play&#34;并且&#34;暂停&#34;音频播放器不适用于HTML5 doctype。 &#34;暂停&#34;工作但是&#34;玩&#34;不工作,甚至&#34;暂停&#34;只工作一次