Foros del Web » Creando para Internet » HTML »

Crear Lista/Menú

Estas en el tema de Crear Lista/Menú en el foro de HTML en Foros del Web. Buenas a todos les expongo, quiero hacer una lista menu que al seleccionar una opcion y presionar el botor de "ver" me abra la pagina ...
  #1 (permalink)  
Antiguo 02/08/2007, 12:15
 
Fecha de Ingreso: agosto-2007
Ubicación: Mexico
Mensajes: 2
Antigüedad: 16 años, 8 meses
Puntos: 0
Crear Lista/Menú

Buenas a todos

les expongo, quiero hacer una lista menu que al seleccionar una opcion y presionar el botor de "ver" me abra la pagina relacionada a la opcion seleccionada

la pregunta es como la relaciono?

tengo este codigo para la lista/menu

Código HTML:
<option value="0" selected="selected">Selecciona una Marca</option>
	        <option value="Acura">Acura</option>
			<option value="Audi">Audi</option>
			<option value="BMW">BMW</option>
			<option value="Buick">Buick</option>
			<option value="Cadillac">Cadillac</option>
			<option value="Chevrolet">Chevrolet</option>
			<option value="Chrysler">Chrysler</option>
			<option value="Daewoo">Daewoo</option>
			<option value="Datsun">Datsun</option>
			<option value="Dodge">Dodge</option>
			<option value="Eagle">Eagle</option>
			<option value="Fiat">Fiat</option>
			<option value="Ford">Ford</option>
			<option value="Geo">Geo</option>
			<option value="Gmc">Gmc</option>
			<option value="Honda">Honda</option>
			<option value="Hyundai">Hyundai</option>
			<option value="Infiniti">Inifiniti</option>
			<option value="Jaguar">Jaguar</option>
			<option value="Kia">Kia</option>
			<option value="Lexus">Lexus</option>
			<option value="Lincoln">Lincoln</option>
			<option value="Mazda">Mazda</option>
			<option value="Mercedes Benz">Mercedes Benz</option>
			<option value="Mercury">Mercury</option>
			<option value="Mini">Mini</option>
			<option value="Mitsubishi">Mitsubishi</option>
			<option value="Nissan">Nissan</option>
			<option value="Oldsmobile">Oldsmobile</option>
			<option value="Plymouth">Plymouth</option>
			<option value="Pontiac">Pontiac</option>
			<option value="Porshe">Porshe</option>
			<option value="Renault">Renault</option>
			<option value="Saab">Saab</option>
			<option value="Saturn">Saturn</option>
			<option value="Seat">Seat</option>
			<option value="Subaru">Subaru</option>
			<option value="Suzuki">Suzuki</option>
			<option value="Toyota">Toyota</option>
			<option value="Volkswagen">Volkswagen</option>
			<option value="Volvo">Volvo</option>
        </select> 

y este es el codigo del boton "ver"

Código HTML:
<input name="Submit" type="button" id="Submit" onclick="JSClick( &quot;redirige.asp&quot;)"redirige.asp" )" value="Ver" /> 

me pasaron este codigo para un archivo .asp que se supone va a hacer esa funcion, pero no se si la estoy poniendo bien

Código HTML:
<%
opcion=trim(Request.Form("Select"))
If option=Acura Then Response.Redirect("Acura.html") End If
If option=AMC Then Response.Redirect("AMC.html") End If
If option=Audi Then Response.Redirect("Audi.html") End If
If option=BMW Then Response.Redirect("BMW.html") End If
If option=Buick Then Response.Redirect("Buick.html") End If
If option=Cadillac Then Response.Redirect("Cadillac.html") End If
If option=Chevrolet Then Response.Redirect("Chevrolet.html") End If
If option=Chrysler Then Response.Redirect("Chrysler.html") End If
If option=Daewoo Then Response.Redirect("Daewoo.html") End If
If option=Datsun Then Response.Redirect("Datsun.html") End If
If option=Dodge Then Response.Redirect("Dodge.html") End If
If option=Eagle Then Response.Redirect("Eagle.html") End If
If option=Fiat Then Response.Redirect("Fiat.html") End If
If option=Ford Then Response.Redirect("Ford.html") End If
If option=Geo Then Response.Redirect("Geo.html") End If
If option=Gmc Then Response.Redirect("Gmc.html") End If
If option=Honda Then Response.Redirect("Honda.html") End If
If option=Hyundai Then Response.Redirect("Hyundai.html") End If
If option=Infiniti Then Response.Redirect("Infiniti.html") End If
If option=Jaguar Then Response.Redirect("Jaguar.html") End If
If option=Kia Then Response.Redirect("Kia.html") End If
If option=Lexus Then Response.Redirect("Lexus.html") End If
If option=Lincoln Then Response.Redirect("Lincoln.html") End If
If option=Mazda Then Response.Redirect("Mazda.html") End If
If option=Mercedes Benz Then Response.Redirect("Mercedez.html") End If
If option=Mercury Then Response.Redirect("Mercury.html") End If
If option=Mini Then Response.Redirect("Mini.html") End If
If option=Mitsubishi Then Response.Redirect("Mitsubishi.html") End If
If option=Nissan Then Response.Redirect("Nissan.html") End If
If option=Oldsmobile Then Response.Redirect("Oldsmobile.html") End If
If option=Plymouth Then Response.Redirect("Plymouth.html") End If
If option=Pontiac Then Response.Redirect("Pontiac.html") End If
If option=Porshe Then Response.Redirect("Porshe.html") End If
If option=Renault Then Response.Redirect("Renault.html") End If
If option=Saab Then Response.Redirect("Saab.html") End If
If option=Saturn Then Response.Redirect("Saturn.html") End If
If option=Seat Then Response.Redirect("Seat.html") End If
If option=Subaru Then Response.Redirect("Subaru.html") End If
If option=Suzuki Then Response.Redirect("Suzuki.html") End If
If option=Toyota Then Response.Redirect("Toyota.html") End If
If option=Volkswagen Then Response.Redirect("vdub.html") End If
If option=Volvo Then Response.Redirect("Volvo.html") End If
%
Gracias por tomarse la molestia de leerlo
  #2 (permalink)  
Antiguo 05/08/2007, 09:01
 
Fecha de Ingreso: agosto-2007
Mensajes: 22
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: Crear Lista/Menú

Hola Celeron, lo que quieres hacer es muy fácil, me imagino que lo que quieres hacer es añadir un link en cada una de las marcas.

Si tu página esta en html, ponle los links en html, si esta en asp ponselo en asp.
no se mucho de asp pero creo que al final le falta cerrar %/>

Esta bien.
  #3 (permalink)  
Antiguo 09/08/2007, 10:51
 
Fecha de Ingreso: agosto-2007
Ubicación: Mexico
Mensajes: 2
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: Crear Lista/Menú

hola, mira por aca puse el mismo tema y esta mas fluido

http://www.cristalab.com

Gracias
  #4 (permalink)  
Antiguo 10/08/2007, 18:47
 
Fecha de Ingreso: agosto-2007
Ubicación: Victoria, Tams. México.
Mensajes: 15
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: Crear Lista/Menú

Cita:
Iniciado por celeron Ver Mensaje
hola, mira por aca puse el mismo tema y esta mas fluido

http://www.cristalab.com

Gracias

Celeron, creo que el problema está en el nombre del combo, lo podrías poner.. 2.. cuando recuperas el valor y lo validas, creo que es conveniente que pongas los valores entre comillas "".. Ejemplo
If option="Renault" Then Response.Redirect("Renault.html")

Espero tu respuesta para ayudarte de mejor manera y dejo también el contacto

Saludos
Oscar Damian Gámez Maldonado
[email protected]
htp://www.sofcom.com.mx
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 14:26.