Topic: DOM Roll Over? (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() I happened upon this little piece of code here and was wondering if this was the new way that mouse overs should be handled? I have the script posted below and have it working on a page: code: <script type="text/javascript"> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() I like the idea, but using a non-valid XHTML attribute doesn't seem like a good idea. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() |
Obsessive-Compulsive (I) Inmate From: england |
![]() hi, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() If our markup isn't valid, we can't ensure that our pages will work in the future. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() I'm still not sold on them needing to vaildate any time in the near future. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() I am pretty much with slime on A and B, I also have a C) policies in place that require standards compliance. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() One of my co-workers proposed using our own DTD and saving it to our web server with image modified as such: code: <!ELEMENT img EMPTY>
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() That's definitely better than just using an inexistant attribute. It's not a bad solution. |
Obsessive-Compulsive (I) Inmate From: england |
![]() hello again, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Hmm... despite the valid markup, I'm not happy about how it uses the class attribute for something it's not intended for... |
Obsessive-Compulsive (I) Inmate From: england |
![]() well, neither am i totally.. but its a better option than the script forcing you to use invalid markup imo; and will have to suffice until the object tag is more widely-supported (the img tag is being drained out with xhtml2..) |