Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

71 users online



document.all.id.class

document.all.id.class

Currently viewing this thread: 1 (0 members and 1 guests)


freefall235

freefall235

Status: Offline!

document.all.id.class

i want to change something in the onMouseOver event, but to do that, i need to get the js thing for the cell id, now, i thought it would be document.all.mnuhome.class='menuon' but that doesnt do nething, any thoughts??

thnx in advance...justin

fredmv

fredmv

Status: Offline!

Firstly, document.all is bad stuff. It's Microsoft-introduced garbage. Use document.getElementById to access document nodes. Secondly, you'll want to use className since class is a resevered word in JavaScript. Thus making your statement:

Code:

document.getElementById('mnuhome').className = 'menuon';

However, it seems you're going about this the wrong way. I have a strange feeling the CSS :hover pseudo-class would be much more suitable for what you're doing, but I'd have to see in what context this JavaScript is being used in.

___________________

http://home.comcast.net/~fredv4/tf/firefox.gif

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0158 seconds.