How to Specify CSS for a JavaScript Piece?

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

    #1

    How to Specify CSS for a JavaScript Piece?

    I have a piece of mouseover javascript that is this
    .... "this.style.css Text='cursor:ha nd' ...

    But I want to specify a class in my stylesheeet instead. How do I do that?
  • Lasse Reichstein Nielsen

    #2
    Re: How to Specify CSS for a JavaScript Piece?

    bradwiseathome@ hotmail.com (bdwise) writes:
    [color=blue]
    > I have a piece of mouseover javascript that is this
    > ... "this.style.css Text='cursor:ha nd' ...
    >
    > But I want to specify a class in my stylesheeet instead. How do I do that?[/color]

    Like this
    this.className= 'nameOfClass';
    ?

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...