Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript AnythingSlider plugin navigation problem

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27225
    jband
    Member

    I’ve customized the AnythingSlider but have just one icky problem. See example here:
    http://vangel.com/anythingslider-test/about.html

    I would like the names below the slider box to link to their respective panels within the slider. So if you click on Cat Woman under the "About Us" heading, her photo & bio will load in the slider box. Presently, the url changes in the address bar, but the requested slide does not load. Any help would be awesome. THANKS!

    (If you clear the address bar or refresh the page and enter, for example http://vangel.com/anythingslider-test/a … ml#panel-3 it will load just fine.)

    (I’m looking in the PHP code for jquery.anythingslider.js at lines 145 – 184 … but I honestly know next to no PHP. Also, don’t judge me on my css… this was originally programmed a long time ago and I’ve learned much more since then!)

    #68205
    Chris Coyier
    Keymaster

    Go here:
    https://css-tricks.com/examples/AnythingSlider/

    Look at code under "Linking directly to slides"

    #69657
    Yolise
    Member

    Hi,

    I’m afraid I don’t quite understand the Static Links instructions. Where does the js snippet go? Presumably in jquery.anythingslider.js, but anywhere within there? Does it matter?

    And what do you mean by "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"?

    I think I know what a click handler is, but I’m not sure what one would apply to it.

    Code:

    I think the only other word in there I understood was "link". :oops:

    Thanks in advance for any assistance!

    #69678
    Yolise
    Member

    Ah, found an example on the linked page and viewed the source. That was easy. :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.