[OT] <TH> Onload
| From: | jm aribau | Date: | Tue, 09 Dec 2003 18:36:25 +0000 |
| Subject: | [OT] <TH> Onload | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-43459@lists.php.net to get a copy of this message | ||
Neccesito cambiar el bgcolor del tags TH que tiene un ID al cargar la
pagina?
Como os podeis fijar en el código, si habilitamos el background-color del
ID=color, despues el evento OnMouseOver no puede cambiar el bgcolor.
Si pongo bgcolor en el tag TH, despues no valida XHTML Strict. Por eso
neccesito hacelo de otra manera.
Cómo? Pues la verdad es que no lo se, supongo solucionando la primera
pregunta del mail.
Gracias a todos.
Hos passo el código de ejemplo:
<html>
<head>
<style>
a { text-decoration: none; }
a:hover { text-decoration:underline;}
#color { /* background-color: #ECF0F6; */ }
</style>
</head>
<body>
<table cellpadding=0 cellspacing=0>
<tr onclick='window.location=("");'
onmouseover='this.bgColor="fff2a8"; this.style.cursor="hand";'
onmouseout='this.bgColor="ffffff";'>
<td><A href='#'>AAAAA</A></td>
<td><A href='#'>BBBBB</A></td>
<td><A href='#'>CCCCC</A></td>
<td><A href='#'>DDDDD</A></td>
</tr>
<tr id='color' onclick='window.location=("");'
onmouseover='this.bgColor="fff2a8"; this.style.cursor="hand";'
onmouseout='this.bgColor="#ECF0F6";'>
<td><A href='#'>11111</A></td>
<td><A href='#'>22222</A></td>
<td><A href='#'>33333</A></td>
<td><A href='#'>44444</A></td>
</tr>
<tr onclick='window.location=("");'
onmouseover='this.bgColor="fff2a8"; this.style.cursor="hand";'
onmouseout='this.bgColor="ffffff";'>
<td><A href='#'>EEEEE</A></td>
<td><A href='#'>FFFFF</A></td>
<td><A href='#'>GGGGG</A></td>
<td><A href='#'>HHHHH</A></td>
</tr>
<tr id='color' onclick='window.location=("");'
onmouseover='this.bgColor="fff2a8"; this.style.cursor="hand";'
onmouseout='this.bgColor="#ECF0F6";'>
<td><A href='#'>55555</A></td>
<td><A href='#'>66666</A></td>
<td><A href='#'>77777</A></td>
<td><A href='#'>88888</A></td>
</tr>
</table>
</body>
</html>