#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    21
    Rep Power
    0

    null links and css classes


    Hiya.

    I've got a bunch of javascript links which I want to be part of a css class. the problem is because the links are nulled for the javascript (i.e. <a href="#" onClick= etc etc.>) they are not responding to the class declarations (e.g.

    a.nav:hover { color: #414f63; text-decoration: none; }

    has no effect). If i remove the null href value, then the css works, but, of course, the javascript doesn't.

    any ideas?

    thanks,
    _e.
  2. #2
  3. Cunning Linguist
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2003
    Location
    I used to live at home, now I stay at the house
    Posts
    10,180
    Rep Power
    2038
    Try...
    Code:
    <a href="java_script_:;" onClick="">Here</a>
    [remove the "_"'s]
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    21
    Rep Power
    0

    wow. that is a good trick!


    worked like charm.

    thanks

IMN logo majestic logo threadwatch logo seochat tools logo