Computing.Net > Forums > Web Development > Css ??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Css ??

Reply to Message Icon

Name: Jamie_McCoy
Date: August 26, 2004 at 08:11:39 Pacific
OS: XP Pro 5.1
CPU/Ram: Pentium 4 2.4Ghz
Comment:

i need to change the class of a td on a mouse over

OnMouseOver="this.class=linknav"

thats a guess, can someone give me the correct syntax

Jaymc.co.nr



Sponsored Link
Ads by Google

Response Number 1
Name: Khalid
Date: August 26, 2004 at 11:45:48 Pacific
Reply:

The correct reference in the Document Object Model (DOM1) is:

this.className = "linknav"

In your eventhandler it should be:
[td onMouseOver="this.className='linknav'"]Content of table cell[/td]

Replace [] for <>

Good luck!



0
Reply to Message Icon

Related Posts

See More


Apache v-hosts on dynamic... Date pop-up box in ASP.NE...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Css ??

CSS positioning & dimensions (?) www.computing.net/answers/webdevel/css-positioning-amp-dimensions-/2810.html

CSS Relative Positioning www.computing.net/answers/webdevel/css-relative-positioning/2265.html

CSS Compatabilty Issue www.computing.net/answers/webdevel/css-compatabilty-issue/2846.html