Results 1 to 6 of 6

Thread: Step Carousel Viewer navigation buttons

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Step Carousel Viewer navigation buttons

    1) Script Title: Step Carousel Viewer

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

    3) Describe problem: I would really like it so that when you are on the last panel and click "forward 1 panel" it does not send you to the first panel and vice versa for the "back 1 panel", rather I would like for it to simply not be clickable, or at least not send you away from the current panel. Any help is greatly appreciated. Thanks.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Find this part in your stepcarousel.js:
    Code:
    stepBy:function(galleryid, steps){
    		var config=stepcarousel.configholder[galleryid]
    		if (typeof config=="undefined"){
    			alert("There's an error with your set up of Carousel Viewer \""+galleryid+ "\"!")
    			return
    		}
    		var direction=(steps>0)? 'forward' : 'back' //If "steps" is negative, that means backwards
    		var pindex=config.currentpanel+steps //index of panel to stop at
    		pindex=(pindex>config.paneloffsets.length-1 || pindex<0 && pindex-steps>0)? 0 : (pindex<0)? config.paneloffsets.length+steps : pindex //take into account end or starting panel and step direction 
    		var endpoint=config.paneloffsets[pindex]+(pindex==0? 0 : config.beltoffset) //left distance for Belt DIV to travel to
    		if (pindex==0 && direction=='forward' || config.currentpanel==0 && direction=='back'){ //decide whether to apply "push pull" effect
    			config.$belt.animate({left: -config.paneloffsets[config.currentpanel]-(direction=='forward'? 100 : -30)+'px'}, 'normal', function(){
    				config.$belt.animate({left: -endpoint+'px'}, 'slow', function(){config.onslideaction(this)})
    			})
    		}
    		else
    			config.$belt.animate({left: -endpoint+'px'}, 'slow', function(){config.onslideaction(this)})
    		config.currentpanel=pindex
    		this.statusreport(galleryid)
    	},
    Replace highlighted with:
    Code:
    (config.paneloffsets.length-1)
    Hope it helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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

    ic408 (07-22-2008)

  4. #3
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help! I got it to work just like I wanted.

  5. #4
    Join Date
    Aug 2008
    Location
    Jackson, MS
    Posts
    13
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Exclamation Panels are stuck together::Step Carousel



    Can anyone out there please help. Last friday I DL the script and installed it on a website. I continued to add things to the content and sunddenly the panels are stuck on top of each other. Yesterday I erased the whole page and started from scratch. No matter what I do each panel keeps stacking on each other. I even viewed source on a page that a found that had the script and went line by line. I am sure it is something simple. I just need another pair of eyes. (also I am just a master at copy and paste) I am not the best programmer.

    This is the link to the page I am trying to fix.


    http://www.cucad.org/main.html

    any help would be greatly appreciated.

  6. #5
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You should have created a new thread with this since this is relatively unrelated to the current thread. Also, when posting to another thread, see the posting format.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  7. #6
    Join Date
    Aug 2008
    Location
    Jackson, MS
    Posts
    13
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    My apologies... I am new to forums...and this was the only thing that I found about the step carousel viewer. Can someone please show me how to start a new thread or point me to the instructions. I looked at the rules... but it does not show how to start a new thread. Have mercy on a [Newbie]

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
  •