PDA

View Full Version : Conveyor Belt with Left and Right controls?



OptimusGeorge
02-11-2008, 07:44 PM
1) Script Title: Conveyor Belt slideshow script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

3) Describe problem:
Alright. I'm loving EVERYTHING about this script... what I need though... is 2 separate images "buttons"... one that controls left and one that controls right. So that when the user hovers over it... it changes direction to go left or go right... I checked out the button reverse direction input (http://home.comcast.net/~jscheuer1/side/conveyor_left_or_right.htm)... but when you hover over the button it functions to change it both directions. I need two separate buttons...

OptimusGeorge
02-11-2008, 08:19 PM
I made a dirty change to the javascript function changing slideReverse to leftSlide and then making the direction either 0 or 1... I'm not sure if this is okay... but it seems to work...

}
function leftSlide(){
clearInterval(lefttime)
slideDirect=0
lefttime=slideDirect? setInterval("slideright()",30) : setInterval("slideleft()",30)
}
function rightSlide(){
clearInterval(lefttime)
slideDirect=1
lefttime=slideDirect? setInterval("slideright()",30) : setInterval("slideright()",30)
}

sunnets
06-24-2008, 04:42 PM
I am trying to do the same thing but I could not find the script for reverse direction input to replace it with the code you wrote here, is there anyway I can get the code for reverse direction input
Thanks