Share Your Ideas
What has worked for you? Please
contact us to share your ideas on how to get the most from your subscription to Home & Family Finance
Resource Center, and send article ideas and questions about content to the editors.
How to code an HTML link that takes a viewer somewhere other than the top of a page
Suppose you want to connect HFFRC's "At your serviceelectronically" button to a description of your ATM card. Let's
say your root URL is "www.mycu.org/" and the root relative address of your ATM page is "product2.html".
To set up a link to the top of the destination page, your HFFRC linking script should contain the following lines:
root= escape("www.mycu.org")
...
electronic= escape("product2.html")
However, suppose your ATM card description is halfway down that page. It's easy to enable your members to jump directly to the description with an
HTML "name tag" or "anchor"here's how:
Let's make this name tag:
<a name="atm"> </a>
(The fact that nothing appears between the >< symbols in the code means that the name tag is invisible on the Web page.)
Insert the name tag in the destination page's HTML source code just before the ATM section begins.
To set up a link to that point on the page, put the following line in your HFFRC linking script:
electronic= escape("product2.html#atm")
Now the electronic services button will take members directly to the ATM section of the page.
|