jQuery custom lighbox
jQuery custom lighbox
Out of context: Reply #25
- Started
- Last post
- 30 Responses
- acescence0
you've already got the total in the length of your imgLinks var
the position of the clicked one can be discovered thusly..
var index = $('a[rel^=imageViewer]').index(t...but it seems you're already tracking which it is in your code by setting an attribute on line 56...
link.attr({'itsPosition': index});
- index( this );acescence
- I tried various things and failed, hahajuhls
- Something like this?
They all come up as -1
http://pastebin.com/…juhls - I know I have to add somethingjuhls
- that's not going to work as you're off in some other function, "this" isn't referring to the clicked objectacescence
- except I have to make it say "image whatever of whatever"juhls
- right now I am placing it in the var loadImagejuhls