0
Welcome Guest! Login
0 items Join Now

Links to parts of article in same page

  • Links to parts of article in same page

    Posted 16 years 8 months ago
    • Hello

      I have been asked to create an article that will have a list of section headings at the top of the page with the main body of text below

      I want to give the visitor the option of clicking a section heading (at the top of the page) that will then take you to that part of the article without the need to scroll through the whole page

      I have looked at the JCE editor and have not seen a way to do this yet

      Thanks
    • Last Edit: 16 years 8 months ago by Julian Campbell.
  • Re: Links to parts of article in same page

    Posted 16 years 8 months ago
    • Hello Julian;

      Hopefully i've understood your requirements and forgive me if I didn't. This probably won't be the most efficient way of doing it, but you could use a simple html Anchor tag. If i'm correct you'll need to add the anchor's to the text in the source but everything else should work correctly.

      Here's how it the overall code would look and I'll explain it in more detail below:
      <a href="#article1">Article 1</a>
      <a href="#article2">Article 2</a>
       
      Randome text placed here to fill in the space. Yada, Yada, Yada.
       
      <a name="article1">Article 1</a>
      Put my text here for Article 1
      Put my text here for Article 1
       
      <a name="article2">Article 2</a>
      Put my text here for Article 2
      Put my text here for Article 2

      Explaination:

      <a href="#article1"> This is a regular hyperlink, but it links to the anchour using the anchour's name "article1". Ensure that you use the "#" infront of the anchour's name.


      <a name="article1">Article 1</a> This is creating the anchour and giving it it's name. In this example, we gave the anchour the name of "article1".

      More info on this can be found here: www.w3schools.com/HTML/html_links.asp

      Kind regards;
    • Debug Bar - for IE ¦ Firebug - for FireFox

      In the end you will only be remembered for what you have done with the time that you have had.
  • Re: Links to parts of article in same page

    Posted 16 years 8 months ago
    • Works well

      exactly what I needed

      Thanks again
  • Re: Links to parts of article in same page

    Posted 16 years 8 months ago

Time to create page: 0.054 seconds