Hello. I have used a featured content gallery that I fund [URL="http://css- tricks.com/startstop-slider/"]here[/URL] as a gallery on [URL="http:// www.bonsaibranding.com/riverstone/gallery.html"]a website Im working on [/URL]. I would also like the navigation/list to change with the pictures.
I understand in my head how it should work but Im struggling with the jquery. What Im trying to do is increment a variable up every time it changes over and tell the the list to highlight it using that but I cant seem to place a variable in the nth-child parenthesis. var $gallery_on = $(1); $("#gallery li:nth-child($gallery_on) a").css("color", "red"); Or should I be using the next() selector? Can anyone help? Thank yooou!