Skip to navigation
How to change only y-axis for background-position in jquery
07.12.13
Reply
Anonymous
$(".image_list li").live('mouseover',function(e) { $(".image_list li").each(function (i) { $(this).css('background-position', function(i,v) { return v.replace(/-?\d+px$/, '0px'); }); }) $(this).css('background-position', function(i,v) { return v.replace(/-?\d+px$/, '-50px'); }); });
07.12.13
Reply
Anonymous
Information Epoch 1732492202
Silence is golden.
Home
Notebook
Contact us