/    Sign up×
Community /Pin to ProfileBookmark

Navigation help?

Hi,
I’m looking for a way to make my navigation look more dynamic. It’s text based and all I would like to do is have the text link turn bold when clicked on.

Page One
Page Two
Page Three

For example, if you clicked the “Page Two” link, it would remain bold until you clicked onto another page.

Ideally I’d like a javascript solution as php my normal choice would be out of the question as the site it’s for is in asp.net.

I’m not an asp.net guy, so I’d like to avoid that if possible.

I hope that makes sense.

Originally I thought the a:active would do the trick, but it only works on click, and I need something to maintain that state after click, and then revert whe na new link is selected.

Any ideas guys?

Ben

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Dec 10.2004 — Normal link<a href="page1.htm">Page 1</a>

Bolded link<a href="page2.htm" style="font-weight:bold;">Page 2</a>
Copy linkTweet thisAlerts:
@wonderhorseauthorDec 11.2004 — Thanks for that but what I meant was for something to do this automatically as tha navigation is to be dynamically populated.
×

Success!

Help @wonderhorse spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...