Sandbox: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 8: | Line 8: | ||
|inspector=no | |inspector=no | ||
}} | }} | ||
<script type="text/javascript"> | |||
$(document).ready(function(){ | |||
$("#jquery_jplayer_1").jPlayer({ | |||
ready: function () { | |||
$(this).jPlayer("setMedia", { | |||
m4a: "/media/mysound.mp4", | |||
oga: "/media/mysound.ogg" | |||
}); | |||
}, | |||
swfPath: "/js", | |||
supplied: "m4a, oga" | |||
}); | |||
}); | |||
</script> | |||
<div id="jquery_jplayer_1"></div> | |||
<div id="jp_container_1"> | |||
<a href="#" class="jp-play">Play</a> | |||
<a href="#" class="jp-pause">Pause</a> | |||
</div> |
Revision as of 10:43, 12 March 2024
<script type="text/javascript">
$(document).ready(function(){ $("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4a: "/media/mysound.mp4", oga: "/media/mysound.ogg" }); }, swfPath: "/js", supplied: "m4a, oga" }); });
</script>
<a href="#" class="jp-play">Play</a> <a href="#" class="jp-pause">Pause</a>