HTML table mouseover events?
Collins Richey
crichey
Sun Jun 17 17:07:31 PDT 2007
On 6/17/07, Ronnie Gauthier <linux at chartermi.net> wrote:
> On Sun, 17 Jun 2007 14:54:05 -0500 (EST)
> Net Llama! <netllama at linux-sxs.org> wrote:
>
> > On Sun, 17 Jun 2007, Ronnie Gauthier wrote:
> > > On Sat, 16 Jun 2007 19:27:23 -0700
> > > "Net Llama!" <netllama at linux-sxs.org> wrote:
> > >
> > >> I'm writing a (relatively trivial) web app in PHP, which generates a
> > >> large HTML table (15 columns, 35 rows). Much of the content in the
> > >> table is dynamically populated from a PostgreSQL database.
> > >>
> > >
> > > .cellcolor { background-color: #FFFFFF; border: 1px #000000 solid;}
> > > <td class="cellcolor" onmouseover="style.backgroundColor='#000000';border: 1px #FFFFFF solid;"
> >
>
> My bad. Too early. Not enough coffee. HUMA. Your choice.
>
> <table><tr>
> <td style="background-color: #FF0000" onmouseover="style.backgroundColor='#0000FF';"
> onmouseout="style.backgroundColor='#FF0000'">
> asdfasdfasfasfsdf
> </td>
> <td style="background-color: #FF0000" onmouseover="style.backgroundColor='#00FF00';"
> onmouseout="style.backgroundColor='#FF0000'">
> asdfasdfasfasd</td>
> </tr></table>
>
An improvement, but it still may not fix his problem with wanting to
affect only certain fields.
--
Collins Richey
If you fill your heart with regrets of yesterday and the worries
of tomorrow, you have no today to be thankful for.
More information about the Linux-users
mailing list