I am using table header cells to hold hyperlinks and am including mouse attributes etc like so:
The subitem class contains a lot of attributes like colors, etc.
Is there a way to store events like onMouseover event handler name inside the subitem class, since all the onMouseover events contain the same data?
Code:
<th class="subitem" onMouseover="this.className='subhover'" onMouseout="this.className='subitem'">
The subitem class contains a lot of attributes like colors, etc.
Is there a way to store events like onMouseover event handler name inside the subitem class, since all the onMouseover events contain the same data?