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.
|
|
|
|
|
![]() |
||
leave link underlined after clicking
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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> |
|
|
|
|||
|
Re: leave link underlined after clicking
Try a more appropriate forum. This is the ASP forum
|
|
|||
|
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... |
|
|||
|
Re: leave link underlined after clicking
Wow, you're kinder than I benbramz.
|
|
|||
|
Re: leave link underlined after clicking
Quote:
|
|
||||
|
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)
|
|
|||
|
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. |
|
|||
|
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.
|
|
|||
|
Re: leave link underlined after clicking
Quote:
In every single link you want, for example.
|
![]() |
| Tags |
| leave, link, underlined, clicking |
| Thread Tools | |
|
|
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 |