Hi, How can I bind this function to all image tag ?
var img_width = $('#slide img:visible').width(); var frame_width = $('#slide img:visible').parent().width(); var target_width = (frame_width-img_width)/2; $('#slide img:visible').css({'left':target_width}); appreciate the help.