Results 1 to 6 of 6

Thread: Vertical Image Slide On-Click with Arrows Script

  1. #1
    Join Date
    Oct 2008
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Post Vertical Image Slide On-Click with Arrows Script

    Hi,

    I am hoping someone can direct me on this very SPECIFIC script.

    OK.

    I have an UP arrow and a DOWN arrow and I have 30 or so IMAGES vertically aligned. (Only 7 images are visible at a time including the 2 arrow buttons) The UP arrow is above the top image and the DOWN arrow is below the bottom image. (I'd like to use my own custom UP and DOWN buttons if possible)

    The user clicks the top arrow and all the images slide up one position.
    The user clicks the bottom arrow and all the images slide down one position.
    The images are all in a loop so once the user scrolls through all 30 or so images the loop will continue.
    The images are all linkable.

    I have spent many hours looking for this script. If someone could please direct me in the right direction I would be much obliged.

    Regards,

    Nate

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You're looking for jCorousel. Specfically, look at this example. The example doesn't have links but you can add them.

  3. #3
    Join Date
    Oct 2008
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thank you Medyman!

    I want to use the Vertical Carousel with static HTML.

    This line confuses me after looking over all the code.

    "The items, which can be static HTML content or loaded with (or without) AJAX, can be scrolled back and forth (with or without animation)."

    Can you tell me how to set-up my images, and where they go..etc...? As a noob I am greatly perplexed..

    Best,

    Nate

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hey Nate...

    First, this is a jQuery plugin. So the first thing you should do is download and link to jQuery. Next, download the jCarousel scripts and link to them (both CSS and JS).

    The carousel is created using very simple markup. The example I linked to before uses:
    Code:
     <ul id="mycarousel" class="jcarousel jcarousel-skin-tango"> 
        <li><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" width="75" height="75" alt="" /></li> 
        <li><img src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" width="75" height="75" alt="" /></li> 
        <li><img src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" width="75" height="75" alt="" /></li> 
      </ul>
    It's a basic unordered list with an image within each list item. If you want, you can add a link to these images. The id of the <ul> can be anything, but the classes should be as above.

    Lastly, you'll need to initiate the carousel. The bare minimum that you need to do this is:
    Code:
    <script type="text/javascript"> 
    jQuery(document).ready(function() {
        jQuery('#mycarousel').jcarousel({
            vertical: true
        });
    });
    </script>
    That should go within the <head> section of your code. If you changed the id, change it in the code as well (mycarousel refers to the id).

    There are more configuration options available to you. You can read about them on the site.

  5. The Following User Says Thank You to Medyman For This Useful Post:

    trumpdown (10-07-2008)

  6. #5
    Join Date
    Oct 2008
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks again...Sorry for my ignorance...This saved me much time and I needed help from an elite member..

  7. #6
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Though I've been using Dynamic Drive's Java Script and other solutions for sometime now, I never registered. But today, I felt obliged to join and thank you for helping me. It's a great community and Dynamic Drive is just awesome. I Love You, DD.

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
  •