Menu
hello,
i’m making a menu in css/html and javascript, but the javascript code makes my lines pretty long and this doesn’t make it easyer to read.
this is the code i’ve now:
<td class=”sub_td_groot_sel” onMouseOver=”this.style.backgroundColor=’#DCE1E8′” onMouseOut=”this.style.backgroundColor=’#EEEEEE'” onClick=”location.href=’test.htm'”>
but i was wondering if it’s possible to make a javascript function or something like that to make the line shorter like this:
<td class=”sub_td_groot_sel” javascript=”funct_shorter(‘test.htm’)”>
so that i’ve the javascript somewhere else and not on every line.
thanks in advance