1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<script>
$(function() {
// setup overlay actions to buttons
$("button[rel]").overlay({
// setup exposing (optional operation);
onBeforeLoad: function() {
this.expose();
},
onLoad: function(content) {
// find the player contained inside this overlay and load it
$("a.player", content).flowplayer(0).load();
},
onClose: function(content) {
$("a.player", content).flowplayer(0).unload();
// cloase exposing
$.unexpose();
}
});
// install flowplayers
$("a.player").flowplayer("/swf/flowplayer-3.0.0-rc3.swf");
});
</script> |
Partager