$(function () { $(".movie_openers").click(function () { this.style.backgroundPositionY = $(this).css("backgroundPositionY") === "-14px" ? "2px":"-14px"; }); });