View Full Version : I want to combine Jcarousel with Fancybox
avenus
04-12-2009, 07:36 AM
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 !!!!
ruslyrossi
08-24-2011, 04:54 AM
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 ? ' ' + 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>
ajfmrf
08-24-2011, 08:20 PM
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 ,
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.