<div id = "scorecardTwo">
<span id = "dealHolder"><a href="some/link">some text</a></span>
<br />
<span id = "scoreHolder">some text</span>
<br />
<button type="button" id="moveLeft">Left</button> <button type="button" id="moveRight">Right</button>
</div>
jquery(目前):
$("#scorecardTwo").fadeIn("slow");
$("#moveLeft").bind("click", function() {
$("#scorecardTwo").animate({"right":"+=76%"}, "slow");
// how to stop animation if offset is less than appropriate number?
});
$("#moveRight").bind("click", function() {
$("#scorecardTwo").animate({"right" : "-=76%"}, "slow");
// how to stop animation if offset is less than appropriate number?
});