ciclare le righe della tabella per cambiare il loro sfondo al passaggio del mouse

S

SAN CAZIANO

come posso cambiare lo sfondo della riga attiva al passaggio del mouse e
ripristinare il colore di origine della riga quando il mouse esce dalla riga
???

si può fare usando un loop tra le righe della tabella ???

perchè con i CSS vorrei dare un nome di classe alla tabella, invece di
scrivere per ogni tag <tr>
<tr onMouseOver="this.className='RowWithMouseOverColor'";
onMouseOut="this.className='RowWithMouseOutColor'";>
e comunque vorrei evitare di usare i CSS


OldBackColor=background;
OldFontColor=color;

<style TYPE="text/css">
..RowWithMouseOverColor
{
background: #006699;
color: #ffffff;
}
..RowWithMouseOutColor
{
background: OldBackColor;
color: OldFontColor;
}
</style>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top