8 Replies Latest reply on Jan 27, 2009 6:58 PM by Newsgroup_User

    Problem with links

    danthelensman
      I have a general information page on my site that is mostly all text. It is fairly long (about three times the height of my monitor) I am linking from a word on my info page to an independent image page. I would like to link back to the original paragraph of text that the the person was reading in the first place. I only know how to link back to the original page which of course looses their spot where they left off reading because it puts the heading at the very top.

      Is there a way to link back to the specific area of text that they were originally reading or is one expected to just hit the "back button?
        • 1. Re: Problem with links
          Level 7
          How many such links do you have on the long page?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "danthelensman" <webforumsuser@macromedia.com> wrote in message
          news:glkn6s$b71$1@forums.macromedia.com...
          >I have a general information page on my site that is mostly all text. It is
          > fairly long (about three times the height of my monitor) I am linking from
          > a
          > word on my info page to an independent image page. I would like to link
          > back to
          > the original paragraph of text that the the person was reading in the
          > first
          > place. I only know how to link back to the original page which of course
          > looses their spot where they left off reading because it puts the heading
          > at
          > the very top.
          >
          > Is there a way to link back to the specific area of text that they were
          > originally reading or is one expected to just hit the "back button?
          >

          • 2. Re: Problem with links
            danthelensman Level 1
            I have 9 paragraphs on the long page and I'd love to be able to link to each paragraph from different pages in the website. Right now, I'm just trying to link to 1 specific paragraph but can't fiqure out how to do it.

            Thanks for responding
            • 3. Re: Problem with links
              Level 7
              In DW Help (F1) search on "Linking to a specific place in a document"

              --

              Walt


              "danthelensman" <webforumsuser@macromedia.com> wrote in message
              news:gll3ka$q8h$1@forums.macromedia.com...
              >I have 9 paragraphs on the long page and I'd love to be able to link to
              >each
              > paragraph from different pages in the website. Right now, I'm just trying
              > to
              > link to 1 specific paragraph but can't fiqure out how to do it.
              >
              > Thanks for responding
              >


              • 4. Re: Problem with links
                Level 7
                2 step process. [1] create an anchor point to link to and [2] create a
                link that points to the anchor.

                In the long paragraph text, you may have something like this:
                <p>This is the 1st paragraph.</p>
                <p>This is the 2nd paragraph.</p>
                <p>This is the 3rd paragraph.</p>
                <p>This is the 4th paragraph.</p>

                Create anchor points using IDs, like:
                <p id="p1">This is the 1st paragraph.</p>
                <p id="p2">This is the 2nd paragraph.</p>
                <p id="p3">This is the 3rd paragraph.</p>
                <p id="p4">This is the 4th paragraph.</p>

                (Though there are bound to be many arguments about the actual name you
                use! I used p1, p2, p3, p4 as an example - but it would be better to use
                "semantic" IDs.)

                Now that the anchor points are created, create links that point to them
                - using the octothorpe (or # symbol). A link on the SAME page may be
                something like:
                <a href="#p2">Go to Paragraph 2</a>

                A link on a DIFFERENT page may be like:
                <a href="otherfile.htm#p2">Go to Paragraph 2 on this other page</a>

                --
                Alec
                Adobe Community Expert
                • 5. Re: Problem with links
                  Level 7
                  Right now, I'm just trying to
                  > link to 1 specific paragraph

                  Use a "Named Anchor".

                  --
                  Regards

                  John Waller
                  • 6. Re: Problem with links
                    danthelensman Level 1
                    Thanks for everyones help. I've tried all of your suggestions and yes I can link to another page but I can not get it to go to a specific paragraph. I'm calling it quits now. Thanks again.
                    • 7. Re: Problem with links
                      Level 7
                      If you could show us your code we could give you an answer in a jiffy!

                      --
                      Murray --- ICQ 71997575
                      Adobe Community Expert
                      (If you *MUST* email me, don't LAUGH when you do so!)
                      ==================
                      http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                      http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                      ==================


                      "danthelensman" <webforumsuser@macromedia.com> wrote in message
                      news:glo3a8$kcn$1@forums.macromedia.com...
                      > Thanks for everyones help. I've tried all of your suggestions and yes I
                      > can link to another page but I can not get it to go to a specific
                      > paragraph. I'm calling it quits now. Thanks again.

                      • 8. Re: Problem with links
                        Level 7
                        >>>I've tried all of your suggestions and yes I can link to another page but
                        >>>I can not get it to go to a specific paragraph.

                        Did you look up Named Anchors in DW Help per previous advice in this thread?

                        It's all explained there step-by-step.

                        --
                        Regards

                        John Waller