This topic is locked

There is no attribute "OnMouseOver"

Posted 12 Mar 2004 20:11:47
has voted
12 Mar 2004 20:11:47 Dean Blackborough posted:
At the moment I was planning on using the following to change classes on mouseover to highlight cells, check here,

class="nv-top" onMouseOver="this.className='m-over'" onMouseOut="th

On checking with the W3C vaildator, just out of interest, i came up with the 'There is no attribute "OnMouseOver"' error, is there a more correct way to go about changing classes that the W3C validator won't pick up.

I'm not overly worried as it works as is but am interested in what would be the correct method.

(PHP and MySQL)


Replied 15 Mar 2004 15:32:39
15 Mar 2004 15:32:39 Matt Machell replied:
If you lowercase your attibutes (OnMouseOver to onmouseover and so on) it should validate properly.

Replied 16 Mar 2004 22:29:01
16 Mar 2004 22:29:01 Dean Blackborough replied:
Cheers Matt, works lovely now.

(PHP and MySQL)

Reply to this topic