Results 1 to 5 of 5

Thread: Step Carousel Viewer - why need to reload page?

  1. #1
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Step Carousel Viewer - why need to reload page?

    1) Script Title: Step Carousel Viewer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem: I have a basic test page with two Step Carousel Viewers. One is setup to show 4 up at once and the other just shows 1. When you first visit the page, the first carousel works fine, but the second one does not. It jumps to the last image and does not allow you to scroll. This is fixed when you refresh once or twice.

    http://www.njn.net/edtest/step/index8.html

    It's happening in IE8, Firefox, and Chrome. I'd like it to be fixed and work without having to refresh the page again. Any help would be appreciated!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    These happens because inside videos.js, each DIV holding the contents is missing an explicit width attribute, unlike the first Carousel, which does, via:

    Code:
    .stepcarousel .panel{
    float: left; /*leave this value alone*/
    overflow: hidden; /*clip content that go outside dimensions of holding panel DIV*/
    margin: 10px; /*margin around each panel*/
    width: 132px; /*Width of each panel holding each content. If removed, widths should be individually defined on each content DIV then. */
    }
    You'll need to do something similar for the second Carousel's DIVs as well.
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How exactly would I do that? I added the "width="300" into each DIV on video.js but that didn't do it.

    I also created this...

    #mygallery2 .panel{
    margin: 0px;
    width: 300px;
    }

    That didn't work either. So do I have to duplicate that style?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Since the DIVs in your 2nd Viewer carry the class videos, the CSS to add needs to be:

    Code:
    #mygallery2 .videos{
    margin: 0px;
    width: 300px;
    }
    DD Admin

  5. #5
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That did it! Thanks so much!!!

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
  •