jquery - Anything Slider: How to use the .cur (class) when slide jump is activated? -


Does anyone know when using a static link to jump between the slides? How to use the square?

I'm doing a good job with my slider static link, but I would like to highlight the current active link.

Cheers
Stephen Mihan

This is my solution together. The ID of my tags is like 'Slide 1', so I created a new variable named Current Page which creates a selector that adds # slid-jump to the variable base. Context page. Then I add 'Q' class based on that variable and remove it from the current one. To get you started, add class = 'cur' to your initial link. Hope it helps, sorry that this is a little messy, but today I am in a hurry.

  base.setCurrentPage = function (page, moved) {// if (move! == wrong) basis. $ Wrapper.scrollLeft (base.singleWidth * pages); // update local variable base.currentPage = Page; $ ('# Slider n' aur ''). RemoveClass ('cur'); Var currentPageNow = '# slide-jump' + base.currentPage; $ (CurrentPageNow) .addClass ('CUR'); };  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -