在我的页面中我使用了jplayer我希望用jplayer播放一些文本链接,但它不起作用。我该如何纠正?
function toggleStudentAudio(file, dersid){
$("#playerborder1").jPlayer({
ready: function(event) {
$(this).jPlayer("setMedia", {
mp3: file,
});
},
swfPath: "http://www.jplayer.org/2.1.0/js",
supplied: "mp3"
});
}
<div id="lesson-review-user-listening_1" class="lesson-review-user-listening">
<a class="student-play" href="javascript:;" onClick="toggleStudentAudio('test1.mp3', '1');">play 1</a>
<div id="playerborder1" style="float: right"></div>
</div>