I think I'm missing some skills here - if I paste <script src="../../../duckmenu/FloatingMenu.js" type="text/javascript"></script> into the snippet, what do I do with the JavaScript?
you can't use wyodor's javascript as-is, because wyodor hard-coded
id2 in the code.
you need to change the code, but that is not practical... because:
1) you have no control on how iweb assigns id attribute when you add an element, you can find this id after publishing - as wyodor did.
2) then you have to change the code from page to page according to the id, this is not very scalable.
I call this multi-step-processing.
-------------
that said, you can do all that with javascript... element id can be determined without post publish, but will need some nifty scheme and fancy javascript.
here is my example:
http://cyclosaurus.com/iWeb3Widgets/Anchors/Anchors.html
I identify different places on the page by search thru it with javascript... look for #(some number)# and scroll to it.
everything is linked to the example.