Newsgroup: it.comp.lang.javascript
Titolo: Menu di navigazione Aiuto

Il seguente codice permette l'apertura di un  menu cliccando su di una voce.
Cliccando sulla nuova voce apparsa, appaiono dei link. Come posso aggiungere
un'ulteriore voce secondaria sotto a quella apparsa dopo il primo clic, ma
successiva ai link di essa?
So che è complicato spiegarmi e sto facendo diversi esperimenti (sono già
riuscito a fare molti passi avanti) ma ora non ci sto capendo più niente. Se
qualcuno può aiutarmi per piacere!
Grazie
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
<!--
var Open = ""
var Closed = ""
function showhide(what){
if (what.style.display=='none'){
what.style.display='';
}
else{
what.style.display='none'
}
}
-->
</script>
</head>
<body onload="preload()" bgcolor="#ffffff" text="#000000" link="#0000FF"
vlink="#FF0000">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="167" height="109" valign="top"><img src="logo_3.jpg"
width="167" height="109"></td>
    <td width="263" valign="top"><img src="logo2_3.jpg" width="263"
height="109"></td>
    <td width="174" valign="top"><img src="buttons_3.jpg" width="174"
height="109"></td>
    <td width="100" valign="top"><img src="button_end_3.jpg" width="100"
height="109"></td>
    <td width="100%" valign="top"><img src="end_3.jpg" width="100%"
height="109"></td>
  </tr>
</table>
<table width="167" height="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="167" height="213" valign="top" background="b_logo_3_ok.jpg">
<font face="Verdana" size="2">
&nbsp;<span id="menu1" onClick="showhide(menu1head)" style="cursor:hand;
font-Family:Verdana; text-decoration:none;
font-weight:bold">Informatica</span><br>
&nbsp;&nbsp;<span id="menu1head" onClick="showhide(menu1outline)"
style="cursor:hand; font-Family:Verdana; text-decoration:none;
display:'none'; font-weight:normal">Vendita Hardware</span><br>
<span id="menu1outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="listino_hard.htm"
target="_blank">Listino</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="offerte_hard.htm"
target="_blank">Offerte</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu2" onClick="showhide(menu2outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none;
font-weight:bold">Rigenerazione</span><br>
<span id="menu2outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm" target="_blank">Ink
jet</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Laser</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Info</a><br>
</span>
<br />
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
<!--
var Open = ""
var Closed = ""
function showhide(what){
if (what.style.display=='none'){
what.style.display='';
}
else{
what.style.display='none'
}
}
-->
</script>
</head>
<body onload="preload()" bgcolor="#ffffff" text="#000000" link="#0000FF"
vlink="#FF0000">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="167" height="109" valign="top"><img src="logo_3.jpg"
width="167" height="109"></td>
    <td width="263" valign="top"><img src="logo2_3.jpg" width="263"
height="109"></td>
    <td width="174" valign="top"><img src="buttons_3.jpg" width="174"
height="109"></td>
    <td width="100" valign="top"><img src="button_end_3.jpg" width="100"
height="109"></td>
    <td width="100%" valign="top"><img src="end_3.jpg" width="100%"
height="109"></td>
  </tr>
</table>
<table width="167" height="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="167" height="213" valign="top" background="b_logo_3_ok.jpg">
<font face="Verdana" size="2">
&nbsp;<span id="menu1" onClick="showhide(menu1head)" style="cursor:hand;
font-Family:Verdana; text-decoration:none;
font-weight:bold">Informatica</span><br>
&nbsp;&nbsp;<span id="menu1head" onClick="showhide(menu1outline)"
style="cursor:hand; font-Family:Verdana; text-decoration:none;
display:'none'; font-weight:normal">Vendita Hardware</span><br>
<span id="menu1outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="listino_hard.htm"
target="_blank">Listino</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="offerte_hard.htm"
target="_blank">Offerte</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu2" onClick="showhide(menu2outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none;
font-weight:bold">Rigenerazione</span><br>
<span id="menu2outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm" target="_blank">Ink
jet</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Laser</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Info</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu3" onClick="showhide(menu3outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none;
font-weight:bold">Tipografia</span><br>
<span id="menu3outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Nuovo</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Usato</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="first_home.htm"
target="_blank">Assistenza</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu4" onClick="showhide(menu4outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none; font-weight:bold">Mail
Services4</span><br>
<span id="menu4outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://www.hotmail4.com
"
target="_blank">Hotmail4</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo4.com
"
target="_blank">Yahoo Mail4</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu5" onClick="showhide(menu5outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none; font-weight:bold">Mail
Services5</span><br>
<span id="menu5outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://www.hotmail5.com
"
target="_blank">Hotmail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu6" onClick="showhide(menu6outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none; font-weight:bold">Mail
Services6</span><br>
<span id="menu6outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://www.hotmail7.com
"
target="_blank">Hotmail85</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
</span>
<br />
<font face="Verdana" size="2">
&nbsp;<span id="menu7" onClick="showhide(menu7outline)" style="cursor:hand;
font-Family:Verdana; text-decoration:none; font-weight:bold">Mail
Services7</span><br>
<span id="menu7outline" style="display:'none'">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://www.hotmail8.com
"
target="_blank">Hotmail75</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="
http://mail.yahoo5.com
"
target="_blank">Yahoo Mail5</a><br>
</span>
</td>
  </tr>
  <tr>
    <td height="100%" valign="top"><img src="left_gray_3.jpg" width="167"
height="100%"></td>
  </tr>
 </table>
</body>
</html>

Chiedo scusa il codice è questo.



</head>








Ciao,
io non ho capito bene.
Per rifarmi al tuo esempio:
 - la seconda voce secondaria dovrebbe apparire sotto Informatica e prima di
Rigenerazione?
 - quando dovrebbe apparire? al click sulla voce Informatica?
magari prova a mandare un codice  html con un menu statico già espanso (a
meno che qualcun altro non abbia capito e ti risponda già)
ciao
Ktrl+S
I

 ha scritto nel messaggio
news:2i80ghF...@uni-berlin.de...
