Grow your CSS skills. Land your dream job.

Image slider help

  • # September 1, 2010 at 5:09 pm

    Hi all.

    Hopefully this is just gunna be a quick answer thing. Basically ive got a site that i’ve been doing very slowly every now and then with wordpress (1st attempt). Well i put in a jquery slider that i downloaded and it has 8 images that slide.

    Can anyone give me some info so i could lower that number to say 4 images instead ?

    I’ve looked in the scripts.js file but cant find it !!

    Cheers in advance

    # September 2, 2010 at 3:51 am

    remove last 4 slides from slider.data variable.

    # September 4, 2010 at 4:32 am

    OK cheers for the advice hardix. Ive located the slider.data, but not too sure on what to do next.

    Here is what it looks like

    var d=slider.data;
    for(var i=0;i
    $(‘#’+d.id).stop().animate({left:((i-pos)*1000)},1000,’swing’);

    ????????

    # September 7, 2010 at 12:35 pm

    can anyone help ?

    # September 9, 2010 at 1:24 pm

    in your code if you look at this lines…



    this are the slider.data is an javascript array. just remove last 4 slide from this variable.

    # September 9, 2010 at 3:26 pm

    Ahhhhhhhh i see….thanks mate.

    # September 9, 2010 at 3:37 pm

    OK so i deleted it so i only had 4 like i wanted, but now it doesnt seem to slide any more but you can kinda see the images slide underneath the one that is still

    Hmmmmm any ideas ??

    # September 10, 2010 at 1:42 am

    @hal8 after that you also need to take off



    and that will do it…

    # September 10, 2010 at 3:15 pm

    Ha. I am a doughnut !! Cheers

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

You must be logged in to reply to this topic.

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