Results 1 to 3 of 3

Thread: Fade-in slideshow clashing with jcarousel

  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fade-in slideshow clashing with jcarousel

    Hi,

    I am running the Ultimate Fade-in slideshow that utilises Jquery, alongside the jcarousel plug-in for Jquery.

    When i run them separately they work fine, but put together on the same page and they are not running. I have tried placing the scripts in different orders in the head with no joy.

    carousel on it's own - http://www.dave-tyler.co.uk/test/carousel.html

    Fade-in on it's own - http://www.dave-tyler.co.uk/test/fadeslideshow.html

    Together - http://www.dave-tyler.co.uk/test/bothscripts.html

    The code in the head section is:

    HTML Code:
    <head>
    
    <link href="css/maintest.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    
    <!--CAROUSEL SCRIPT-->
    <script type="text/javascript" src="js/jCarouselLite.js"></script>
    <script type="text/javascript">
    
     $(document).ready(
    				function(){
        $(".carousel").jCarouselLite({
    		auto: 1500,
    		speed: 3000
        });
    });
    </script>
    
    <!--FADE SLIDESHOW SCRIPT-->
    <script type="text/javascript" src="js/fadeslideshow.js"></script>
    <script type="text/javascript">
    
    var mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [364, 274], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    		["images/sale2.jpg", "", "", "" ],
    		["images/sale2.jpg", "", "", "" ],
    		["images/sale3.jpg", "", "", ""],
    		["images/sale4.jpg", "", "", ""] //<--no trailing comma after very last image element!
    	],
    	displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 500, //transition duration (milliseconds)
    	descreveal: "always",
    	togglerid: ""
    })
    
    </script>
    
    
    </head>
    any ideas why this is happening?

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Guessing there is some conflict i tried to change a part of your script replacing $ with jQuery like this

    Code:
    <script type="text/javascript">
    
     jQuery(document).ready(
    				function(){
        jQuery(".carousel").jCarouselLite({
    		auto: 1500,
    		speed: 3000
        });
    });
    </script>
    on my computer it got both shows running. You can try to see if it works. If not it may be an idea to try to make a new variable in jQuery noconflict mode. But i don't know much about that.

  3. #3
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that works great, thanks for the taking the time.

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
  •