Forum Moderators: open
If google should see the link you must make a server Side include. Javascript is rendered/included on client/Browser side.
Read the Google FAQ
[webmasterworld.com...]
Take whatever's being done in Javascript and do it half in Javascript -- put the "needs to be up to date" stuff in the Javascript, but include a "courtesy of example.com" link in regular text. That way, Google reads it, and readers see it even if they're not running Javascript.
An example of how it do it here [beerdates.com]. Only one line in each paragraph is actually javascripted.
Alternately, include a NOSCRIPT element that contains a link to your sight.