Git Product home page Git Product logo

Comments (7)

arielsalminen avatar arielsalminen commented on July 19, 2024

Random already works with the option "random: true", but right now there's no way create a link to specific slide. This will change though with the 2.0 release.

from responsiveslides.js.

tomtranmer avatar tomtranmer commented on July 19, 2024

Thanks for the update! Looking forward to the next version!

Tom Tranmer

On 2012-05-03, at 7:40 AM, Viljami Salminen wrote:

Random already works with the option "random: true", but right now there's no way create a link to specific slide. This will change though with the 2.0 release.


Reply to this email directly or view it on GitHub:
#40 (comment)

from responsiveslides.js.

dominicwhittle avatar dominicwhittle commented on July 19, 2024

Any update on a 2.0 release? Or a way to get this jump-to-particular-slide functionality in the meantime?

from responsiveslides.js.

dominicwhittle avatar dominicwhittle commented on July 19, 2024

It's not perfect, but this does the trick of jumping to specific slides in the meantime:

// <a href="#" data-index="2">Jump to position 3</a>
$('a').click( function(e){
    e.preventDefault();
    var index = $(this).data('index');
    $('ul.rslides_tabs').find('li').eq(index).find('a').click();
});

Edit: This assumes you have 'nav' set to true and you haven't changed the default 'rslides_tabs' naming scheme.

from responsiveslides.js.

Franz-Kafka avatar Franz-Kafka commented on July 19, 2024

i am also looking forward to link on a specific slide.
the hack from dominicwhittle is a good idea, but doesn't work for me (transparent navigation on left and right side).
is there any other hack i can do for jumping to a specific slide? when version 2.0 will appear?

from responsiveslides.js.

ottogal avatar ottogal commented on July 19, 2024

Issue #174 might be of interest for you. I used it with transparent navigation.

from responsiveslides.js.

wedesignla avatar wedesignla commented on July 19, 2024

any trick for this? i need to link to a current slide while the gallery is already loaded. Issue #174 has to do with passing a variable before loading. really i don't even need to pick any slide, just looking to restart entire slider.

tried this but not working. there is no with the recent demo's, so is that the problem?
('ul.rslides').find('li').eq(0).find('a').click();

from responsiveslides.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.