if (TransMenu.isSupported()) { //================================================================================================== // create a set of dropdowns //================================================================================================== // the first param should always be down, as it is here // // The second and third param are the top and left offset positions of the menus from their actuators // respectively. To make a menu appear a little to the left and bottom of an actuator, you could use // something like -5, 5 // // The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner // of the actuator from which to measure the offset positions above. Here we are saying we want the // menu to appear directly below the bottom left corner of the actuator //================================================================================================== var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft); //================================================================================================== // create a dropdown menu //================================================================================================== // the first parameter should be the HTML element which will act actuator for the menu //================================================================================================== var menu1 = ms.addMenu(document.getElementById("institucion")); menu1.addItem("Presentación", "presentacion.html"); menu1.addItem("Breve reseña histórica", "#"); menu1.addItem("Estatuto", "estatutos.html"); menu1.addItem("Organización", "#"); var submenu0 = menu1.addMenu(menu1.items[1]); submenu0.addItem("Introducción", "introduccion.html"); submenu0.addItem("Fundación", "fundacion.html"); submenu0.addItem("Finales del siglo XIX", "sigloxix.html"); submenu0.addItem("El siglo XX", "sigloxx.html"); submenu0.addItem("El símbolo de la abeja", "abeja.html"); var submenu1 = menu1.addMenu(menu1.items[3]); submenu1.addItem("Junta Directiva", "junta.html"); submenu1.addItem("Jurado", "jurado.html"); var menu2 = ms.addMenu(document.getElementById("edificio")); menu2.addItem("El edificio", "edificio.html"); menu2.addItem("Planta baja", "#"); menu2.addItem("Primera planta", "#"); menu2.addItem("Segunda planta", "segunda_planta.html"); menu2.addItem("Nivel inferior del jardín", "nivel_inferior.html"); var submenu2 = menu2.addMenu(menu2.items[1]); submenu2.addItem("Conserjería", "accesos.html"); submenu2.addItem("Salón de tertulias", "tertulias.html"); submenu2.addItem("Sala de presidentes", "presidentes.html"); submenu2.addItem("Jardín", "jardin.html"); submenu2.addItem("Salón largo", "salon_largo.html"); submenu2.addItem("Salón rotonda", "salon_rotonda.html"); submenu2.addItem("Cafetería y aparcamientos", "cafeteria.html"); var submenu3 = menu2.addMenu(menu2.items[2]); submenu3.addItem("Salón de juego y tertulias", "salon_juego.html"); submenu3.addItem("Biblioteca modernista", "biblioteca.html"); submenu3.addItem("Oficina y comedor privado", "oficina.html"); var menu3 = ms.addMenu(document.getElementById("servicios")); menu3.addItem("Conserjería, secretaría y cafetería", "conserjeria.html"); menu3.addItem("Biblioteca y hemeroteca", "hemeroteca.html"); menu3.addItem("Información al socio", "informacion_socio.html"); menu3.addItem("Correspondencia con otras sociedades", "correspondencia.html"); menu3.addItem("Exposiciones y auditorios", "exposiciones.html"); menu3.addItem("Reuniones de negocios o empresa", "reuniones.html"); menu3.addItem("Gastronomía", "gastronomia.html"); menu3.addItem("Pluviometría", "pluviometria.asp"); var menu4 = ms.addMenu(document.getElementById("noticias")); menu4.addItem("Agenda", "agenda.asp"); menu4.addItem("Noticias", "noticias.asp"); var menu5 = ms.addMenu(document.getElementById("socios")); menu5.addItem("Introducción", "introduccion_socios.html"); menu5.addItem("Club joven", "club_joven.html"); menu5.addItem("Fiestas Sociales", "fiestas_sociales.html"); menu5.addItem("Admisión de socios", "admision.html"); menu5.addItem("ACCESO PRIVADO", "privado.asp"); TransMenu.renderAll(); }