88 users online (1 members and 87 guests)  

  Results 1 to 2 of 2


  1. help rollovers    Forum: Javascript Forum
    Replies: 0
  2. Creating two rollovers from one trigger?    Forum: Javascript Forum
    Replies: 1
  3. Graphics Rollovers help please    Forum: Javascript Forum
    Replies: 1
  4. Multiple Rollovers - HELP!!    Forum: Javascript Forum
    Replies: 3
  5. animated rollovers in netscape    Forum: HTML Forum
    Replies: 3
  1. #1
    Mr. Blue's Avatar
    Evil twin of Dave

    Join Date
    Jul 2001
    MA, USA

    Question Javascript Rollovers????

    OK now that i'm fully addicted to making websites i'm redoing my Counter-Strike clan's. I've already run into problems and i just started, but i know you can help me out people. I wanna make it so that when i rollover the links they underline....I talked to soemone and they said it was Javascript which i have no clue about so i'm helpless at this point. Thanks in advance.

  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK


    Yo Blue,

    whoever told you that you need JS to underline a link is lying and should not be trusted!

    In your last post, I mentioned CSS. Well, the same CSS can do what you are after.

    In between the <HEAD></HEAD> tags try -

    a { font: 12pt verdana; color: blue; text-decoration: none; }
    a:hover { text-decoration: underline; }

    Now all your links will be blue with no underline, until you hover over them...

    Play with the colour values and stuff. If you would like a starter course in CSS then in Daves (the other Dave!) tutorials section at the main page he has a link to a couple of CSS primer tutorials.

    PS - Possible values for text-decoration:

    none underline overline strike-through blink

    Blink only works in Netscape, damn their eyes.

    Have fun> Any questions, just ask.


Tags for this Thread