Bienvenido: ( Identificarse | Registrarse )      
Foros de Trucos Windows
Closed TopicStart new topicStart Poll

Outline · [ Estándar ] · Lineal+

> script en firefox, no va bien

ACD
post May 4 2005, 09:47 AM
Publicado: #1


Miembro Elite
****

Grupo: Members
Mensajes: 168
Registrado: 12-September 04
Desde: MALAGA
Miembro nº: 18.498



Hola a todos.
He usado el script que, al pasar el ratón por encima de una celda de una tabla, cambia de color. En internet explorer es visible, pero en firefox no se ve.
¿qué puede pasar?



User is offlineProfile CardPM
Go to the top of the page
+Quote Post
AngeduCiel
post May 4 2005, 08:01 PM
Publicado: #2


Orgullo de ser Politécnico
Group Icon

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



Script?? cual es el script?? Le pusiste el DOCTYPE a tu documento??

Podrias intentarlo asi:

CODE
<td onmouseover="this.style.background = '#FF0000'"
onmouseout="this.style.background = '#FFFFFF'">Contenido de la celda</td>


Espero sea lo que buscas y si no pega el código que tienes para verlo a ver si se me ocurre algo rolleyes.gif

Saludos bye1.gif bye1.gif bye1.gif bye1.gif bye1.gif


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ACD
post May 5 2005, 11:21 AM
Publicado: #3


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>


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
AngeduCiel
post May 5 2005, 07:15 PM
Publicado: #4


Orgullo de ser Politécnico
Group Icon

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 unsure.gif , 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 whistling.gif 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>


Espero te sirvan ok biggrin20jy.gif

Saludos bye1.gif bye1.gif bye1.gif bye1.gif bye1.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
uthanien
post May 6 2005, 12:54 AM
Publicado: #5


Miembro Avanzado
***

Grupo: Members
Mensajes: 72
Registrado: 6-December 04
Miembro nº: 42.681



yo tengo firefox y en la wb que estoy haciendo le puse un scrip para que la barra de desplazamiento se viera roja, pero en firefox no funciona, pero si en el IE, que puede ser??

gracias
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
AngeduCiel
post May 6 2005, 08:24 AM
Publicado: #6


Orgullo de ser Politécnico
Group Icon

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



QUOTE (uthanien @ May 5 2005, 06:54 PM)
yo tengo firefox y en la wb que estoy haciendo le puse un scrip para que la barra de desplazamiento se viera roja, pero en firefox no funciona, pero si en el IE, que puede ser??

gracias

Eso de cambiar el color de la barra de dezplazamiento es cosa del IExplorer matlingua5bi.gif y el Firefox no lo soporta porque no es un código estandar, es decir, simple y sencillamente no cumple con los estandares de la W3C y por ende no se podra visualizar en el Mozilla Firefox de ninguna forma...

Saludos bye1.gif bye1.gif bye1.gif bye1.gif bye1.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ACD
post May 6 2005, 02:35 PM
Publicado: #7


Miembro Elite
****

Grupo: Members
Mensajes: 168
Registrado: 12-September 04
Desde: MALAGA
Miembro nº: 18.498



Muchas gracias Angeduciel thumbsup.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
uthanien
post May 8 2005, 02:19 AM
Publicado: #8


Miembro Avanzado
***

Grupo: Members
Mensajes: 72
Registrado: 6-December 04
Miembro nº: 42.681



okey, gracias
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
Closed TopicTopic OptionsStart new topic

Collapse

> Topicos similares

Problemas de conexión con Firefox elm0505 21 2 Ayer, 03:53 PM
By: elm0505
Firefox en Ubuntu 8.10 Kbite 64 3 Nov 28 2008, 10:19 PM
By: Vera
Lunascape: IExplorer + Firefox + Safari marga 34 0 Nov 25 2008, 12:47 PM
By: marga
Adios Firefox 2.0 marga 37 0 Nov 21 2008, 05:13 PM
By: marga
Spyware Terminator en Firefox anaga1 90 1 Nov 17 2008, 07:10 PM
By: Alex-05