Re: bgcolor from a 'this'
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: bgcolor from a 'this'

From: ASM <stephanemoriaux.NoAdmin@wanadoo.fr>
Date: Mon Jul 11 2005 - 17:42:37 CEST

@sh wrote:
> Trying to do this, but its not working...?! My aim being to change the
> bgcolor of the cell upon which the user has rolled over, I'll then replicate
> this as an OnMouseOut to change it back.

http://perso.wanadoo.fr/stephane.moriaux/truc/tables_highlight_rows_fr.htm
http://perso.wanadoo.fr/stephane.moriaux/truc/tables_highlight_cells_fr.htm
http://perso.wanadoo.fr/stephane.moriaux/truc/tables_highlight_cells_en.htm

I'm surprise that :

<table width=50% border=1><tr>
<td onmouseover="this.bgColor='yellow'"
onmouseout="this.bgColor='skyblue'">a1</td>
<td onmouseover="this.bgColor='yellow'"
onmouseout="this.bgColor='skyblue'">b1</td>
<td>c1</td></tr>
<tr>
<td onmouseover="this.bgColor='#FFFFCC'"
onmouseout="this.bgColor='#FFCCFF'">a2</td>
<td onmouseover="this.bgColor='#FFFFCC'"
onmouseout="this.bgColor='#FFCCFF'">
b2</td><td>c2</td></tr></table>

don't work for you

(you did notice it is bgColor and not bgcolor )

My Opera won't accept colors like '#FFF' or '#fff'

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Tue Oct 18 02:54:21 2005