ciao...
ho trovato questo menu semplicissimo..ma lo vorrei orrizzontale!
Io ho provato un pochino..e sono riuscita solo a mettere le voci di menù in orrizontale..ma poi quando clicco su "menu1" ecco che mi si sballa tutto!
potete aiutarmi?!
vi posto il codice?!
codice:<HTML> <HEAD> <TITLE>Menu verticale espandibile</TITLE> <style> A:link, A:visited { text-decoration: none } A:hover { text-decoration: underline } </style> <style type="text/css"> .titolomenu{ cursor: pointer; margin-bottom: 2px; background-color: #ECECFF; color: #000000; width: 140px; padding: 2px; text-align: center; /*font-weight: bold;*/ border: 1px solid #000000; font-family:Verdana, Arial, Helvetica; font-size:8pt; color:#000066; } .menu_int{ width: 140px; margin-bottom: 0.5em; font-family:Verdana, Arial, Helvetica; font-size:10px; color:#FF6600; border:1px solid #999999; background-color:#e6e6dc; text-align: left; } </style> <script language="JavaScript" type="text/javascript"> if (document.getElementById){ document.write('<style type="text/css">\n') document.write('.menu_int{display: none;}\n') document.write('</style>\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("principale").getElementsByTagName("span"); if(el.style.display != "block"){ for (var i=0; i<ar.length; i++){ if (ar[i].className=="menu_int") ar[i].style.display = "none"; } el.style.display = "block"; }else{ el.style.display = "none"; } } } </script> </HEAD> <BODY BGCOLOR="white" vlink="blue" link="blue"> <div id="principale"> <div class="titolomenu" onclick="SwitchMenu('1')">menu1</div> <span class="menu_int" id="1"> - voce1 - voce1 </span> <div class="titolomenu" onclick="SwitchMenu('2')">menu2</div> <span class="menu_int" id="2"> - voce2 - voce2 </span> </div> </BODY> </HTML>
grazie!
lisì

Rispondi quotando
