if you're able to program the rotary wheel, you've gotten a good taste of javascript already. If you're looking for syntax and structure information, try dialing up W3Schools on google. They have a pretty good reference and getting started section for Javascript. Considering you come from the Basic world, you'll find javascript to be seriously lacking in verbocity; other than that a loop is a loop and an if statement is still an if statement!
Regarding slow scrolling the rotary wheel: It can be done! Before jumping into velocity control for the wheel: The reason the scroll wheel accelerates is based on the fact that it reports how many clicks have passed each second. So if you get rotary happy and spin the little bugger quickly the first time it might skip forward as much as 4 clicks in one second; whereas if you give it a gentle nudge it may report 0 or 1. Put a governor in your onRotary function such that if (clicks >=1) {clicks = 1}. With the governor in place, no matter how fast you spin the rotary wheel it will always click forward one click at a time.
Hope this helps!
Cheers // Jason
You can hide almost anything until you have to put the drywall up!