Closed Thread
Results 1 to 5 of 5

Thread: Linking one word to another on same page

  1. #1
    PC101's Avatar
    PC101 is offline Learning Programmer
    Join Date
    Sep 2006
    Posts
    86
    Rep Power
    0

    Linking one word to another on same page

    Howdy!

    So, I've finally added a Glossary to PC101...

    http://www.pc101.com/index.php?page=glossary

    but I don't know how to link (cross reference) the words on bold.

    For example, the first word applet has three words in its definition that are also in bold... ActiveX, Java and web. Bold is to mean that word is also defined elsewhere in the glossary. SO, I want to add a link that will take you to that word elsewhere in the glossary.

    How do I do this??

    Thanks!

    Lyte

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    brackett is offline Programmer
    Join Date
    May 2006
    Posts
    192
    Rep Power
    22
    Notwithstanding the fact that I didn't see "ActiveX" in the glossary, you want to use Anchor tags. The easiest way to do it would be:
    Code:
    <dt id="applet"><b>applet</b>
    <dd>...<a href="#ActiveX">ActiveX</a> 
    or <a href="#Java">Java</a>-enabled <a href="#web">web</a> browser.
    
    <dt id="Java"><b>Java</b>
    <dd>...applications (<a href="#applet">applets</a>)
    Which just id's your existing definition terms, and uses that as an anchor reference. Alternatively, you can name an arbitrary anchor like:
    Code:
    <a name="anchorTag">AnchorText</a>
    Last edited by brackett; 09-20-2006 at 06:56 AM.

  4. #3
    PC101's Avatar
    PC101 is offline Learning Programmer
    Join Date
    Sep 2006
    Posts
    86
    Rep Power
    0
    Kewl! Thanks! Yeah, there are quite a few terms that need to be added.

    How do the arbitrary anchor tags work? I see the code that you've provide but can you give me an example of the code for point A... "java" within the applet definition... and the code for Point B.... "java" down the page?

    Is there a benefit to using one way over another?

    Many thanks!

    Lyte

    EDIT: I just discovered a neat way to "BookMark" a word using FrontPage and then when you highlight a word to add the link, you can either use a URL or choose a word from those that you've Bookmarked! I think it does the same thing but it a bit more automated than all that coding I thought I would have to do!
    Last edited by PC101; 09-20-2006 at 04:35 PM.

  5. #4
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    See this post:-

    http://forum.codecall.net/html-xhtml...arts-page.html

    Its like yours but instead this is that famous "go to the top" its the same concept!!

  6. #5
    PC101's Avatar
    PC101 is offline Learning Programmer
    Join Date
    Sep 2006
    Posts
    86
    Rep Power
    0
    Awesome!

    And... this gives me an idea how to add an A,B,C,D at the top with links that will allow people to jump to the section they want... vs. having to scroll down!

    Lyte
    Last edited by PC101; 09-21-2006 at 10:41 AM.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12-06-2010, 04:45 PM
  2. Replies: 1
    Last Post: 06-02-2010, 05:28 PM
  3. drop down menu - that loads page in the same page!
    By farhad in forum JavaScript and CSS
    Replies: 7
    Last Post: 03-30-2010, 02:55 PM
  4. Replies: 1
    Last Post: 12-14-2009, 10:42 AM
  5. How to open a page inside a page??Plz help
    By amrosama in forum ASP, ASP.NET and Coldfusion
    Replies: 18
    Last Post: 02-03-2009, 12:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts