I'm using a javascript slideshow called TinySlideshow (creators' page , demo). Is there a way to tell which photo in an index is currently being shown such that I can add a context based link (e.g. a "Share this" button that allows someone to send the current photo to an email)
I have adapted the code a bit to work in Ruby on Rails with Paperclip, using a loop:
<ul id="slideshow">
<%= @images.each do |image| %>
<li>
<h3><%= image.theme%></h3>
<span><%= image.photo.url(:large)%></span>
<p></p>
<a href=" <%= upload_image_path(image)%>"><img src="<%= image.photo.url(:thumb)%>" alt="Sea Turtle" /></a>
</li>
<%end%>
</ul>
Thanks for any advice you may have, and let me know if you'd like more information!