It works but at the moment I would have to change the id of each thumbnail and create a new function for that particular thumbnail.

any advice?

07-19-2013, 06:33 AM

mao3

You could use a class selector instead of an id selector. So all thumbnails would have the same class attribute, and inside the function you can use $(this).attr("src") to distinguish between the thumbnails.

You could use a class selector instead of an id selector. So all thumbnails would have the same class attribute, and inside the function you can use $(this).attr("src") to distinguish between the thumbnails.