CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

Linking to specific slides from navigation links. #184

Closed filmillr closed 13 years ago

filmillr commented 13 years ago

Hello,

I have been trying to figure out this issue for awhile now and cant get it to work. I want to set links to specific slides on my anythingslider...there is documentation everywhere on how to do this and I have attempted each of them. I guess one of my main confusions is where to place the new codes. In each example there is a javascript code that is usually something put like this:

""example""

Linking Directly To Slides from Static Links

Target the link using and ID or Class (or whatever), and apply a click handler. Then call the plugin function and pass it a number of the slide you are trying to link to:

$("#slide-jump").click(function(e){ $('.anythingSlider').anythingSlider(6); e.preventDefault(); });

""example""

My first questions is where do i place this new code? in my html page between Githubissues.

  • Githubissues is a development platform for aggregating issues.