|
|
|
|
Outline ·
[ Estándar ] ·
Lineal+
script en firefox, no va bien
| ACD |
May 5 2005, 11:21 AM
|
Miembro Elite
   
Grupo: Members
Mensajes: 168
Registrado: 12-September 04
Desde: MALAGA
Miembro nº: 18.498

|
La verdad es que de scipts no tengo ni idea. Busqué ejemplos en internet y copié uno. Te dejo el codigo:
<script language="Javascript"> function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.bgColor = clrOver; }} function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.bgColor = clrIn; }} function mUp(src,clrUp) { if (!src.contains(event.toElement)) { src.bgColor = clrUp; }} function mDown(src,clrDown) { if (!src.contains(event.toElement)) { src.bgColor = clrDown; }} function irA(enlace,target){ if(target){ open(enlace,target); } else{ open(enlace); } } </script>
<script language="Javascript"> function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.bgColor = clrOver; }} function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.bgColor = clrIn; }} function mUp(src,clrUp) { if (!src.contains(event.toElement)) { src.bgColor = clrUp; }} function mDown(src,clrDown) { if (!src.contains(event.toElement)) { src.bgColor = clrDown; }} function irA(enlace,target){ if(target){ open(enlace,target); } else{ open(enlace); } } </script>
<table width="100" border="0" cellspacing="1" cellpadding="5"> <tr> <td height="70" width="180"> <table width="200" border="0" cellspacing="1" cellpadding="1"> <tr bgcolor="#204060"> <th width="95%" align="center"> <font size="3"><font face="courier new" color="white">MENU</font> </th> </tr> <tr bgcolor="#00c0ff" onMouseOver="mOvr(this,'#802020');return true" onMouseOut="mOut(this,'#00c0ff');"> <td width="95%" align="center"> <font size="3"> <font face="verdana" color="white"><a rel="nofollow" href="index.htm" style="color:white; text-decoration:none";>Inicio</a></font></td> </tr> <tr bgcolor="#2080ff" onMouseOver="mOvr(this,'#993300');return true" onMouseOut="mOut(this,'#2080ff');"> <td width="95%" align="center"> <font size="3"> <font face="verdana" color="white"><a rel="nofollow" href="galeria.html" style="color:white; text-decoration:none";>Fotos</a></font></td> </td> </tr> </table> </td> </tr> </table>
|
|
|
|
|
| AngeduCiel |
May 5 2005, 07:15 PM
|
Orgullo de ser Politécnico

Grupo: Miembros Vitalicios
Mensajes: 1.053
Registrado: 1-October 04
Desde: México - Distrito Federal
Miembro nº: 22.453

|
Bueno, pues yo ampoco entiendo ese script  , asi que modifique el código html que pegaste y asi ya te debe funcionar: | CODE | <table width="100" border="0" cellspacing="1" cellpadding="5"> <tr> <td height="70" width="180"> <table width="200" border="0" cellspacing="1" cellpadding="1">
<tr bgcolor="#204060"> <th width="95%" align="center"> <font size="3"><font face="courier new" color="white">MENU</font> </th> </tr>
<tr bgcolor="#00c0ff" onmouseover="this.style.background = '#802020'" onmouseout="this.style.background = '#00c0ff'"> <td width="95%" align="center"> <font size="3"> <font face="verdana" color="white"><a rel="nofollow" href="index.htm" style="color:white; text-decoration:none";>Inicio</a></font></td> </tr> <tr bgcolor="#2080ff" onmouseover="this.style.background = '#993300'" onmouseout="this.style.background = '#2080ff'">
<td width="95%" align="center"> <font size="3"> <font face="verdana" color="white"><a rel="nofollow" href="galeria.html" style="color:white; text-decoration:none";>Fotos</a></font></td> </td> </tr> </table>
</td> </tr> </table> |
Ahora, la verdad no sé como hiciste ese código o de donde lo sacaste pues esta muuuy confuso (al menos para mi) asi que hice rapido otro código que da el mismo resultado y esta mucho más ordenado  jeje: | CODE | <table style="width: 200px; text-align: center;" border="0" cellpadding="1" cellspacing="1">
<tr style="color: white; font-family: courier new; text-decoration:none;"> <th style="width: 95%; background-color: #204060;">MENU</th> </tr>
<tr> <td style="width: 95%; background-color: #00c0ff;" onmouseover="this.style.background = '#802020'" onmouseout="this.style.background = '#00c0ff'"><a rel="nofollow" href="index.htm" style="color: white; font-family: verdana; text-decoration:none;">Inicio</td> </tr>
<tr> <td style="width: 95%; background-color: #2080ff;" onmouseover="this.style.background = '#993300'" onmouseout="this.style.background = '#2080ff'"><a rel="nofollow" href="galeria.html" style="color: white; font-family: verdana; text-decoration:none;">Fotos</a></td> </tr>
</table> |
|
|
|
|
|
Suscribirse a esta discusión
Recibirás una notificación vía correo cuando haya una respuesta y no estés activos en los foros.
Suscribirse a este foro
Recibirás una notificación vía correo cuando haya una nueva discusión y no estés activo en los foros.
Bajar/imprimir
Podrás bajar esta discusión en varios formatos o ver una versión apta para impresora.

Topicos similares

Topicos similares
|