Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/09/2009, 14:11
Avatar de zerokilled
zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años, 9 meses
Puntos: 1485
Respuesta: no ejecuta el script

@Betina,
con tu propio ejemplo me funciona.

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>PCDATA</title>
<script type="text/javascript">

</script>
</head><body>

<a href='sigpag.htm?Opc1' >Primera opción</a>
<a href='sigpag.htm?Opc2' >segunda opción</a>
<a href='sigpag.htm?Opc3' >tercera opción</a></body></html>
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>PCDATA</title>
<script type="text/javascript">
var r="";
r=location.search.substr(1);

switch (r)
{
case "Opc1":
alert(1);
break;

case "Opc2":
alert(2)
break;

case "Opc3":
alert(3);
break;

}
</script>
</head><body>

</body></html>
lo mas probable sea las instrucciones que tienes en cada case.
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.