Jplayer使用中遇到的一些问题

使用如下代码, 可以再firefox和chrome上正常运行,但是却不能在ie8上运行:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome to PaoMoMusic </title>
  <!-- script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" -->
  <script type="text/javascript" src="js/jquery.min.js" > </script> 
  <script type="text/javascript" src="jPlayer/jquery.jplayer.min.js"></script>
    <script>
    $(document).ready(function() {
          $("#jpId").jPlayer( {
            ready: function () {
              $(this).jPlayer("setMedia", {
                mp3: "mp3/1.mp3" // Defines the mp3 url
              }).jPlayer("play"); // Attempts to Auto-Play the media
            },
           supplied: "mp3, oga",
           swfPath: "jPlayer"
          });
        });
  </script>
</head>
<body style="background-image:url(image/bg.jpg); width: 500px; height: 500px;">
  <div id="jpId" >
  </div>
</body>
</html>

 尼玛,安装完flash,ie浏览器上就可以运行了。ie也不提示一下,坑爹啊。

posted @ 2014-03-16 16:53  phk52  阅读(271)  评论(0)    收藏  举报