hover rows on jsp

Posted on 2005-04-24
Last Modified: 2012-06-27
I would like to highlight row when mouse hover on the row. I already have jsp generated the rows but wondering how can I add highlight on the row when mouse hover on it. Thanks.
Question by:askJava2
    LVL 25

    Expert Comment

    Can we see some code please?
    LVL 1

    Accepted Solution

    Maybe I'm not understanding this, but couldn't you just use a simpe onmouseover, etc?


    <td class="menu" onmouseover="bgColor='#CCCCCC'" onmouseout="bgColor='#999999'"><a href=?nav=welcome>Home</a><BR></td>

    an example is at :) (the navigation bar)
    LVL 16

    Expert Comment


    I think that lamerhooDJV solution should work for you based on my understanding. Please let us know if you need any help.

    LVL 21

    Assisted Solution

    You can also put the onmouseover and onmouseout events on the <tr> tag like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
     content="text/html; charset=ISO-8859-1"
     http-equiv="content-type" />
      <title />
    <table width='66%' border="1" cellpadding="0" cellspacing="0">
        <tr onmouseover="bgColor='#ffff33'" onmouseout="bgColor='#ffffff'" bgcolor="#ffffff">
        <tr onmouseover="bgColor='#ffff33'" onmouseout="bgColor='#ffffff'" bgcolor="#ffffff">

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    why to use string 10 53
    isEverywhere  challenge 19 49
    wordsWithoutList  challenge 24 62
    nestparen challenge 4 37
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now