[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


Highlighting a Query Result

Posted on 2004-10-28
Medium Priority
Last Modified: 2013-12-24
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.
Question by:Michael_O
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 21

Expert Comment

ID: 12435958
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 }

LVL 21

Expert Comment

ID: 12435968
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.


Accepted Solution

kkhipple earned 1600 total points
ID: 12436581
 <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>
LVL 35

Expert Comment

ID: 12436668
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:


Featured Post

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question