Results 1 to 2 of 2

Thread: Need help with Step Carousel Viewer

  1. #1
    Join Date
    Nov 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with Step Carousel Viewer

    1) Script Title: Step Carousel Viewer

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

    3) Describe problem:

    The script currently allows for text to be output for the image number displaying. I would also like for a hidden input tag in the html file to be updated with the image number as well, but am running into issues trying to modify the script to allow for that.

    Any help is appreciated.

  2. #2
    Join Date
    Nov 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, got it finally.

    For anyone else wanting to do this I am pasting what I did below.

    Added:
    Code:
    config.$usepic.html('<input type="hidden" name="usepic" value="' + valuearray[0] + '">')
    directly after:

    Code:
    for (var i=0; i<config.statusvars.length; i++){
    window[config.statusvars[i]]=valuearray[i] //Define variable (with user specified name) and set to one of the status values
    config.$statusobjs[i].text(valuearray[i]+" ") //Populate element on page with ID="user specified name" with one of the status values
    then added:

    Code:
    	usepicclass: 'usepic',
    to the stepcarousel.setup() initialization script.

    then added:

    Code:
    config.$usepic=config.$gallery.find('.'+config.usepicclass)
    after this line:

    Code:
    config.$belt=config.$gallery.find('.'+config.beltclass) //Find Belt DIV that contains all the panels
    in the html file simply add:

    Code:
    <div class="usepic" style="magin:0px;padding:0px;"></div>
    just after the ending </div> for the belt div and before the ending </div> of your main block.

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
  •