Results 1 to 3 of 3

Thread: I want to combine Jcarousel with Fancybox

  1. #1
    Join Date
    Oct 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default I want to combine Jcarousel with Fancybox

    I was try to create a gallery with Jcarousel and want you use fancybox to open image in large view is the same carousel component. I tried to use it but only one works at a time. either carousel works or the fancybox. I think its a conflict in


    jQuery(document).ready(function() and $(document).ready(function()


    can any one help !!!!

  2. #2
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How to fix?

    //Fancybox
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script>
    !window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
    </script>
    <script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    <script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    <script type="text/javascript">
    var $xx = jQuery.noConflict();

    $xx(document).ready(function() {


    $xx("a[rel=example_group]").fancybox({ //your effect
    'transitionIn' : 'elastic',
    'transitionOut' : 'elastic',
    'titlePosition' : 'over',
    'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
    return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    }
    });
    });
    </script>

    //jCarousel

    <script type="text/javascript" src="../lib/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../lib/jquery.jcarousel.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../skins/tango/skin.css" />

    <script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
    visible: 1,

    });
    });
    </script>

  3. #3
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default please

    post a link to the troublesome page with the problem.

    This will give someone a direct look at your page and allow someone to help you much easier ,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •