0

Having an issue with Jplayer, Have set up a script function that when clicked should pause, but it automatically pauses and restarts immediately when clicked. Is it because of the double id=mp3 tag on each track? Because when I have inserted a number after the id and changed the $('#mp3') to be called $('#mp31') the pause no longer works.

    <tr><td>Tracklist:</td></tr>

<script>$('#mp3').click(function(){ $("#jp-player").jPlayer("pause"); return false;});</script>

<tr><td>1. </td><td><a href="mp31.mp3" id="mp3">Test</a>Friend</a> (Techno)</td></tr><tr><td>2. </td><td><a href="mp32.mp3" id="mp3">Test</a>Enemy</a> (Ambient)</td></tr>

Any help appreciated!

CP

4

0 回答 0