Results 1 to 2 of 2

Thread: Flexi Slideshow

  1. #1
    Join Date
    Apr 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flexi Slideshow

    Hi

    I'm using the Flexi slideshow. I'd like to know how I can set a total number for the image rotations. I would rather the images rotate twice and then stop.

    Any idea how I can set a limit for this?

    Thanks!
    Lee

  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

    OK, add this line:

    Code:
    //configure the below to determine number of rotations (0 = unlimited)
    var rotlimit=2
    just above this line:

    Code:
    ////Do not edit pass this line////////////////
    add this line:

    Code:
    var cntrot=0
    just above this line:

    Code:
    function rotateimages(){
    replace this line:

    Code:
    if (currentslide==variableslide.length-1) currentslide=0
    with these lines:

    Code:
    if (currentslide==variableslide.length-1){
     cntrot++
     if (cntrot==rotlimit)
     return;
     else currentslide=0
     }
    That's it!
    - 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
  •