Results 1 to 6 of 6

Thread: Sliding Carousel Issue

  1. #1
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Sliding Carousel Issue

    I used jQuery & jCarousel to create a sliding carousel. My images are cut off and I tried to edit the css and html code so the image would appear but have not been able to figure this out. Please let me know how I can fix this. Thanks

    Here are the html, css and image links for your reference.

    http://www.jenkinscreativedesigns.co...jcarousel.html

    http://www.jenkinscreativedesigns.com/skin.css

    http://www.jenkinscreativedesigns.co...scarousel1.jpg
    http://www.jenkinscreativedesigns.co...scarousel2.jpg

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In skin.css find:

    Code:
    .jcarousel-skin-tango .jcarousel-clip-horizontal {
        width:  245px;
        height: 194px;
    	
    }
    
    .jcarousel-skin-tango .jcarousel-clip-vertical {
        width:  75px;
        height: 245px;
    	
    }
    
    .jcarousel-skin-tango .jcarousel-item {
        width: 75px;
        height: 194px;
    }
    Edit the highlighted lines as shown.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    That worked perfectly. Thank you very much.

  4. #4
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    I was able to get the images in the sliding carousel to view properly but I have 3 images I need to show and the carousel only shows two. It shows the first and last image bypassing the 2nd image one when you click on the arrows. Someone please let me know how this can be corrected.

    Here are the html, css and image links for your reference. Thanks

    http://www.jenkinscreativedesigns.co...jcarousel.html

    http://www.jenkinscreativedesigns.com/skin.css

    http://www.jenkinscreativedesigns.co...Imagesweb2.jpg
    http://www.jenkinscreativedesigns.co...esgraphics.jpg
    http://www.jenkinscreativedesigns.co...smarketing.jpg

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's not a css issue. It's the default scroll configuration of 3. In the .jcarousel() function one needs to specify scroll, otherwise it defaults to 3 (from the page's source code, additions highlighted):

    Code:
    <script type="text/javascript">
    
    jQuery(document).ready(function() {
        jQuery('#mycarousel').jcarousel({
            visible: 1,
    	scroll: 1
        });
    });
    
    </script>
    Don't miss the added comma (red).

    See:

    http://sorgalla.com/projects/jcarousel/#Configuration

    for more information on configuring the scroller.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    May 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Once again thanks for the feedback and quick response. It works great. You are truly an asset to this forum.

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
  •