I wouldn't do it with javascript. Thats the lazy mans way out. I don't see why somebody couldn't just do the links by hand.
plus, the crawlers won't care about the javascript, so it'll still count as a link out of your site, which isn't good
SEO.
And additionally, with the increasing popularity of no-script for firefox, anybody with javascript disabled won't be counted.