jQuery is very powerful :)
If you want to animate elements, jQuery has a convenient built-in .animate() function that you can use. Check it out here: http://api.jquery.com/animate/
I've provided a modified code example below based on the jQuery documentation and also created a working jsFiddle demo for you to try out: http://jsfiddle.net/Damien_at_SF/HRBkN/
To style the image using CSS:
img.block {
position:absolute;
left:50px;
top:50px;
margin:5px;
}
The HTML structure:
<button id="left">left</button> <button id="right">right</button>
<img src="http://jsfiddle.net/img/logo.png" class="block" />
JavaScript code for moving the absolutely positioned image:
$("#right").click(function(){
$(".block").animate({"left": "+=50px"}, "slow");
});
$("#left").click(function(){
$(".block").animate({"left": "-=50px"}, "slow");
});
JavaScript code for moving the relatively/statically positioned image:
$("#right").click(function(){
$(".block").animate({"margin-left": "+=50px"}, "slow");
});
$("#left").click(function(){
$(".block").animate({"margin-left": "-=50px"}, "slow");
});
I hope this information proves useful to you :)