Foros del Web » Programando para Internet » Javascript »

problema java script

Estas en el tema de problema java script en el foro de Javascript en Foros del Web. hola como estan todos tengo un pequeno problema con un pequeno codigo el codigo es el sigte <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> <head> <meta http-equiv="Content-Type" content="text/html; ...
  #1 (permalink)  
Antiguo 02/01/2010, 14:27
 
Fecha de Ingreso: enero-2010
Mensajes: 24
Antigüedad: 14 años, 3 meses
Puntos: 0
De acuerdo problema java script

hola como estan todos tengo un pequeno problema con un pequeno codigo el codigo es el sigte

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>INGMATICA©</title>
<script type="text/javascript" src="flashobject.js"></script>

<style type="text/css">
<!--
.centrado {
text-align: center;
font-weight: bold;
color: #FFF;
}
body,td,th {
color: #F00;
}
-->
</style>
</head>

<body bgcolor="#000" class="centrado">
<script languague="javascript">
if(screen.width == 64, screen.height == 64){
var myFlashObject = new FlashObject("a.swf", "a", screen.width-60, screen.height-195, 9, "#000");
myFlashObject.addParam("scale", "noscale");
myFlashObject.write();
} else if(screen.width == 1280, screen.height == 1024){
var myFlashObject = new FlashObject("a.swf", "a", screen.width-30, screen.height-210, "#000");
myFlashObject.addParam("scale", "noscale");
myFlashObject.write();
} else if(screen.width == 1400, screen.height == 1050){
var myFlashObject = new FlashObject("a.swf", "a", screen.width-50, screen.height-260, "#000");
myFlashObject.addParam("scale", "noscale");
myFlashObject.write();
} else if(screen.width == 1024, screen.height == 768){
var myFlashObject = new FlashObject("b.swf", "b", screen.width-20, screen.height-210, "#000");
myFlashObject.addParam("scale", "noscale");
myFlashObject.write();
} else(document.writeln("ESTE INTRO NO ACEPTA ESTA RESOLUCION, DEBES TENER UNA DE LAS SIGTES. RESOLUCIONES. <p> '1024x768, 1280x800, 1280x1024, 1280x1024, 1400x1050, 1440x900' <p> SALTAR INTRO "))

</script>
</body>
</html>

lo q quisiera es insertarle un hipervinculo al mensaje de rojo el q dice saltar intro si alguien puede ayudarme grasias
  #2 (permalink)  
Antiguo 04/01/2010, 09:37
Avatar de Fuzzylog  
Fecha de Ingreso: agosto-2008
Ubicación: En internet
Mensajes: 2.511
Antigüedad: 15 años, 7 meses
Puntos: 188
Respuesta: problema java script

<a href ... etc etc> SALTAR INTRO </a>

Y envías a la página a la q quieres enviarla. Normalmente cuando haces una intro esa no suele ser la página de inicio, sinó la de presentación, que redirige a la de inicio cuando finaliza la reproducción del flash de la intro.
  #3 (permalink)  
Antiguo 05/01/2010, 11:43
 
Fecha de Ingreso: enero-2010
Mensajes: 24
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: problema java script

pero no entiendo algo este codigo <a href ... etc etc> SALTAR INTRO </a> la palabra saltar intro solo me redirecciona al mismo archicvo del intro y quisiera ponerle un link externo fuera del archivo de mi intro como lo ago grasias
  #4 (permalink)  
Antiguo 07/01/2010, 11:19
Avatar de Fuzzylog  
Fecha de Ingreso: agosto-2008
Ubicación: En internet
Mensajes: 2.511
Antigüedad: 15 años, 7 meses
Puntos: 188
Respuesta: problema java script

al href le tienes que añadir ese link externo

<a href="rutaNuevoLink"> SALTAR INTRO </a>
  #5 (permalink)  
Antiguo 07/01/2010, 11:19
Avatar de Fuzzylog  
Fecha de Ingreso: agosto-2008
Ubicación: En internet
Mensajes: 2.511
Antigüedad: 15 años, 7 meses
Puntos: 188
Respuesta: problema java script

no sé que ha pasado pero algún botón no funcionó como debería xD (en forosdelweb)

Última edición por Fuzzylog; 07/01/2010 a las 11:20 Razón: ?
  #6 (permalink)  
Antiguo 07/01/2010, 11:27
Avatar de David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Hola, ningunoi.

Traslado el tema a una sección que encaja mejor con tu pregunta.
Tema trasladado desde la sección de Java.

Saludos.
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.

Etiquetas: java
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:38.