Highlighting a Query Result

I want to highlight each line of a query. I means that when the mouse pointer get over a line of the outputed query, the whole line get highlighted.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi Michael_O,
you can hightlight links like
<STYLE TYPE="text/css">
a:link { color: blue; text-decoration: none }
a:active { color: red; text-decoration: none }
a:visited { color: blue; text-decoration: none }
a:hover { color: green; text-decoration: underline }

Hi Michael_O,
Using CSS you can highlight table cells and other elements when a user mouse's over. For an example see the menu above, the colour changes from grey to blue. This is simply achieved by using CSS's Hover property:

Define the style of your navigation, within your style sheet:

.menu { background-color: #E9E9E9; font-size: 11px; color: #000000 }

Now apply this to your table cells:

<td class="menu">

Now define how the menu will look when someone hovers over:

td.menu :hover {background-color: #669966; display: block;}

This should work well, you don't have to apply this only to table cells, it could be applied to individual links by removing the ".td" prefix. You can also change other properties instead of just the background colour, for example the font style or colour.

 <script LANGUAGE="JavaScript">
function TrowOn(src,OnColor){
src.style.cursor = 'hand';
 src.bgColor = OnColor;
function TrowOff(src,OffColor){
src.style.cursor = 'default';
src.bgColor = OffColor;

<table id="mainTable">
<tr onMouseOver="TrowOn(this,'#ffffcc');" onMouseOut="TrowOff(this,'#DFDFDF');">
<td>CELL 1</td>
 <td>CELL 2</td>
<td>CELL 3</td>
<tr onMouseOver="TrowOn(this,'#ffffcc');" onMouseOut="TrowOff(this,'#DFDFDF');"> <td>CELL 4/td> <td>CELL 5/td> <td>CELL 6/td>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I would go with kkhipple's idea of highlighting on the table row, but for more details this kind of question would get a bunch of different answers in the Cascading Stylesheet Topic Area CSS:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.