A mam 'swój' kod:
KOD
<style type="text/css">
td.off {
background: #F4F7E7;
}
td.on{
background: #F4F7BA;
}
</style>
<table width="150" cellpadding="3">
<tr>
<td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'">test1</td>
</tr>
<tr>
<td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'">test2</td>
</tr>
</tr>
</table>
Jak przekształcić go, żeby opierał się na divach?
Takie coś jest ok?
KOD
<style type="text/css">
div.off {
background: #F4F7E7;
}
div.on{
background: #F4F7BA;
}
</style>
<div class="off" onmouseover="this.className='on'" onmouseout="this.className='off'">test1</div>
<div class="off" onmouseover="this.className='on'" onmouseout="this.className='off'">test2</div>
?