Add a number (counter) display on deep-link thumbnails

jmiller's Avatar

jmiller

18 Dec, 2012 08:17 PM

Is there a simple way I can overlay a numerical counter on the deep-link thumbnails? Ideally this would be the same number that is appended to the URL for the deep links, but I would like to show it maybe in the corner of each thumbnail as well. Please let me know if you have any suggestions about how I can accomplish this. Thanks again!

  1. Support Staff 1 Posted by Dmytro Semenov on 18 Dec, 2012 09:33 PM

    Dmytro Semenov's Avatar

    Hi,

    Just append them via jQuery, directly after slider initialization.

    var i = 1;
    jQuery('.rsThumb').each(function() {
       $(this).prepend(i++);
    });
    

    Dmitry

  2. 2 Posted by jmiller on 18 Dec, 2012 11:42 PM

    jmiller's Avatar

    Perfect, thank you!

  3. jmiller closed this discussion on 18 Dec, 2012 11:42 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac