View Full Version : Conveyor Slide show from right to left
nataliyaG
08-07-2005, 10:57 AM
http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm
Hi can anybody please help to use slideshow from right to left not left to right?
Thank you.
jscheuer1
08-07-2005, 02:26 PM
In the script, find the function called slideleft() and replace it with this one:
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)
}
}
nataliyaG
08-08-2005, 03:17 PM
Thank you very much John. It is work fine.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.