http://frontend.iwssites.com/intellichoice/home.html
I am trying to add functionality to the main slider on this page. Right now there are left/right arrows and grey/blue boxes (below) that let the user navigate between 4 slides (using two image for the 4 slides–so they repeat). What I want to do is add the same functionality to the 4 box graphics (nextaire, save energy, etc.) so that when a user clicks on one of those graphics they are taken to that slide. As well, want the blue/grey box below to correspond with the slide. I do have “on/blue” states for each graphic as well (what the nextaire one has now).
This is kinda tricky and my jquery skills aren’t super up to par. I was thinking that perhaps there was a way in the functions.js file to create this.
Okay, this actually isn’t all that difficult. You have a couple options, depending on how you implemented the slider (I don’t have time to look in your code file, sorry):
Here is the animate function for the first one:
The second one would be very similar, but with the extra condition/handler that we talked about and with
margin-leftinstead of justleft. I’ll leave that one to you to code, unless you need more help 😉Good Luck! 🙂