Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Thursday 08 January 09 00:10 GMT (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Ad: Look up your ancestor in the 1871 England Census

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Technical Help (Moderator: Ticker)
| | | |-+  A website question for someone who knows html code
« previous next »
Pages: [1] Print
Author Topic: A website question for someone who knows html code  (Read 185 times)
kerryb
RootsChat Marquessate
********
Offline Offline

Posts: 10464



WWW
A website question for someone who knows html code
« on: Tuesday 24 June 08 18:13 BST (UK) »

Hi

The website I maintain at work has a very very long links page and we have decided to split it into 3 pages.

The introductory page will have links for the subjects under those 3 pages
ie
Heading 1
subheading1
subheading2
subheading3

Heading 2
subheading1
subheading2

and so on

My question is does anyone know if its at all possible to do an anchor from the subheading1 on the introductory page to the subheading1 bit of the Heading1 page?

Hope thats understandable.

I know how to do anchors within a page but I don't know if they are possible within different pages so that your link would take you to half way down another page rather than just the top with every single one of them.

Kerry
Logged

Census information Crown Copyright, from www.nationalarchives.gov.uk

Searching for my family - Baldwin - Sussex, Middlesex, Cork, Pilbeam - Sussex, Harmer - Sussex, Terry - Surrey, Kent, Rhoades - Lincs, Roffey - Surrey, Traies - Devon & Middlesex & many many more to be found on my website .... www.kerrysfamilyhistory.co.uk
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 5294


by My Daughter. Chatting to find her Roots !


Re: A website question for someone who knows html code
« Reply #1 on: Tuesday 24 June 08 18:17 BST (UK) »

Local anchor:
Code:
<a href="#subheading2"></a>
 

Anchor on another page:
Code:
<a href="./page3.html#subheading2"></a>
 

or even a page on another website:
Code:
<a href="http://www.my-other-website/page3.html#subheading2" target="_blank"></a>
 

target="_blank" opens the page in a new window/tab.

regards,
Bob
Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site.

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
kerryb
RootsChat Marquessate
********
Offline Offline

Posts: 10464



WWW
Re: A website question for someone who knows html code
« Reply #2 on: Tuesday 24 June 08 18:43 BST (UK) »

Thanks Bob

I knew someone on here would know  Grin Grin Grin

That will save me a lot of aggro tomorrow and impress my Manager  Roll Eyes Grin

Kerry
Logged

Census information Crown Copyright, from www.nationalarchives.gov.uk

Searching for my family - Baldwin - Sussex, Middlesex, Cork, Pilbeam - Sussex, Harmer - Sussex, Terry - Surrey, Kent, Rhoades - Lincs, Roffey - Surrey, Traies - Devon & Middlesex & many many more to be found on my website .... www.kerrysfamilyhistory.co.uk
downside
RootsChat Aristocrat
******
Offline Offline

Posts: 2652


Make my day


WWW
Re: A website question for someone who knows html code
« Reply #3 on: Tuesday 24 June 08 18:55 BST (UK) »

To go to a specific location on a page:

Page 1
<a href="page2.htm#5" target ="_blank"></a>

On the second page you need to have a target called 5 embedded in the page in the example below, at the correct location:

Page 2
<a name="5" /a>
Logged

Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
kerryb
RootsChat Marquessate
********
Offline Offline

Posts: 10464



WWW
Re: A website question for someone who knows html code
« Reply #4 on: Tuesday 24 June 08 19:23 BST (UK) »

Thanks Downside

I won't forget that bit  Cheesy

Kerry
Logged

Census information Crown Copyright, from www.nationalarchives.gov.uk

Searching for my family - Baldwin - Sussex, Middlesex, Cork, Pilbeam - Sussex, Harmer - Sussex, Terry - Surrey, Kent, Rhoades - Lincs, Roffey - Surrey, Traies - Devon & Middlesex & many many more to be found on my website .... www.kerrysfamilyhistory.co.uk
Pages: [1] Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
0.164:22