First, you'll need to grab the code for the <<ScrollTo>> macro here and add it to your JavaScript section.
Next, instead of using the <<linkreplace>> macro, you'll have to use some code like this:
<<nobr>>
<span id="uniqueName">
<<link "Original link text.">>
<<ScrollTo "uniqueName">>
<<replace "#uniqueName">>
Replacement text.
<</replace>>
<</link>>
</span>
<</nobr>>
Or, if you don't mind having it as one long line of code, something like this:
<span id="uniqueName"><<link "Original link text.">><<ScrollTo "uniqueName">><<replace "#uniqueName">>Replacement text.<</replace>><</link>></span>
Just make sure that the <span>'s ID attribute is unique for each of these in any particular passage.
If you need to do that a lot, then you could turn that code into a macro.
Enjoy! :-)