A simple CSS question

H

Hardy Wang

Hi,
Just a client JavaScript question, I have one table, I want to make
table row to show different background color on mouse over, I know I can do
like this:
<tr class="AltLine"
onclick="javascript:__doPostBack('GridPageList:_ctl3:_ctl0','')"
OnMouseOver="this.style.backgroundColor='#FFFFCC';this.style.cursor='hand';
return true;"
OnMouseOut="this.style.backgroundColor='';this.style.cursor='default';
return true;">

But if I want to load stylesheet class name (sya, I have a class named
"SelectedLine") instead of specifying background color, how shall I write
this script?

Thanks!
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top