Pobrałem ten jQuery Marquee i wystąpił mi konflikt z LightBoxem. Próbowałem to jakoś załagodzić i przesuwanie tekstu działa ale lightbox nie:
<script type="text/javascript"> <!--
var funkcja1 = {};
funkcja1.query = jQuery.noConflict(true);
funkcja1.query(function ()
{
funkcja1.query('div.pasek_sponsorzy marquee').marquee('pointer').mouseover(function () {
funkcja1.query(this).trigger('stop');
}).mouseout(function () {
funkcja1.query(this).trigger('start');
}).mousemove(function (event) {
if (funkcja1.query(this).data('drag') == true) {
this.scrollLeft = $(this).data('scrollX') + (funkcja1.query(this).data('x') - event.clientX);
}
}).mousedown(function (event) {
funkcja1.query(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
}).mouseup(function () {
funkcja1.query(this).data('drag', false);
});
});
//-->
Cała deklaracja skryptów w HEAD:
<script src="skrypt/jquery-1.2.6.js" type="text/javascript"></script>
<script type="text/javascript" src="skrypt/prototype.js"></script>
<script type="text/javascript" src="skrypt/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="skrypt/lightbox.js"></script>
<script src="skrypt/jquery.marquee.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript"> <!--
var funkcja1 = {};
funkcja1.query = jQuery.noConflict(true);
funkcja1.query(function ()
{
funkcja1.query('div.pasek_sponsorzy marquee').marquee('pointer').mouseover(function () {
funkcja1.query(this).trigger('stop');
}).mouseout(function () {
funkcja1.query(this).trigger('start');
}).mousemove(function (event) {
if (funkcja1.query(this).data('drag') == true) {
this.scrollLeft = $(this).data('scrollX') + (funkcja1.query(this).data('x') - event.clientX);
}
}).mousedown(function (event) {
funkcja1.query(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
}).mouseup(function () {
funkcja1.query(this).data('drag', false);
});
});
//-->