Foros del Web » Programando para Internet » Javascript »

En Internet Explorer pero no en Firefox

Estas en el tema de En Internet Explorer pero no en Firefox en el foro de Javascript en Foros del Web. Hola a todos: En esta página http://www.novoprintinformatica.com/trucos.asp , pasando con el ratón por encima de Ver CATEGORÍAS , muestra una capa con un menú para ...
  #1 (permalink)  
Antiguo 07/09/2006, 08:25
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
En Internet Explorer pero no en Firefox

Hola a todos:

En esta página http://www.novoprintinformatica.com/trucos.asp, pasando con el ratón por encima de Ver CATEGORÍAS, muestra una capa con un menú para poder ir a los diferentes tipos de trucos.

Cada nombre de tipo tiene en el atributo href de la etiqueta vínculo esta instrucción javascript, dónde además se pasa el tipo de trucos que ha elegido el usuario y la resolución de pantalla para según ésta se muestre un paginado de 4 ó de 7 trucos:

Código:
...
<a href="javascript: window.location.href('trucos.asp?catTruc=<%
Impresoras&resol='+screen.width);" class="linkVerde" 
onmouseover="window.status=' ::  Categor&iacute;a \'Impresoras\'  ::';
return true" onmouseout="window.status='';return true">Impresoras</a>
...
Bueno, pues la cuestión es que en el navegador de Internet Explorer al clicar en la opción deseada abre el documento con el listado elegido (es decir que el vínculo funciona) y en el navegador de Firefox (y supongo que pasará igual con el Netscape) al pulsar no hace nada (el vínculo no funciona aunque tampoco de error; si bien el hecho que se quede sin ir al sitio indicado ya sea un error)

¿Alguien me puede decir por qué y cómo solucionarlo?

Gracias a toda propuesta sugerida...

Saludos,

zacktagnan.
=================================================
  #2 (permalink)  
Antiguo 08/09/2006, 04:38
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Buenas de nuevo:

¿Es que no tiene solución ó nadie saber cómo solucionarlo?

¿Es que vincular con [ ="javascript: window.location.href('trucos.asp?catTruc=TipoTruco &... ] no funicona para los navegadores que no son Internet Explorer...?

Saludos,

zacktagnan.
===================================
  #3 (permalink)  
Antiguo 08/09/2006, 04:41
Avatar de djreficul  
Fecha de Ingreso: julio-2006
Ubicación: Cork
Mensajes: 672
Antigüedad: 17 años, 10 meses
Puntos: 0
Creo q cuando usas window.location.href debes igualar...

Código HTML:
javascript: window.location.href='trucos.asp?catTruc=<%
Impresoras&resol='+screen.width;
Y en caso de usar el replace es cuando se ponen paréntesis:

Código HTML:
javascript: window.location.replace('trucos.asp?catTruc=<%
Impresoras&resol='+screen.width);
Saludos.
__________________
La muerte es un camino que todos debemos recorrer...
  #4 (permalink)  
Antiguo 08/09/2006, 07:46
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Gracias djreficul

(que ya me explicarás de dónde viene el nombre. Así a bote pronto y descomponiéndolo: dj de ¿dj de discoteca?, ..., cul de cool y refi ...)

Esto de las incompatibilidades entre navegadores. Ya se podrían poner de acuerdo y hacerlo más facilito...
La simple cosa de poner '=' en vez de '( ... )'

Y lo del '... javascript: window.location.replace('paginaDestino.asp?paramet ro1=dato1&resol='+screen.width); ...'
¿para qué sirve?
No sé si lo he visto alguna vez, ó no me acuerdo de su utilidad...

Saludos,

zacktagnan.
======================================
  #5 (permalink)  
Antiguo 08/09/2006, 10:10
Avatar de djreficul  
Fecha de Ingreso: julio-2006
Ubicación: Cork
Mensajes: 672
Antigüedad: 17 años, 10 meses
Puntos: 0
No se si tendrán alguna diferencia internamente pero el resultado al fin y al cabo es el mismo, cambiar la dirección url de la página en la q estás navegando.

Sobre lo de mi nick dj es eso mismo q dices pero solo como hobbie, mezclo en casa pa mí. ReficuL es mejor q lo leas al revés, jejeje. Simplemente me gusta el nombre, jeje.

Saludos.
__________________
La muerte es un camino que todos debemos recorrer...
  #6 (permalink)  
Antiguo 11/09/2006, 10:25
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Pues...vale.
  #7 (permalink)  
Antiguo 08/10/2006, 14:42
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Este es otro problema que me ha surgido.

Se trata de un código que muestra u oculta capas de texto al pasar con el ratón por encima de un menú.
Y me pasa lo mismo que en el primer problema expuesto: funciona bien en el Internet Explorer. Pero en el Netscape ó el Firefox no produce efecto alguno
¿Alguien me podría decir en esto caso por qué?

Este es el código en dos partes:

(1ª parte)

Código:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mostrar/Ocultar Capas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css_js/novoCSS.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
	var idtd;
	var nc = (document.layers) ? true:false
	var ie = (document.all) ? true:false
	var n6 = (document.getElementById) ? true:false

	function mostrarcapa(id,latd) {
	idtd = latd;
		if(nc) {
			document.principal.document.fondo.document.layers[id].visibility="show";
		}
		else if(ie) {
			document.all[id].style.visibility="visible";
		}
		else if(n6) {
			document.getElementById(id).style.visibility="visible";
		}
	}

	function ocultartodo() {
		if(nc) {
			document.principal.document.fondo.document.layers[paso0txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso1txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso2txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso3txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso4txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso5txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso6txt].visibility="hidde";
			document.principal.document.fondo.document.layers[paso7txt].visibility="hidde";
		}
		else if(ie) {
			document.all['paso0txt'].style.visibility="hidden";
			document.all['paso1txt'].style.visibility="hidden";
			document.all['paso2txt'].style.visibility="hidden";
			document.all['paso3txt'].style.visibility="hidden";
			document.all['paso4txt'].style.visibility="hidden";
			document.all['paso5txt'].style.visibility="hidden";
			document.all['paso6txt'].style.visibility="hidden";
			document.all['paso7txt'].style.visibility="hidden";
		}
		else if(n6) {
			document.getElementById(paso0txt).style.visibility="hidden";
			document.getElementById(paso1txt).style.visibility="hidden";
			document.getElementById(paso2txt).style.visibility="hidden";
			document.getElementById(paso3txt).style.visibility="hidden";
			document.getElementById(paso4txt).style.visibility="hidden";
			document.getElementById(paso5txt).style.visibility="hidden";
			document.getElementById(paso6txt).style.visibility="hidden";
			document.getElementById(paso7txt).style.visibility="hidden";
		}
	}

	function cambio_colover(idcelda){
		//EFECTO DE onmouseout PARA TODOS
		cambio_colout();
		//EFECTO DE onmouseover PARA EL ELEGIDO
		idcelda.style.color = "#009933";
		idcelda.style.backgroundColor = "#feefb1";
		idcelda.style.fontWeight = "bold";
		idcelda.style.cursor = "pointer";
		if (idtd == 'paso0') {
		document.getElementById('paso0img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso1') {
		document.getElementById('paso1img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso2') {
		document.getElementById('paso2img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso3') {
		document.getElementById('paso3img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso4') {
		document.getElementById('paso4img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso5') {
		document.getElementById('paso5img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso6') {
		document.getElementById('paso6img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
		else if (idtd == 'paso7') {
		document.getElementById('paso7img').style.backgroundImage = 'url(imags/icoListaPasos_v.gif)';
		}
	}
	function cambio_colout(){
		paso0.style.color = "#000000";
		paso0.style.backgroundColor = "#eeeeee";
		paso0.style.fontWeight = "";
		paso1.style.color = "#000000";
		paso1.style.backgroundColor = "#eeeeee";
		paso1.style.fontWeight = "";
		paso2.style.color = "#000000";
		paso2.style.backgroundColor = "#eeeeee";
		paso2.style.fontWeight = "";
		paso3.style.color = "#000000";
		paso3.style.backgroundColor = "#eeeeee";
		paso3.style.fontWeight = "";
		paso4.style.color = "#000000";
		paso4.style.backgroundColor = "#eeeeee";
		paso4.style.fontWeight = "";
		paso5.style.color = "#000000";
		paso5.style.backgroundColor = "#eeeeee";
		paso5.style.fontWeight = "";
		paso6.style.color = "#000000";
		paso6.style.backgroundColor = "#eeeeee";
		paso6.style.fontWeight = "";
		paso7.style.color = "#000000";
		paso7.style.backgroundColor = "#eeeeee";
		paso7.style.fontWeight = "";
		document.getElementById('paso0img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso1img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso2img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso3img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso4img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso5img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso6img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
		document.getElementById('paso7img').style.backgroundImage = 'url(imags/icoListaPasos_n.gif)';
	}
//-->
</script><style type="text/css">
<!--
.negrita {
	font-weight: bold;
}
.top {
	vertical-align: top;
}
-->
</style></head>
(la 2ª parte en el siguiente mensaje)
  #8 (permalink)  
Antiguo 08/10/2006, 15:01
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
(2ª parte)

Código:
<body onload="ocultartodo();mostrarcapa('paso0txt','paso0');">
<p>[[ Mostrando / Ocultando CAPAS ]]</p>
<div align="justify">
<table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="top" style="width:76%;"><div id="paso0txt" style="position:absolute;"><span class="negrita">[Paso 0]</span>
      <p>It is the star to every wand'ring bark, love's not time's fool, though rosy lips and cheeks that looks on tempests and is never shaken. Love alters not with his brief hours and weeks, which alters when it alteration finds, within his bending sickle's compass come. Or bends with the remover to remove.</p>
      <p>Oh, no, it is an ever fixed mark it is the star to every wand'ring bark, let me not to the marriage of true minds. Admit impediments; love is not love which alters when it alteration finds, whose worth's unknown, although his height be taken. Love alters not with his brief hours and weeks. Oh, no, it is an ever fixed mark it is the star to every wand'ring bark, within his bending sickle's compass come.</p>
      <p>Which alters when it alteration finds, let me not to the marriage of true minds but bears it out even to the edge of doom. If this be error and upon me proved, admit impediments; love is not love oh, no, it is an ever fixed mark. Which alters when it alteration finds, it is the star to every wand'ring bark, love's not time's fool, though rosy lips and cheeks. Or bends with the remover to remove.</p></div>
<div id="paso1txt" style="position:absolute;"><span class="negrita">[Paso 1]</span>
  <p>Measure the process, not the people. Combined with optimal use of human resources, quantitative analysis of all the key ratios has a vital role to play in this to ensure that non-operating cash outflows are assessed. Organizations capable of double-loop learning, through the  adoption of a proactive stance, the astute manager can adopt a position at the vanguard. Empowerment of all personnel, not just key operatives, working through a top-down, bottom-up approach, the new golden rule gives enormous power to those individuals and units.</p></div>
<div id="paso2txt" style="position:absolute;"><span class="negrita">[Paso 2]</span>
  <p>Consectetur, adipisci velit, quis autem vel eum iure reprehenderit et quasi architecto beatae vitae. Nam libero tempore, omnis voluptas assumenda est, qui in ea voluptate. Cum soluta nobis est eligendi optio similique sunt in culpa qui officia deserunt mollitia animi, iste natus error sit voluptatem. Neque porro quisquam est, praesentium voluptatum deleniti dicta sunt explicabo. Quis autem vel eum iure reprehenderit ut aut reiciendis voluptatibus maiores alias excepturi sint occaecati cupiditate non provident.</p>
  <p>Itaque earum rerum hic tenetur a sapiente delectus, ullam corporis suscipit laboriosam, aut odit aut fugit. Neque porro quisquam est, nemo enim ipsam voluptatem magnam aliquam quaerat voluptatem. Excepturi sint occaecati cupiditate non provident, at vero eos et accusamus et iusto odio et harum quidem rerum facilis est.</p></div>
<div id="paso3txt" style="position:absolute;"><span class="negrita">[Paso 3]</span>
  <p>Consectetur adipisicing elit, eu fugiat nulla pariatur. Ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat sunt in culpa sed do eiusmod tempor incididunt. Consectetur adipisicing elit, eu fugiat nulla pariatur.</p>
  <p>Quis nostrud exercitation mollit anim id est laborum. Ullamco laboris nisi duis aute irure dolor consectetur adipisicing elit. Ut enim ad minim veniam, qui officia deserunt mollit anim id est laborum. Ut aliquip ex ea commodo consequat. Ullamco laboris nisi in reprehenderit in voluptate excepteur sint occaecat.</p></div>
<div id="paso4txt" style="position:absolute;"><span class="negrita">[Paso 4]</span>
  <p>That looks on tempests and is never shaken; or bends with the remover to remove. Let me not to the marriage of true minds it is the star to every wand'ring bark, within his bending sickle's compass come. Love alters not with his brief hours and weeks, which alters when it alteration finds, oh, no, it is an ever fixed mark. But bears it out even to the edge of doom. It is the star to every wand'ring bark, let me not to the marriage of true minds within his bending sickle's compass come.</p>
  <p>Whose worth's unknown, although his height be taken. Love's not time's fool, though rosy lips and cheeks. Let me not to the marriage of true minds which alters when it alteration finds, that looks on tempests and is never shaken. Oh, no, it is an ever fixed mark love alters not with his brief hours and weeks, it is the star to every wand'ring bark.</p></div>
<div id="paso5txt" style="position:absolute;"><span class="negrita">[Paso 5]</span>
  <p>That will indubitably lay the firm foundations for any leading company measure the process, not the people. The components and priorities for the change program to experience a profound paradigm shift, benchmarking against industry leaders, an essential process, should be a top priority at all times. To ensure that non-operating cash outflows are assessed. Motivating participants and capturing their expectations, as knowledge is fragmented into specialities building flexibility through spreading knowledge and self-organization. Defensive reasoning, the doom loop and doom zoom in order to build a shared view of what can be improved, building a dynamic relationship between the main players.</p></div>
<div id="paso6txt" style="position:absolute;"><span class="negrita">[Paso 6]</span>
  <p>Qui in ea voluptate vel illum qui dolorem eum fugiat praesentium voluptatum deleniti. Dicta sunt explicabo. Nisi ut aliquid ex ea commodi consequatur? Eaque ipsa quae ab illo inventore veritatis qui ratione voluptatem sequi nesciunt.</p>
  <p>Temporibus autem quibusdam omnis voluptas assumenda est, accusantium doloremque laudantium. Aut odit aut fugit, quis autem vel eum iure reprehenderit dignissimos ducimus qui blanditiis. Sed quia non numquam eius modi saepe eveniet ut et voluptates repudiandae sint velit esse quam nihil molestiae consequatur. Quis nostrum exercitationem tempora incidunt ut labore et dolore et expedita distinctio. Qui dolorem ipsum quia dolor sit amet, totam rem aperiam, consequatur aut perferendis doloribus asperiores repellat.</p></div>
<div id="paso7txt" style="position:absolute;"><span class="negrita">[Paso 7]</span>
  <p>Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Consectetur adipisicing elit, cupidatat non proident, in reprehenderit in voluptate. Excepteur sint occaecat sunt in culpa ut enim ad minim veniam.</p>
  <p>Qui officia deserunt eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipisicing elit, ullamco laboris nisi. Quis nostrud exercitation ut labore et dolore magna aliqua. Duis aute irure dolor sunt in culpa.</p></div></td>
    <td class="top" style="padding-right:5px; padding-left:5px; background-image:url(imags/separa_gris.gif);width:2%;">&nbsp;</td>
    <td class="top" style="width:22%;"><table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td id="paso0" style="padding:5px; color:#009933; background-color:#feefb1; font-weight:bold;" onmouseover="ocultartodo();mostrarcapa('paso0txt','paso0');cambio_colover(this);">0<img id="paso0img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 00</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso1" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso1txt','paso1');cambio_colover(this);">1<img id="paso1img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 01</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso2" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso2txt','paso2');cambio_colover(this);">2<img id="paso2img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 02</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>

(sigue en el siguiente mensaje)
  #9 (permalink)  
Antiguo 08/10/2006, 15:06
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
(3ª parte y última)


Código:
  <tr>
    <td id="paso3" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso3txt','paso3');cambio_colover(this);">3<img id="paso3img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 03</td>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso4" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso4txt','paso4');cambio_colover(this);">4<img id="paso4img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 04</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso5" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso5txt','paso5');cambio_colover(this);">5<img id="paso5img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 05</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso6" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso6txt','paso6');cambio_colover(this);">6<img id="paso6img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 06</td>
  </tr>
  <tr>
    <td><img src="imags/invisible.gif" alt="" width="1" height="5" border="0" /></td>
  </tr>
  <tr>
    <td id="paso7" style="padding:5px; background-color:#eeeeee;" onmouseover="ocultartodo();mostrarcapa('paso7txt','paso7');cambio_colover(this);">7<img id="paso7img" style="background-image:url(imags/icoListaPasos_n.gif)" height="5" alt="" hspace="3" src="imags/invisible.gif" width="6" vspace="1" border="0" />Paso 07</td>
  </tr>
</table></td>
  </tr>
</table></div>
</body>
</html>

Bueno, ya tenéis todo el código, y así podéis probarlo.

A ver si alguien me dice porque da resultado en Internet Explorer y en los navegadores como Netscape ó Firefox no produce efecto alguno. Y me dice como solucionarlo. Gracias por las posibles soluciones...

Saludos,

zacktagnan.
=============================================
  #10 (permalink)  
Antiguo 09/10/2006, 12:33
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
¿Ninguna solución para este problema entre navegadores y capas?...
  #11 (permalink)  
Antiguo 10/10/2006, 10:24
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Perdón por la reiteración, pero...

Entonces, ¿no hay solución para el segundo problema planteado? ¿Otra manera de programar todo para que funcione igualmente en el Firefox...?

Saludos,

zacktagnan.
================================================
  #12 (permalink)  
Antiguo 11/10/2006, 03:17
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Bueno, pues nada... Ninguna solución propuesta...

Igual tenía que haber puesto la segunda cuestión abriendo un nuevo tema, y no aprovechando a poner todo en el mismo junto a la primera cuestión que planteé...

Pues eso,...

Saludos,

zacktagnan.
=========================================
  #13 (permalink)  
Antiguo 12/10/2006, 16:13
 
Fecha de Ingreso: diciembre-2003
Mensajes: 1.583
Antigüedad: 20 años, 4 meses
Puntos: 13
Código:
document.getElementById('paso0txt').style.visibility="hidden";
si en el parámetro de getelementsById() no usas comillas paso0txt será considerado como un nombre de variable (que no existe). Tienes que usar comillas (dobles o simples) para que ese nombre sea considerado como una cadena de texto.
  #14 (permalink)  
Antiguo 13/10/2006, 03:30
Avatar de zacktagnan  
Fecha de Ingreso: abril-2005
Mensajes: 501
Antigüedad: 19 años, 1 mes
Puntos: 3
Gracias frijolerou por la respuesta. La misma a la que llegué ayer por la tarde. Tarde que me pasé intentando resolver este problema y viendo finalmente, como dices que en los casos del if para navegadores tipo n6 no vale poner:

( en funciones como ocultartodo() )
document.getElementById(paso0txt).style.visibility ="hidden";

( cambio_colover(idcelda) )
idcelda.style.color = "#009933";

( cambio_colout() )
paso0.style.color = "#000000";

Como hay que ponerlo para que funcione tanto en Internet Explorer como en Netscape ó Firefox es:

( en funciones como ocultartodo() )
document.getElementById("paso0txt").style.visibili ty="hidden";

( cambio_colover(idcelda) )
document.getElementById(idcelda).style.color = "#009933";

( cambio_colout() )
document.getElementById("paso0").style.color = "#000000";

También descubrí otra cosa que no funciona para Netscape o Firefox. El hacer la llamada a la siguiente función con el parámetro "this" haciendo referencia al id de la celda en cuestión. Esto sólo tiene resultado para Internet Explorer por lo que he visto:

onmouseover="ocultartodo();mostrarcapa('paso0txt', 'paso0');cambio_colover(this);" //[así sólo para Internet Explorer]

Para que funcione para todos hay que pasar directamente el id de la celda:

onmouseover="ocultartodo();mostrarcapa('paso0txt', 'paso0');cambio_colover('paso0');" //[para todos]


Pues eso, nada más. Gracias por las ayudas. Y tras las correcciones dichas ya funciona correctamente.
Bueno, un último apunte necesario sobre todo para los no Internet Explorer. Y es que también hace falta definirles por medio de estilos a las capas una anchura y el atributo visibility...

Nada más...

Saludos,

zacktagnan.
======================================
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:12.