tankergoblin
asked on
how to link to another page using hover
i have a row with 5 column.
i want my first column able to link to other page
i want to use hover so that whenever i point to first column an underline occur and the row change to another color.
i want my first column able to link to other page
i want to use hover so that whenever i point to first column an underline occur and the row change to another color.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
just remove the onlick, if you want the specific link aspect...
Think this is what you are after.
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="cursor:pointer; width: 200px;" onclick="javascript:location='yourpage.htm'" onmouseover="style.backgroundColor='#eee'; style.textDecoration='underline'; cursor: pointer; cursor: hand;" onmouseout="style.backgroundColor=''; style.textDecoration='none';">row 1 col 1</td> <td>row 1 col 2</td> <td>row 1 col 3</td> <td>row 1 col 4</td> <td>row 1 col 5</td>
</tr>
</table>
That will only change the colour of the 1st cell, question states row to change colour.
ASKER
BrianMM:
Your idea looks good but i think is not efficient to declare cursor pointer in every row .
you know any jquery that can do this?
Your idea looks good but i think is not efficient to declare cursor pointer in every row .
you know any jquery that can do this?
ASKER
BrianMM:
Your idea looks good but i think is not efficient to declare cursor pointer in every row .
you know any jquery that can do this?
Your idea looks good but i think is not efficient to declare cursor pointer in every row .
you know any jquery that can do this?
you can assign using a css class. My code was purley a rough guide to show the mechanism.
Have been doing this for years... if you can explain & prove this it would be interesting.
Open in new window