jQuery:
<div id="buttons">
<input type="button" value="Вверх" name="Top">
<input type="button" value="Вправо" name="Right">
<input type="button" value="Вниз" name="Bottom">
<input type="button" value="Влево" name="Left">
</div>
<script>
$('#buttons input').bind('click', 'function()
{
var a = $('id image..').css('margin'+this.name)+1;
$('id image..').css('margin'+this.name', a);
})
</script>
|