[Nfb-web] Linking to specific page sections from other pages

Lloyd Rasmussen lras at sprynet.com
Wed Jul 11 20:34:39 CDT 2007


You can put an id into any kind of element, including a heading.  And the
syntax for a combination of a URL and a "fragment identifier" is something
like:
  http://www.example.com/something.htm#p1
where p1 is the id you put on that heading.  Ids like this must start with
one or more letters and may contain numbers.  The number sign separates the
URL from the fragment identifier.  I hope this helps.

You can check the "Know Your rights" page of the NFB of Maryland at
  http://www.nfbmd.org/rights/rights.htm
to see how I used some of these anchors as internal links.  But a web page
could link to any of those id's from somewhere off that page, as I described
above.

Lloyd Rasmussen, Kensington, Maryland
Home:  http://lras.home.sprynet.com
Work:  http://www.loc.gov/nls
 
> -----Original Message-----
> From: nfb-web-bounces at nfbnet.org [mailto:nfb-web-bounces at nfbnet.org] On
> Behalf Of Peter Donahue
> Sent: Wednesday, July 11, 2007 8:40 PM
> To: NFB Webmaster's List
> Subject: Re: [Nfb-web] Linking to specific page sections from other pages
> 
> Hello Bryan and listers,
> 
>     I'm reading this as a situation in which one creates named anchors to
> jump to specific sections on the same page. What I'm wanting to do is link
> to a specific section from a page such as a, "Convention Round-up" page to
> a
> section of an entirely different page such as the, "2007 Advocacy
> Seminar."
> This page would have headers listing the beginning of the archived
> material
> related to each session. There were two sessions of this seminar.
> 
>     The convention round-up page would include links reading this way:
> 2007 Advocacy Seminar, Session One, (Archive)
> 2007 Advocacy Seminar, Session One, (Audio)
> 2007 Advocacy Seminar, Session Two, (Archive)
> 2007 Advocacy Seminar, Session Two, (Audio)
> 
>     When the visitor selects the:
> 2007 Advocacy Seminar, Session One, (Archive)
> 
>     They'll be taken to the top of the page at the beginning of the
> archive
> for Session One.
> 
>     Provided I can get the code to allow me to do this when the visitor
> selects:
> 2007 Advocacy Seminar, Session Two, (Archive)
> 
>     ?They would land on the heading labeled, "Session Two" instead of at
> the
> top of the page where the Session One heading appears. Again they're
> coming
> from another page, not from a named anchor on the same page. Links to the
> complete session audio would appear on both pages allowing the visitor to
> launch the audio for either session from both pages. Hope this clarrifies
> what I'm trying to do.
> 
> Peter Donahue
> 
> 
> ----- Original Message -----
> From: "Bryan Schulz" <b.schulz at sbcglobal.net>
> To: "NFB Webmaster's List" <nfb-web at nfbnet.org>
> Sent: Wednesday, July 11, 2007 6:11 PM
> Subject: Re: [Nfb-web] Linking to specific page sections from other pages
> 
> 
> Peter,
> 
> Tell me if this makes sense:
> 
> 
> above first paragraph:
> <a name="top">Bryan's Die-cast Drag Car Collection</a>
> title:
> Bryan's Die-cast Drag Car Collection
> 
> first paragraph:
> The tables shown below list the
> Top Fuel,
> link to jump to the funny car section:
> <a href="diecast.htm#fc">Funny Car</a>
> Funny Car,
> and
> Pro Stock
> car's in my stable.
> 
> first section:
> Top Fuel
> 
> Table with 7 columns and 33 rows
> after each section content:
> jump back up to the list of sections at the top:
> <a href="diecast.htm#top">Back to top</a>
> 
> just above where you want to jump to:
> <a name="fc">Funny Car</a>
> Funny Car
> 
> Table with 7 columns and 40 rows
> 
> after each section content:
> jump back up to the list of sections at the top:
> <a href="diecast.htm#top">Back to top</a>
> 
> The example was to jump down past the top fuel table to the list of funny
> cars and then hit the link to jump back up to the intro paragraph.
> If it was confusing, check out the page at:
> http://www.best-acts.com/aafc/diecast.html
> Bryan
> 
> 
> ----- Original Message -----
> From: "Peter Donahue" <pdonahue1 at sbcglobal.net>
> To: <nfb-web at nfbnet.org>
> Cc: <blindwebbers at yahoogroups.com>
> Sent: Wednesday, July 11, 2007 5:10 PM
> Subject: [Nfb-web] Linking to specific page sections from other pages
> 
> 
> > Good afternoon everyone,
> >
> >    Now is as good a time as any to ask this question. I have an archive
> > I'm
> > creating which will be added to several Web sites I'm working on over
> the
> > next few months. It concerns a seminar I've been asked to prepare for
> > publishing on the Web. The seminar included an afternoon and an evening
> > session and a fantastic line-up of speakers. In addition to the audio
> > files
> > of individual presentations text transcripts will be produced and listed
> > on
> > an archive page for this seminar. To simplify things I want to include
> the
> > line-ups for each session on a single archive page and want to enable
> > visitors to select the session they wish to view or listen to from
> another
> > page. This is taking named anchors to the next level.
> >
> >    I've visited Web sites containing a large page divided in to various
> > content sections. Visitors can link to a specific section on this page
> > from
> > the site's home page. In other words rather than create separate pages
> for
> > each topic all topics are placed on a, "Master page" and visitors can
> link
> > to a particular section from the site's home page rather than landing at
> > the
> > top of the master page.
> >
> >    In my example when the, "Convention round-up" page is visited one
> > encounters links allowing them to access the agenda for session 1, or
> > session 2 on the seminar archive page. If someone wants to read or
> listen
> > to
> > a particular presentation given during session 2 they would select the
> > link
> > for session 2 from the round-up page. Rather than landing at the top of
> > the
> > seminar archive page they would land on the heading for session 2 from
> > where
> > they can search for the presentation of interest without having to land
> at
> > the top of the archive page.
> >
> >    Again I've seen this done on a number of Web sites I have visited,
> but
> > need to have the code to make it happen. I would appreciate some code
> > samples in order to do this. Thanks in advance for help on this one.
> >
> > Peter Donahue
> >
> >



More information about the Nfb-web mailing list