Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a link or global call to specific slide starting point #40

Open
tomtranmer opened this issue Apr 30, 2012 · 7 comments
Open

Adding a link or global call to specific slide starting point #40

tomtranmer opened this issue Apr 30, 2012 · 7 comments

Comments

@tomtranmer
Copy link

Great script! Really slick and works wonderfully.

I don't know if I am missing something, but I am trying to figure out a way to create an external link to specific slides, or start the slideshow with a specific slide rather than the default first (or random).

Let me know if this is something that you have considered and I am overlooking, or is to yet supported by your great script.

Cheers,

Tom Tranmer

@arielsalminen
Copy link
Owner

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.

@tomtranmer
Copy link
Author

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)

@dominicwhittle
Copy link

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

@dominicwhittle
Copy link

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.

@Franz-Kafka
Copy link

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?

@ottogal
Copy link

ottogal commented Apr 7, 2013

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

@wedesignla
Copy link

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants