I am trying to animate a div to move to top when I click a link. And when I click another link it should animate back to it;s original position and fade out.
I uses jquery to center the div.. now the Point is, when i click a link it works fine, say 40 px up.. And I set to move that div down when I click the second link..
The problem is what if I click the second link, the div image moves down as I wrote the event handler for it..
How do I detect that div has moved before or not? Like when I click the first link and then the second the div operates fine.. but if I click the second one, it goes down and it disappears from screen.