L
Leonardo
I have the following html. Each <td> has a class. onmouseover i'm
changing said class and I'm wondering if javascript can change the
class onclick, so that it stays a different color, and changes all the
other <td> classes so they're uncolored. Basically, i'm trying to turn
a tab a color when it is clicked, and change the other tabs back to
normal (in case another one has already been clicked).
Does this even make sense? I need a guru's help on this one!
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">WELCOME</td>
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">NOW HIRING</td>
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">OUR TEAM</td>
changing said class and I'm wondering if javascript can change the
class onclick, so that it stays a different color, and changes all the
other <td> classes so they're uncolored. Basically, i'm trying to turn
a tab a color when it is clicked, and change the other tabs back to
normal (in case another one has already been clicked).
Does this even make sense? I need a guru's help on this one!
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">WELCOME</td>
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">NOW HIRING</td>
<td class=table_tab onmouseover="this.className='table_tab_over'"
onmouseout="this.className='table_tab'">OUR TEAM</td>