Results 1 to 3 of 3

Thread: Conveyor Slide show from right to left

  1. #1
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conveyor Slide show from right to left

    http://www.dynamicdrive.com/dynamici...rightslide.htm

    Hi can anybody please help to use slideshow from right to left not left to right?

    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

    In the script, find the function called slideleft() and replace it with this one:
    Code:
    function slideleft(){
    if (iedom){
    if (parseInt(cross_slide.style.left)<(actualwidth+8))
    cross_slide.style.left=parseInt(cross_slide.style.left)+copyspeed+"px"
    else
    cross_slide.style.left=parseInt(cross_slide2.style.left)+(actualwidth+slideshowgap)*(-1)+"px"
    
    if (parseInt(cross_slide2.style.left)<(actualwidth+8))
    cross_slide2.style.left=parseInt(cross_slide2.style.left)+copyspeed+"px"
    else
    cross_slide2.style.left=parseInt(cross_slide.style.left)+(actualwidth+slideshowgap)*(-1)+"px"
    
    }
    else if (document.layers){
    if (ns_slide.left<(actualwidth+8))
    ns_slide.left+=copyspeed
    else
    ns_slide.left=ns_slide2.left+(actualwidth+slideshowgap)*(-1)
    
    if (ns_slide2.left<(actualwidth+8))
    ns_slide2.left+=copyspeed
    else
    ns_slide2.left=ns_slide.left+(actualwidth+slideshowgap)*(-1)
    }
    }
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much John. It is work fine.

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
  •