Creating Table Row Color Change on Roll-over

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Creating Table Row Color Change on Roll-over


    I would like to create the effect of a highlighted row in a table, on a PHP generated page, when the user rolls over a row.

    How is this done?

    Thx
    irdsman Guest

  2. Similar Questions and Discussions

    1. Color change after flatten?
      I am using CS on OS 10.3.3. I was working on an image that had about 20-30 layers, about 10 of those where verious color correction layers. Curves,...
    2. how to change Hand Icon on Roll Over
      Hi, How can I change the default Hand icon from a button link to a regular arrow? Flash MX, Windows Xp pro, thanks Mic
    3. Can't change background color
      The area of the screen outside of the editing area of Image Ready used to be a light gray color. This would make it easy for me to see where the...
    4. Color Change Objects.
      I have not yet purchased photoshop, so my question is to find out if Photoshop is the right product for my project. I want to create a ecommerce...
    5. Color Change
      hi; quick question: how can i chang the Background Color of the Current Record in a Continuous Form. thanks in advance;
  3. #2

    Default Re: Creating Table Row Color Change on Roll-over

    The JS functions:
    <script type="text/javascript"> rootcolors=[];
    function troyan_bgc(trg,cl) { rootcolors[trg]=trg.style.background; trg.style.background=cl; }
    function troyan_bgb(trg) { trg.style.background=rootcolors[trg]; }
    </script>

    The table code:
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td style="background: lightBlue;" onmouseover="troyan_bgc(this,'chartreuse');"
    onmouseout="troyan_bgb(this);"> Contents </td>
    </tr>
    </table>

    The most important is..
    <td style="background: lightBlue;" onmouseover="troyan_bgc(this,'chartreuse');"
    onmouseout="troyan_bgb(this);"> Contents </td>
    Where in the style attribute, in the "background" option, you choose the original bgcolor. In the
    mouseover, where is 'chartreuse', you choose the mouseover color. The mouseout attribute are
    fully-automatic. It backs to the original color (specified in the "style").


    You can consider using of tableless instead of tables in your page. If you want some information
    about tableless, go to W3C Home: [url]www.w3.org[/url].

    Sorry for the write errors, I don't speak English so well...
    []s


    --
    - Rio de Janeiro, Brasil
    - Troyan <dnunes[at]email[dot]com>


    Troyan Guest

  4. #3

    Default Re: Creating Table Row Color Change on Roll-over

    Troyan wrote:
    > The JS functions:
    Or you can do download our SwapClass or MultiClass behaviors. Quite a
    bit of power.


    --
    Al Sparber - PVII
    [url]http://www.projectseven.com[/url]
    Dreamweaver Extensions - DesignPacks - Tutorials - Books
    ---------------------------------------------------------------------
    The PVII Newsgroup | [url]news://forums.projectseven.com/pviiwebdev[/url]
    The CSS Newsgroup | [url]news://forums.projectseven.com/css[/url]
    ---------------------------------------------------------------------



    Al Sparber- PVII Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139