Grow your CSS skills. Land your dream job.

Anything slider link to specific slide not working.

  • # October 18, 2012 at 7:34 pm

    I am trying to set it up so that when you click on the little device icons you can go to the appropriate slide but I can’t get it working.

    I have used the code sample provided but to no avail!

    Here is a demo link:
    http://gelfuzion.com/mcafee/index-allv2.html

    # October 19, 2012 at 2:03 pm

    Hi gbucha!

    Since AnythingSlider is being initialized on “#slider”, updating the current slide should be done the same way.

    Also, I see that every slide has the same links with the same ID. ID’s should be unique. So, I would recommend just changing, or removing the ID’s and use this code:

    $(‘nav a’).click(function(){
    var n = $(this).attr(‘href’).substring(1);
    $(‘#slider’).anythingSlider(n);
    });

    # October 19, 2012 at 2:05 pm

    Killer thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".