I'm trying to get javascript to scroll the page to a target position, something like:
scrollbarxpos += (targetscrollbarxpos - scrollbarxpos) / 100.0f;
And basically keep calling that line of code until scrollbarxpos = targetscrollbarxpos.
Any idea how I can go about doing this?