Greetings sample or http://website.com/sample/1/show/
Beneath the image, there is a button that says click me
.
I have made some slight modifications. You can refer to the previous post for a demonstration.
Highly recommended reads on APIs:
1) http://api.jquery.com/event.preventDefault/
2) http://api.jquery.com/animate/
I suggest checking out both of these resources.
preventDefault:
Calling this method will prevent the default action of the event from being triggered, meaning clicked anchors won't navigate to a new URL. Use event.isDefaultPrevented() to check if this method has been called by an event handler triggered by the event.
Code
$('.announcement_panel_button').click(function() {
$('#site_logo').animate({
'margin-top': +50
}, 500);
// e.preventDefault();
});