- <script type="text/javascript">
- //<![CDATA[
- $(document).ready(function(){
- $("#jquery_jplayer_1").jPlayer({
- ready: function () {
- $(this).jPlayer("setMedia", {
- mp3:"xx.mp3"
- });
- },
- swfPath: "js",
- supplied: "mp3",
- wmode: "window",
- smoothPlayBar: true,
- keyEnabled: true
- });
- $("#ol").click(function(){
- if($("#ok").val()=="播放")
- {
- $("#jquery_jplayer_1").jPlayer("play");
- $("#ok").val("关闭");
- }else
- {
- $("#ok").val("播放");
- $("#jquery_jplayer_1").jPlayer("stop");
- }
- })
- });
- //]]>
- </script>