On Jan 12, 2010, at 7:32 AM, knal wrote:
@Brian
I have my images in an array (retrieved from the source, thanks for
the tip)
When i read the SRC from the current image, i want to know it's
location in the array.
This way i could either subtract 1 or add 1 to the current indexkey so
i know what image
was before or comes next.
Hope it's kind of clear, i don't completely know how to explain...
You could use $.inArray()
something like:
$.inArray('/some/src/value.jpg', imgSrc);
more info:
http://api.jquery.com/jQuery.inArray/
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com