[thelist] event handlers through CSS
jon steele
jjsteele22 at yahoo.com
Wed Aug 14 16:11:01 CDT 2002
Hello
I think I read somewhere that you could integrate your event handlers through CSS. Can this be
done?
So instead of:
<td class="myClass" onmouseover="this()" onmouseout="that()">a</td>
<td class="myClass" onmouseover="this()" onmouseout="that()">b</td>
I could specifiy the onmouse events in the head tag:
.myClass {
??what to do??
onmouseover = this()
onmouseout = that()
??what to do??
}
and then just use
<td class="myClass">a</td>
<td class="myClass">b</td>
for my table.
Should be compatible in DOM browsers (IE 5+, NS6+).
jon
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
More information about the thelist
mailing list