1 Reply Latest reply on Nov 25, 2014 3:03 PM by sgho017

    I'm trying to create a draggable slider with four different drop zone

    1luffy

      I'm trying to create a draggable slider with four different drop zone for example: bad, ok, good, excellent with a function playing the related symbol depending on were the slider is dropped. I have the draggable slider working but haven't figured out how to play the correct symbol when the slider is dropped. Can anyone help.

       

      I should say I'using jquery for the slider.

        • 1. Re: I'm trying to create a draggable slider with four different drop zone
          sgho017

          I don't understand what you want to do. are you using drag and drop or a slider that you move on the x co-ordinates only to the different zones. if so then you need an if statement that checks collision, to do this you to create some variable which store the dimension of the slider object and the drop zones, use the  jquery  position() method to do this. then the if statement checks if the position of the slider is the same as the position of the drop zone then the two objects are touching.