Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
我没用过SM2,所以我不能谈论这个。
然而,如果 jQuery 是一个选项,我已经很幸运 jquery.mb.miniAudioPlayer,它基于 jPlayer。
以下是所需最少标记/代码的示例:(
<script type="text/javascript" src="inc/jquery/1.3.2.min.js"></script> <script type="text/javascript" src="inc/mbScrollable.js"></script> <script type="text/javascript"> $(function(){ $(".audio").mb_miniAudioPlayer({ width:240, inLine:false }); }); </script> <div id="myScroll"> <a id="m1" class="audio {ogg:'http://www.miaowmusic.com/ogg/Miaow-07-Bubble.ogg', mp3:'http://www.miaowmusic.com/ogg/Miaow-07-Bubble.mp3'}" href="javascript:void(0)">miaowmusic - Bubble (mp3/ogg) </a> </div>
如 this 所示页面 - 单击“如何”。)
或者换句话说,使用您的细分:是的,有一个 标签可以“注入”玩家代码到 DOM 中。
I haven't used SM2, so I can't speak to that.
However, if jQuery is an option, I've had good luck with jquery.mb.miniAudioPlayer, which is based on jPlayer.
Here's an example of the minimal amount of markup/code required:
(as seen on this page—click 'how to'.)
Or in other words, to use your breakdown: yes, there's a <script> tag that "injects" the player code into the DOM.
<script>
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
我没用过SM2,所以我不能谈论这个。
然而,如果 jQuery 是一个选项,我已经很幸运 jquery.mb.miniAudioPlayer,它基于 jPlayer。
以下是所需最少标记/代码的示例:(
如 this 所示页面 - 单击“如何”。)
或者换句话说,使用您的细分:是的,有一个
标签可以“注入”玩家代码到 DOM 中。
I haven't used SM2, so I can't speak to that.
However, if jQuery is an option, I've had good luck with jquery.mb.miniAudioPlayer, which is based on jPlayer.
Here's an example of the minimal amount of markup/code required:
(as seen on this page—click 'how to'.)
Or in other words, to use your breakdown: yes, there's a
<script>
tag that "injects" the player code into the DOM.