Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to Specify CSS for a JavaScript Piece?

Reply
Thread Tools

How to Specify CSS for a JavaScript Piece?

 
 
bdwise
Guest
Posts: n/a
 
      11-05-2003
I have a piece of mouseover javascript that is this
.... "this.style.cssText='cursor:hand' ...

But I want to specify a class in my stylesheeet instead. How do I do that?
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      11-05-2003
(bdwise) writes:

> I have a piece of mouseover javascript that is this
> ... "this.style.cssText='cursor:hand' ...
>
> But I want to specify a class in my stylesheeet instead. How do I do that?


Like this
this.className='nameOfClass';
?

/L
--
Lasse Reichstein Nielsen -
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Javascript function to specify an image map? Jim Van Abbema HTML 4 12-07-2004 01:43 AM
How to specify (and/or) conditions in Javascript? Fernie HTML 6 11-20-2004 10:39 PM
CSS Property changes via Javascript trashes CSS print version Julie Siebel Javascript 4 02-25-2004 01:29 PM
Can I use CSS to specify event handlers ? Richard A. DeVenezia Javascript 3 09-01-2003 09:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57