hello,i need help please.
i have two different player scripts on one site but i hav an error
with the scripts.
here ist the first:
<div class='overlay' id='". $row->id ."' style='background-image:url(player/css/img/petrol.png)'>
<a class='player' href='". $row->video ."'> </a>
</div>
and the script for the first:
$(function() {
$("a[rel]").overlay({
onBeforeLoad: function() {
this.expose({color: '#273942'});
},
onLoad: function(content) {
$("a.player", content).flowplayer(0).load();
},
onClose: function(content) {
$("a.player", content).flowplayer(0).unload();
$.unexpose();
}
});
$f("a.player", "http://www.jquerytools.org/swf/flowplayer-3.1.0.swf", {
clip: {
baseUrl: '/flow/uploads/',
duration: 5
}
});
and
$(function() {
$("#pl").scrollable({
items:'div.entries',
size:4,
clickable:false
})
and here the second:
<div class="row">
<a class="player" style="background-image: url('.$row->image.');" href="". $row->video ."">
<img src="videoseite-Dateien/play.png">
</a>
</div>
and the script for the second:
$(function() {
$f("a.player", "/swf/flowplayer-3.1.0.swf", {
// perform custom stuff before default click action
onBeforeClick: function() {
// unload previously loaded player
$f().unload();
// get wrapper element as jQuery object
var wrap = $(this.getParent());
// hide nested play button
wrap.find("img").fadeOut();
// start growing animation
wrap.animate({width:406, height:303}, 500, function() {
// when animation finishes we will load our player
$f(this).load();
});
// disable default click behaviour (player loading)
return false;
},
// unload action resumes to original state
onUnload: function() {
$(this.getParent()).animate({width:190, height:150}, 500, function() {
// make play button visible again
$(this).find("img").fadeIn();
});
},
// when playback finishes perform our custom unload action
onFinish: function() {
this.unload();
}
});
});
now the error is when the first code is aktiv the script with the overlay.
whe this is on the player from the second is not going.
please where is the right way for this?
sorry for bad english.
mfg