Results 1 to 2 of 2

Thread: How to get Continious Slideshow to work with my other code?

  1. #1
    Join Date
    Jan 2010
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile How to get Continious Slideshow to work with my other code?

    Continious Slideshow : http://www.dynamicdrive.com/dynamici...lslideshow.htm

    How can I get this code to work on the code I already have? http://www.escapebetweenthepages.com/glider/1.html I have asked a couple other times, but not sure I asked it correctly so someone could understand me...so I am trying to ask it again a different way. Thank you

  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

    Either make the images larger (get rid of the highlighted here and for the other images):

    Code:
    <img src="http://i30.tinypic.com/531q3n.jpg"  width="75" height="90"/>
    or make their display area (the .stepcarousel style selector's width) for them smaller:

    Code:
    .stepcarousel{
    position: relative; /*leave this value alone*/
    border: 1px solid black;
    overflow: scroll; /*leave this value alone*/
    width: 75px; /*Width of Carousel Viewer itself*/
    height: 100px; /*Height should enough to fit largest content's height*/
    }
    so that only one image can be seen at a time. Also set the wraparound to true:

    Code:
    stepcarousel.setup({
    	galleryid: 'mygallery', //id of carousel DIV
    	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    	panelclass: 'panel', //class of panel DIVs each holding content
    	autostep: {enable:true, moveby:1, pause:3000},
    	panelbehavior: {speed:500, wraparound:true, wrapbehavior:'slide', persist:true},
    	defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://escapebetweenthepages.com/glider/leftnav.gif', -23, 40], rightnav: ['http://escapebetweenthepages.com/glider/rightnav.gif', 0, 40]},
    	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    	contenttype: ['inline'], //content setting ['inline'] or ['ajax', 'path_to_external_file']
    	oninit:function(){
    	 $contentcontainer=jQuery('#relatedcontent') //reference DIV used to contain related content
    	 $posleft=$contentcontainer.position().left
    	},
    	onslide:function(){
    	 //Update DIV with this panel's related content (notice imageA-1 as the array index, as imageA starts at 1, while array at 0
    	 $contentcontainer.html(contentarray[statusA-1])
    	 $contentcontainer.css({left:'100%'}).animate({left:0})
    	}
    })
    - John
    ________________________

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

Similar Threads

  1. Replies: 2
    Last Post: 10-19-2010, 11:15 AM
  2. why my jshooter code not work probably?
    By john.stalin.java in forum Java
    Replies: 2
    Last Post: 07-11-2010, 08:44 PM
  3. a little help getting a code work
    By shamgu4 in forum CSS
    Replies: 2
    Last Post: 06-24-2008, 06:43 PM
  4. Can anyone make this code work in FF and IE7?
    By Koster in forum JavaScript
    Replies: 0
    Last Post: 12-11-2006, 05:11 PM
  5. This code don't work , why?
    By winpeace in forum JavaScript
    Replies: 4
    Last Post: 11-13-2006, 10:11 AM

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
  •