The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Question about links
Lee Batchelor
post May 10 2020, 08:42 AM
Post #1


Member
***

Group: Members
Posts: 82
Joined: 10-May 20
Member No.: 27,332



Hi everyone,

I'm new here and would appreciate some help. Thanks for having me smile.gif.

I designed a website for a friend. It's a genealogy, non-profit website. On one of the pages, I have three names of Canadian soldiers who fought in WWI. Users can click a name and be taken to a second page that describes the soldier's actions and history even further. The CSS sheet for the first page controls the link colors in the traditional fashion - navy for unvisited links, purple for visited.

When a user clicks one name and then returns to the first page, all the linked names on that page are shown as visited. This is normal behavior, I assume because the <a> tag points to the second page in all three cases. Is there a way to isolate how the colors change? For example, if a user clicks on the first soldier's name, all three soldiers' names change to purple. Can the links be designed so that only the clicked name turns purple and the remaining two names stay navy, even though the second page has been opened?

Many thanks!

- Lee
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 10 2020, 09:41 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



Hello and welcome!

You might link to separate sections of the second page (one for each soldier), as show here: https://htmlhelp.com/faq/html/all.html#named-anchor
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lee Batchelor
post May 10 2020, 09:56 AM
Post #3


Member
***

Group: Members
Posts: 82
Joined: 10-May 20
Member No.: 27,332



Many thanks for the quick reply, Christian. I shall give that a try and report back.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lee Batchelor
post May 10 2020, 12:29 PM
Post #4


Member
***

Group: Members
Posts: 82
Joined: 10-May 20
Member No.: 27,332



Christian, it worked!! You're the best. Thank you,

- Lee
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 10 2020, 02:26 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



You're welcome!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 07:23 AM