leave link underlined after clicking

This is a discussion on "leave link underlined after clicking" within the Web Page Design section. This forum, and the thread "leave link underlined after clicking are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 8th, 2006, 22:14
New Member
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
leave link underlined after clicking

Dear All,

I have a DHTML menu, and i wish that after the user clicks on a sub-link to view a particular page, the text becomes underlined.

How can I do that?

I tried a mouseout but its not working fine:-

<div class="NC">
<a href="#" id="AAL" class="PL" onMouseover="this.style.backgroundColor='#CC0000'; this.style.color='white'"
onMouseout="this.style.backgroundColor='white'; this.style.color='#CC0000';" onClick="showHide('aboutAAMISub')"><span class="PN">About AAMI</span></a>
<div id="aboutAAMISub" class="subMenu hide">
<div class="subItem"><a href="<%=NonSecureSite()%>/about_aami_insurance/aami_company_profile.asp" target="_top" class="SIL" onMouseOver="this.style.cursor='hand'"><span class="SN">Profile</span></a></div>
<div class="subItem"><a href="javascript:;" onClick="MM_openBrWindow('<%=NonSecureSite()%>/corporate_affairs/default.asp','corporateaffairs','status=yes,width= 790,height=480')" target="_top" class="SIL" onMouseOver="this.style.cursor='hand'"><span class="SN" >Corporate Information</span></a></div>
<div class="subItem"><a href="<%=NonSecureSite()%>/about_aami_insurance/aami_news_centre/aami_news_centre.asp" target="_top" class="SIL" onMouseOver="this.style.cursor='hand'" onMouseout="this.style.textDecoration='underline'" ><span class="SN">News Centre</span></a></div>
<div class="subItem"><a href="<%=NonSecureSite()%>/aami_customer_service/customer_charter.asp" target="_top" class="SIL" onMouseOver="this.style.cursor='hand'" ><span class="SN">Customer Charter</span></a></div>
<div class="subItem"><a href="<%=NonSecureSite()%>/about_aami_insurance/sponsorship.asp" target="_top" class="SIL" onMouseOver="this.style.cursor='hand'"><span class="SN">Sponsorship</span></a></div>
<div class="subItem"><a href="<%=NonSecureSite()%>/aami_customer_service/abbi_business_insurance.asp" target="_top" class="SIL NBG" onMouseOver="this.style.cursor='hand'"><span class="SN">Small Business Insurance?</span></a></div>
</div>
</div>
Reply With Quote

  #2 (permalink)  
Old Jan 17th, 2006, 16:57
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

Try a more appropriate forum. This is the ASP forum
Reply With Quote
  #3 (permalink)  
Old Jan 18th, 2006, 01:32
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

dito the above comment...

could you not use css however, for visted link? or active link? to add an underline...
Reply With Quote
  #4 (permalink)  
Old Jan 18th, 2006, 21:24
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

Wow, you're kinder than I benbramz.
Reply With Quote
  #5 (permalink)  
Old Jan 18th, 2006, 21:53
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

Quote:
Originally Posted by jakyra
Wow, you're kinder than I benbramz.
i am?
Reply With Quote
  #6 (permalink)  
Old May 25th, 2006, 14:45
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,996
Blog Entries: 1
Thanks: 0
Thanked 32 Times in 32 Posts
Re: leave link underlined after clicking

Ok ok wrong place but yeah he could just do:

a:visited { text-decoration: underline; }
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #7 (permalink)  
Old May 28th, 2006, 04:11
Up'n'Coming Member
Join Date: May 2006
Location: Kentucky
Age: 19
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

<style type="text/css">

a.link, a.visited, a.active {text-decoration:;}
a:hover {text-decoration:;}

</style>

That is how you format all the links at one time if you wanted to know I don't know if you did or not but there you go. I think thatis how you do the hover one.
Reply With Quote
  #8 (permalink)  
Old May 28th, 2006, 13:36
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

Why is this in the css section, LOL, looks like javascript to me.
Reply With Quote
  #9 (permalink)  
Old May 28th, 2006, 15:33
Up'n'Coming Member
Join Date: May 2006
Location: Kentucky
Age: 19
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Re: leave link underlined after clicking

It was Javascript at first but then what he needed was something to do with CSS I assume. He need help with links and CSS is a much easier way to solve his problem. Your right though it could have been put in Javascript or either one. Basically fits in both areas.
Reply With Quote
  #10 (permalink)  
Old May 29th, 2006, 17:47
Junior Member
Join Date: May 2006
Location: Manchester. UK
Age: 17
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leave link underlined after clicking

Quote:
Originally Posted by masonbarge
Why is this in the css section, LOL, looks like javascript to me.
Nope. although this could probably be achieved with Javascript it is the simple CSS psuedo's used to define and style links you would just need to put nothing into the text-decoration on every single link which he wants underlined.

In every single link you want, for example.

HTML: Select all
a: link
a: active
a: hover
a: visited
Therfore just a basic CSS use.
Reply With Quote
Reply

Tags
leave, link, underlined, clicking

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a div become visible on clicking a link? snappy Web Page Design 12 Jun 11th, 2008 19:25
Changing a session variable when clicking a link? Crow555 Classic ASP 0 May 15th, 2008 12:22
Record the link you clicked to leave my page TheSealPortalTeam PHP Forum 22 May 5th, 2008 20:05
HELP, ASAP- Lag time when clicking on link... how can I fix?? Snapa02 Web Page Design 6 Apr 26th, 2006 00:18
Insert to db when clicking a link. Tralesh Classic ASP 4 Jun 8th, 2004 14:58


All times are GMT. The time now is 10:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43