Results 1 to 6 of 6

Thread: horizontal scrollpane

  1. #1
    Join Date
    Oct 2012
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default horizontal scrollpane

    I need a image content (cms) horizontal jscrollpane.
    The example http://tmcdomains.com/jScrollPane/themes/lozenge/
    with images works good, but the images are first placed on the whole wide (max-width: 2400px, in reality endless) and then only in the second row – that is not what I want/need.

    That is what I need:
    The first 50 images should first placed on the actually/visible site (width: 1200px) – row by row.
    And when the 51 imagae should placed after the last from the top row.

    simple example:
    --------------------------------------------------------------------
    1-image 2-image 3-image || 7-image 8-image 9-image ||.................
    4-image 5-image 6-image || 10-image …................... ||................
    -------------------------------------------------------------------
    .........1200px.................|..............1200px...............|......1200px...
    -> scroll -> scroll -> scroll -> -> scroll -> scroll -> scroll -> -> scroll ->


    I don't now, how many images are loaded, because this is a CMS-site.
    I think this could realize with javaScript/jQuery – but I don't know how (because I am a newbie)

    Thanks much!

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Try here:
    http://www.htmldrive.net/items/show/...-Photo-Gallery
    I know it's not 50 images, but I'm sure there's a way to customise it.
    Edit:
    this appears more to your liking
    Last edited by bernie1227; 11-10-2012 at 11:39 PM.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. The Following User Says Thank You to bernie1227 For This Useful Post:

    papaver (11-12-2012)

  4. #3
    Join Date
    Oct 2012
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks Bernie - the first link (jQuery Large Thumb Gallery) could be the right way.
    But it is a CMS-Wordpress-Site, and so the customer loads the images up.
    How can I realize it, to generate a new 6-Images-group-Class automatically?
    I am a javascript-Newbie and have no Idea how to realize this.
    Thanks

  5. #4
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    What do you mean by automatically generating the images-group-class automatically? Do you mean to automatically generate the image paths? If so, where are these paths coming from?
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  6. #5
    Join Date
    Oct 2012
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    The customer loads the images over the wordpress-dashboard. I display it with
    Code:
    <?php $image = rwmb_meta( 'metabox_screenshot2' );
    	if ( $image != '' ) {?> 
    	<a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image($image); ?></a>
    	<?php } ?>
    	 <?php endwhile; endif; ?>
    The <ul class="group"> from the (jQuery Large Thumb Gallery-)index.html includes 6 images.
    My customer will load more then 6 images, probably more than 70 images and so I need a solution for this.
    The solution could be javaScript, that generates every 6 Images a new <ul class="group"> - but I don't know how I realize this, because I don't know enough of javaScript

  7. #6
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    You could use php to generate the code by creating it in a loop and then echoing it into the overall div?
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Similar Threads

  1. horizontal <li>
    By chechu in forum CSS
    Replies: 2
    Last Post: 02-08-2012, 10:49 PM
  2. Replies: 4
    Last Post: 07-06-2010, 07:34 PM
  3. Need help with horizontal css nav
    By webmiss in forum CSS
    Replies: 1
    Last Post: 07-11-2009, 09:44 PM
  4. CSS horizontal menu!
    By tomandjerry in forum CSS
    Replies: 1
    Last Post: 11-21-2007, 02:13 PM
  5. Replies: 2
    Last Post: 01-06-2006, 07:21 PM

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
  •