Witam mam problem z sliderem ("anythingslider") i jquery.lightbox oba skrypty współpracują na jquery z tym że jeden na jquery zwykłym a drugi na jakimś jquery.min.js. i gdy wstawiam odnośnik do pliku jquery przed sliderem to działa slider a gdy go wklejam przed lightboxa to lightbox działa a za to slider nie działa. Ma ktoś jakiś pomysł jak to rozwiązać?.Kod wygląda tak:
<script type="text/javascript" src="$config[dir_core]jquery.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript" src="$config[dir_core]jquery.easing.1.2.js"></script> <script src="$config[dir_core]jquery.anythingslider.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
function formatText(index, panel) {
return index + "";
}
$(function () {
$('.anythingSlider').anythingSlider({
easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not.
delay: 3000, // How long between slide transitions in AutoPlay mode
startStopped: false, // If autoPlay is on, this can force it to start stopped
animationTime: 4500, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: true, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Start", // Start text
stopText: "Stop", // Stop text
navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
});
$("#slide-jump").click(function(){
$('.anythingSlider').anythingSlider(6);
});
});
<script type="text/javascript" src="$config[dir_core]jquery.lightbox-0.5.js"></script> <script type="text/javascript"> $(function() {
// Use this example, or...
$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
// This, or...
// $('#gallery a').lightBox(); // Select all links in object with gallery ID
// This, or...
//$('a.lightbox').lightBox(); // Select all links with lightbox class
// This, or...
// $('a').lightBox(); // Select all links in the page
// ... The possibility are many. Use your creative or choose one in the examples above
});