CSS problem while linking to js

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ang Talunin

    CSS problem while linking to js

    Hey,

    I've got this code:

    <html>
    <head>
    <style>
    a{cursor:hand;t ext-decoration:none ;font-size=10pt;font-family:Verdana; }
    a:hover{cursor: hand;text-decoration:unde rline;}
    </style>
    </head>
    <body>
    <a href="" onClick=openR() >link1</a><br>
    <a onClick=openR() >link2</a><br>
    </body>
    </html>

    And I'm wondering why on the first link the css is working fine and on the
    second one fails.
    Anyone know's?

    thnx,


  • Evertjan.

    #2
    Re: CSS problem while linking to js

    Ang Talunin wrote on 08 feb 2004 in comp.lang.javas cript:
    [color=blue]
    > I've got this code:
    >
    > <html>
    > <head>
    > <style>
    > a{cursor:hand;t ext-decoration:none ;font-size=10pt;font-family:Verdana; }
    > a:hover{cursor: hand;text-decoration:unde rline;}
    > </style>
    > </head>
    > <body>
    > <a href="" onClick=openR() >link1</a><br>
    > <a onClick=openR() >link2</a><br>
    > </body>
    > </html>
    >
    > And I'm wondering why on the first link the css is working fine and on
    > the second one fails.
    > Anyone know's?
    >[/color]

    an <a is only an anchor with(!) a href=

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...