User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,584 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,147 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Sep 26th, 2004
Views: 3,732
Put it in you footer at Admin CP->Board Wrappers, and underline will disappear for username links.
This code only makes sense when you have underline enabled for links in your CSS.
javascript Syntax | 3 stars
  1. <script type='text/javascript' language='JavaScript'>
  2. <!--
  3. var n, l;
  4. for (n = 0; n < document.links.length; n++){
  5. l = document.links[n];
  6. if (l.href.indexOf("showuser=") != -1){
  7. l.style.textDecoration = 'none';
  8. }
  9. };
  10. // -->
  11. </script>
Comments (Newest First)
peter_budo | Code tags enforcer | Jun 5th, 2005
Don't see any point to do something like this with javascript, if you can simple do it in CSS
"text-decoration none".
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 2:52 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC