jquery gallery image replacement question
perhaps i should be in the beginners section, i am not sure. i'm making some progress with jq, and have set up a little image gallery. i have thumbnails on the left, and when one is picked, a larger image of it appears at the right. i am using show and hide divs, and with 1 exception it works fine.
i have set up the code so that when a new thumb is picked, the old large image fades out (hide slow) while the new large image fades in (show slow). it is neat simultaneous effect.
the only problem is that if i pick the same image (the same thumb) it fades out and then fades back in, and i briefly have a blank area. this does not happen when a different thumb is picked (i get a cross fade in/out).
how can i make the function test to see if i am picking the same thumb, and if i am, do nothing ?