First as a note I am using this plugin in a Rails app. Ok I need to do two things.
The first is that the pagination that I have working through:
jQuery('.jcarousel-control a').bind('click', function() {
carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
return false;
});
needs to work without text. right now if I run a basic loop:
<% ([email protected]).each do |n| %>
<a href="#"><%= n %></a>
<% end %>
It prints 3 numbers (I have three projects available to the loop), 1 2 3. Inside the links those numbers work for navigating between the projects. But I would like to replace the number with a graphic:
<a href="#"><%= image_tag 'empty_circle.png' %></a>
that way there is a graphical representation of the pagination. Is there a way to change the javascript to accept a non-numbered/image for pagination?
The second thing I need to do is create a "current" css rule, where if its current it would load a different image
<a href="#"><%= image_tag 'full_circle.png' %></a> .
thanks for any help you can provide. I am pretty new to rails and other than plug and play I am very new to js and jquery.