bueno Lord querido amigo !!! la verdad eh leido tu post !!! y aun no estoy muy seguro de lo q quieres !!! .... segun tus anteriores mensajes ... estas tratando de hacer menus que se desplieguen verdad ¿? pero no estoy seguro de q tipo lo quieres.... o si lo quieres hacer con HTML o con solo CSS...!!!! pero al grano !!! ... YO SOLO CONOSCO dos tipos de menus .. PRUEBALOS Y ME DICES SI TE JALA O NO TE JALA ..!!! HEHE
UN SALUDO ..!!!
EL PRIMER MENU ..!!!
<ul>
<li id="foldheader">Desplegable 1
Enlace 1
Enlace 2
Enlace 3
<li id="foldheader">Desplegable 2
Enlace 1
Enlace 2
Enlace 3
<li id="foldheader">Desplegable 3
Enlace 1
Enlace 2
<li id="foldheader">SubDesplegable 1
Enlace 1
Enlace 2
Enlace 3
Enlace 4
<script language="JavaScript1.2">
<!--
/**
* (www.yomaster.com)
*/
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) {
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
if (get_cookie(window.location.pathname) != ''){
var openresults=get_cookie(window.location.pathname).split(" ")
for (i=0 ; i < openresults.length ; i++){
foldinglist[openresults].style.display=''
document.all[foldinglist[openresults].sourceIndex -
1].style.listStyleImage="url(open.gif)"
}
}
if (document.all){
var nodelength=foldinglist.length-1
var nodes=new Array(nodelength)
var openones=''
}
function check(){
for (i=0 ; i <= nodelength ; i++){
if (foldinglist.style.display=='')
openones=openones + " " + i
}
document.cookie=window.location.pathname+"="+openones
}
if (document.all)
document.body.onunload=check
//-->
</script>SOLO COPIA Y PEGA DONDE QUIERES Q SALGA EL MENU !!!!
EL OTRO ... menu q conosco ... es asi....!!!!!!Copia y pega esto entre las etiquetas <Head> y </Head> de tu pag<SCRIPT>
function change_site() {
var site = document.monform.monpopup.selectedIndex;
if (confirm('Are you sure you want to change site?')) {
window.location.href =
document.monform.monpopup.options.value;
}
}
</SCRIPT>
Copia y pega esto entre las etiquetas <Body> y </Body> de tu pag<FORM NAME='monform'>
<SELECT NAME='monpopup' onChange="change_site();">
<OPTION></OPTION>
<OPTION VALUE="
http://www.microsoft.com">Microsoft
</OPTION>
<OPTION VALUE="
http://www.apple.com">Apple
</OPTION>
<OPTION VALUE="
http://www.ibm.com">IBM
</OPTION>
</SELECT>
</FORM>