Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/09/2010, 13:37
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: ComboBox con HTML

No estoy seguro si lo que queres es que la script construya el vinculo o que funcione como un menu y te refdirija directamente.
Para la primera opción que es lo que mas mas se asemeja a tu ejemplo seria

Código HTML:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <title>html 4.01 transitional</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  5. <meta http-equiv="content-script-type" content="text/javascript">
  6. <script type="text/javascript">
  7. <!--//
  8. function crearlink(Sel){
  9. if (Sel.ad.selectedIndex != 0){
  10. var link = Sel.ad.options[Sel.ad.selectedIndex].value
  11. document.write("<a href='" + link + "'>" + link + "<\/a><br>");
  12. document.write("<a href='javascript:history.back\(\)\;'>volver<\/a><br>");
  13. }
  14. }
  15. //-->
  16. </head>
  17. <form action="">
  18. <select name="ad" onchange="crearlink(this.form)">
  19. <option selected> ---</option>
  20. <option value="1.htm">texto 1</option>
  21. <option value="2.htm">texto 2</option>
  22. <option value="3.htm">texto 3</option>
  23. </form>
  24. </body>
  25. </html>

aunque la segunda me parece más logica

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.