Results 1 to 2 of 2

Thread: Using Pagination Links with Ultimate Fade-in slideshow (v2.4)

  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using Pagination Links with Ultimate Fade-in slideshow (v2.4)

    Ultimate Fade-in slideshow (v2.4)
    http://www.dynamicdrive.com/dynamici...nslideshow.htm



    **How do I change the the following script for the fade in slideshow to incorporate pagination links instead of "prev" and "next"?


    showslide:function(keyword){
    var slideshow=this
    var setting=slideshow.setting
    if (setting.displaymode.type=="auto" && setting.ismouseover && setting.currentstep<=setting.totalsteps){ //if slideshow in autoplay mode and mouse is over it, pause it
    setting.playtimer=setTimeout(function(){slideshow.showslide('next')}, setting.displaymode.pause)
    return
    }
    var totalimages=setting.imagearray.length
    var imgindex=(keyword=="next")? (setting.curimage<totalimages-1? setting.curimage+1 : 0)
    : (keyword=="prev")? (setting.curimage>0? setting.curimage-1 : totalimages-1)
    : Math.min(keyword, totalimages-1)
    var $slideimage=setting.$gallerylayers.eq(setting.bglayer).find('img').hide().eq(imgindex).show() //hide all images except current one
    var imgdimensions=[$slideimage.width(), $slideimage.height()] //center align image
    $slideimage.css({marginLeft: (imgdimensions[0]>0 && imgdimensions[0]<setting.dimensions[0])? setting.dimensions[0]/2-imgdimensions[0]/2 : 0})
    $slideimage.css({marginTop: (imgdimensions[1]>0 && imgdimensions[1]<setting.dimensions[1])? setting.dimensions[1]/2-imgdimensions[1]/2 : 0})
    if (setting.descreveal=="peekaboo" && setting.longestdesc!=""){ //if descreveal is set to "peekaboo", make sure description panel is hidden before next slide is shown
    clearTimeout(setting.hidedesctimer) //clear hide desc panel timer
    slideshow.showhidedescpanel('hide', 0) //and hide it immediately
    }

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,136
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    - John
    ________________________

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

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
  •