Javascript, que nos Permite jugar con la Transparencia de cualquier Imagen
Escrito por Michel Yndart on Diciembre 18, 2007
->
Paso 1: poner este script en el head <head> xxx </head>
<script>
function uno(src,color_entrada) {
src.bgColor=color_entrada;src.style.cursor=”hand”;
}
function dos(src,color_default) {
src.bgColor=color_default;src.style.cursor=”default”;
}
</script>
Paso 2: Si lo que quieres es que se ilumine una celda observa el siguiente código:
<table border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#000000″ align=”center”>
<tr>
<td>
<table border=”0″ cellspacing=”1″cellpadding=”0″ align=”center” width=”278″>
<tr bgcolor=”#FFFFFF”>
<td onMouseOver=”uno(this,’cccccc’);” onMouseOut=”dos(this,’FFFFFF’);” align=”center” width=”100″ valign=”middle”><font face=”Arial, Helvetica, sans-serif” size=”1″>
PASA POR ENCIMA</font></td>
<td width=”95″>Â </td>
<td width=”83″>Â </td>
</tr>
<tr bgcolor=”#FFFFFF”>
<td width=”100″>Â </td>
<td width=”95″>Â </td>
<td width=”83″>Â </td>
</tr>
<tr bgcolor=”#FFFFFF”>
<td width=”100″>Â </td>
<td width=”95″>Â </td>
<td width=”83″>Â </td>
</tr>
</table>
</td>
</tr>
</table>
Via:Â http://www.desarrolloweb.com/



Add A Comment