donde dice http, debes poner el link de esa pagina, y donde dice texto, es lo que la gente verá. ojo! no modifiques donde dice "urldestino" para añadir o quitar paginas, modifica esta frase: ------------------------ tambien podemos hacer de varias categorias, por ejemplo 3 seria asi:
____________________________ Participa ahora en el TOP WEB JYDAQUI premios, afililiaciones, ranking...etc ------------------------ Horario disponible de soporte: fines de semana
Cantidad de envíos: 14151 Puntos de posteo: 11301 inscripción: 06/08/2007
Tema: Re: menus desplegables Miér Nov 12, 2008 4:11 pm
tipo cascada: (esto imita como el menu de inicio de tu pc) este es un poco mas complejo, NO MODIFIQUE NADA MAS QUE EL LINK HTTP: Y EL TEXTO, pegalo todo junto donde quieras que salga abre spoiler porque ocupa mucho..
Spoiler:
Código:
<HTML> <HEAD> <STYLE TYPE="text/css"> /* Make the menu float to the left of the text. */ #menu {float:left; width:50pt; background:lightgrey; border:2px white outset; cursor:default} /* Hide the pop-up menus initially. */ #menu .popup {position:absolute; display:none; background:lightgrey; border:2px white outset; width:135pt; margin:2pt} #menu P {margin-top:0pt; margin-bottom:0pt} .over {color:navy; font-weight:bold} </STYLE> <script LANGUAGE="Javascript"> var curPop = null;
function clearCurrent() { // Hide the pop-up menu that is currently displayed. if (null != curPop) curPop.style.display = ""; curPop = null; }
function popup() { var el = event.srcElement; clearCurrent(); // Display a new menu option. if (("P" == el.tagName) && ("menu" == el.parentElement.id)) { // Position and display the pop-up menu. var elpop = document.all[el.sourceIndex + 1]; elpop.style.pixelLeft = document.all.menu.offsetLeft + document.all.menu.offsetWidth - 7; elpop.style.pixelTop = el.offsetTop + document.all.menu.offsetTop; elpop.style.display = "block"; curPop = elpop; } event.cancelBubble = true; }
function highlight() { // Highlight the menu options. if (null != event.fromElement) if ((event.fromElement.tagName == "P") && (event.fromElement.parentElement.id == "menu")) event.fromElement.className = ""; if (null != event.toElement) if ((event.toElement.tagName == "P") && (event.toElement.parentElement.id == "menu")) event.toElement.className = "over"; } </script>
cada pagina a: A HREF="http://">TEXTO para editar el menu, al principio localiza:
vista descanso: - float:left = alineacion en la pagina (left= izquierda, right= derecha, top= arriba, button= abajo, center=centrado)
- background:lightgrey = el color del cuadro, en este caso un tono gris (grey)
- border:2px white = al grosor, tiene 2 px de color blanco
/* Make the menu float to the left of the text. */ #menu {float:left; width:50pt; background:lightgrey; border:2px white outset; cursor:default} /* Hide the pop-up menus initially. */
vista onclick - ademas: width:135pt = al tamaño del cuadro
- margin = la colocacion geografica en la pagina
- font-weight:bold = es el tipo de fuente de texto
#menu .popup {position:absolute; display:none; background:lightgrey; border:2px white outset; width:135pt; margin:2pt} #menu P {margin-top:0pt; margin-bottom:0pt} .over {color:navy; font-weight:bold}
____________________________ Participa ahora en el TOP WEB JYDAQUI premios, afililiaciones, ranking...etc ------------------------ Horario disponible de soporte: fines de semana
Cantidad de envíos: 14151 Puntos de posteo: 11301 inscripción: 06/08/2007
Tema: Re: menus desplegables Miér Nov 12, 2008 5:06 pm
menu css editable esta es la madre de todas jeje. esta ya si es mucho mas compleja, pero es editable de tipo de desplegable (hacia donde queremos que abra al pasar el mouse), color, tamaño, links...etc... AQUI VEREIS EL RESULTADO, Y AL TIEMPO LA FUENTE ORIGINAL DE DONDE SALE http://www.saulo.net/pub/dweb/dhtml-menu.htm
<script> function marcar(opc, a) { var color = "navy"; var bkcolor = "#BFD8D8"; if (a == true) { color = "white"; bkcolor = "navy"; } document.all[opc].style.backgroundColor = bkcolor; document.all[opc].style.color = color; }
function vermenu1() { document.all['menu1'].style.visibility="visible";
document.all['menu2'].style.visibility="hidden";
document.all['menu3'].style.visibility="hidden"; document.all['menu4'].style.visibility="hidden"; } function vermenu2() { vermenu1(); document.all['menu2'].style.visibility="visible"; } function vermenu3() { vermenu2(); document.all['menu3'].style.visibility="visible"; } function vermenu4() { vermenu2(); document.all['menu4'].style.visibility="visible"; }
function ir(url) { window.open ("http://" + url); } </script>
ahora mas abajo, donde esta el body del menu, aqui por ejemplo google. donde lo pinté de azul será lo que se verá en los botones, y el verde donde debemos escribir la direccion de la web
____________________________ Participa ahora en el TOP WEB JYDAQUI premios, afililiaciones, ranking...etc ------------------------ Horario disponible de soporte: fines de semana