I've created a basic slider using Jquery that includes left_arrow and right_arrow div elements. These divs control the 'left' value of my #screens div, which contains a long .png image. Each screen within the slider is 543px in width.
$pr('#arrow_left').click(function () {
$pr('#screens').animate ({"left": "+=543px"}, "fast");
});
$pr('#arrow_right').click(function () {
$pr('#screens').animate ({"left": "-=543px"}, "fast");
});
Although the sliding action works smoothly, I now want to establish minimum and maximum values for the 'left' property of #screens so that users cannot navigate beyond the boundaries of the image in either direction.