2012-05-06 3 views
1

한 페이지에 여러 개의 mp3 파일이 있으며 클릭하면 mp3 파일을 재생하고 싶습니다. jquery를 사용하여 어떻게 재생할 수 있습니까?한 페이지에서 여러 mp3 파일 재생

<a href="listen(1)" >play 1</a> 
<a href="listen(2)" >play 2</a> 
<a href="listen(3)" >play 3</a> 
<a href="listen(4)" >play 4</a> 

답변

0
$('a').click(function(){ 
    // you have your mp3 file, play it 
    // the way that you'd like 
    var mp3 = $(this).prop('href'); 
});