pagineroma wrote:
ho prvato a mettere la funzione che mi hai suggerito ma mi sballa tutto l'indice a sinistra ci puo dare tu un'occhita , grazie
Ciao, ho trovato diversi errori, ho fatto una veloce revisione, prova a guardare questo:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<!
Authors: .it -->
<!
E-mail: com -->
<!
Copyright: -->
<!
Script: -->
<head>
<title>Tenuta Pietra Pinta</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" /> <meta content=" - " name="Author" />
<meta content=" " name="keywords" />
<meta content="" name="description" />
<meta content="Copyright (c) Your copyright here 2009" name="Copyright" /> <link href="stili/grapes.css" rel="stylesheet" type="text/css" /> <script type="text/javascript">
function mmenu(mID)
{
var uls = document.getElementsByTagName("ul");
for (i=0;i<uls.length;i++)
{
if(uls[i].className=="submenu") uls[i].style.display = "none"; }
var menu = document.getElementById(mID);
var menu = document.getElementById(mID);
var display = menu.style.display;
menu.style.display = (display == "block") ? "none" : "block"; menu.parentNode.style.listStyleImage = (display == "block") ? "url(cartellachiusa.gif)" : "url(cartellaaperta.gif)";
var display = menu.style.display;
menu.style.display = (display == "block") ? "none" : "block"; menu.parentNode.style.listStyleImage = (display == "block") ? "url(cartellachiusa.gif)" : "url(cartellaaperta.gif)";
}
function subMenu(mID){
}
window.onload = function() {
var uls = document.getElementsByTagName("ul");
for (i=0;i<uls.length;i++){
if(uls[i].className=="submenu")uls[i].style.display = "none"; }
javascript:setInterval('slideShow()',1000);
}
// slideshow image counter
var h = 0;
function slideShow()
{
// set up list of images
slidesArray = new Array()
slidesArray[0]="img1.jpg"
slidesArray[1]="img2.jpg"
slidesArray[2]="img1.jpg"
slidesArray[3]="img2.jpg"
slidesArray[4]="img1.jpg"
// load image
var img1 = document.getElementById("image1")
img1.src=slidesArray[h]
// increment counter
h=h+1;
// when at the end, start again
if(h==5) { h=0; }
}
</script>
</head>
<body>
<!--<body onload="javascript:setInterval('slideShow()',1000);">--> <form>
<div id="container">
<div id="hdr">
<p align="center">
<img alt="smile" height="180" src="images/head_panorama.jpg" width="950" />
</p>
<h1>
<marquee align="middle" direction="up" height="100" scrollamount="1" width="560">
<font color="black" size="4" style="font-style: italic; font-family: Calibri">
La tenuta "PIETRA PINTA" vi aspetta..</font> </marquee> </h1> <p id="tagline"></p>
</div>
<div id="lftcol">
<ul id="nav">
<li class="menu"><a id="current" href="index_pietrapinta.asp"> <font color="yellow" face="Tahoma" size="1">HOME </font></a> </li>
<li class="menu"><a href="azienda_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">AZIENDA </font></a> </li>
<li class="menu"><a href="territorio_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">TERRITORIO </font> </a></li>
<li class="menu"><a href="agriturismo_pietrapinta.html"> <font color="yellow" face="Tahoma" size="1">AGRITURISMO </font> </a></li>
<li class="menu"><a href="javascript:subMenu('submenu-1-1')"> <font color="yellow" face="Tahoma" size="1">PRODOTTI </font></a> <ul id="submenu-1-1" class="submenu">
<li class="menu">
<a href="javascript:subMenu('submenu-1-1-1')">
<font color="yellow" face="Tahoma" size="1">VINI ROSSI</font></a> <ul id="submenu-1-1-1" class="submenu">
<li><a href="Colle_amato.html">
<font face="calibri" size="1">Colle amato</font></a></li> <li><a href="Costa_Vecchia.html">
<font face="calibri" size="1">Costa vecchia</font></a></li> <li><a href="Merlot.html"><font face="calibri" size="1"> Merlot</font></a></li>
<li><a href="Petit_Verdot.html">
<font face="calibri" size="1">Petit verdot</font></a></li> <li><a href="Shiraz.html"><font face="calibri" size="1"> Shiraz</font></a></li>
</ul>
</li>
<li class="menu">
<a href="javascript:subMenu('submenu-1-1-1-1')">
<font color="yellow" face="Tahoma" size="1">VINI BIANCHI</font></a> <ul id="submenu-1-1-1-1" class="submenu">
<li><a href="Chardonnay.html">
<font face="calibri" size="1">Chardonnay</font></a></li> <li><a href="Falanghina.html">
<font face="calibri" size="1">Falanghina</font></a></li> <li><a href="Vendemmia_Tardiva.html">
<font face="calibri" size="1">Vendemmia tardiva</font></a></li> </ul>
</li>
<li class="menu">
<a href="javascript:subMenu('submenu-1-1-1-1-1')">
<font color="yellow" face="Tahoma" size="1">VINI ROSE</font></a> <ul id="submenu-1-1-1-1-1" class="submenu">
<li><a href="Chic.html"><font face="calibri"
size="1">Chic</font></a></li>
</ul>
</li>
<li class="menu">
<a href="javascript:subMenu('submenu-1-1-1-1-1-1')">
<font color="yellow" face="Tahoma" size="1">L'OLIO</font></a> <ul id="submenu-1-1-1-1-1-1" class="submenu">
<li><a href="Olio_Extra_Vergine_di_Oliva.html">
<font face="calibri" size="1">olio extra vergine</font></a></li> </ul>
</li>
<li class="menu">
<a href="javascript:subMenu('submenu-1-1-1-1-1-1-1')">
<font color="yellow" face="Tahoma" size="1">SOTT'OLI</font></a> <ul id="submenu-1-1-1-1-1-1-1" class="submenu">
<li><a href="peperoni.html">
<font face="calibri" size="1">peperoni </font></a></li> <li><a href="carciofi.html">
<font face="Calibri" size="1">Carciofi</font></a></li> <li><a href="Melanzane.html">
<font face="Calibri" size="1">Melanzane</font></a></li> </ul>
</li>
</ul>
</li>
<li class="menu"><a href="frantoio_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">FRANTOIO</font></a></li> <li class="menu"><a href="cantina_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">CANTINA</font></a></li> <li class="menu"><a href="galleria_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">GALLERIA</font></a></li> <li class="menu"><a href="dove_siamo_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">DOVE SIAMO</font></a></li> <li class="menu"><a href="contatti_pietrapinta.html">
<font color="yellow" face="Tahoma" size="1">CONTATTI</font></a></li> </ul>
<br />
<br />
<br />
<br />
<div id="quote">
<p><em>Tenuta Pietra Pinta<br />
Via Pr />km 20+200 CORI (LT)<br />
1<br />
<a href="">t</a></em></p>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h3>Agriturismo</h3>
<ul>
<li><font color=""></font>
<a
href="
TERRITORIOhttp://validator.w3.org/check?uri=referer">TERRITORIO</a></li> <li>
<a href="
AZIENDAhttp://jigsaw.w3.org/css-validator/check/referer"> AZIENDA</a></li>
<li><a href="
CANTINAhttp://www.davereederdesign.com/">CANTINA</a></li> <li><a href="
FRANTOIOhttp://www.oswd.org/">FRANTOIO</a></li> <li><a href="
PRODOTTIhttp://www.oswd.org/">PRODOTTI</a></li> </ul>
</div>
<div id="rgtcol">
<br />
<h2>IL TERRITORIO</h2>
<hr /><br />
<img id="image1" height="50" name="image1" src="img1.jpg" width="50" /> <br />
<br />
</div>
<div id="bttmbar">
Informativa sulla Privacy <a href="
">Scrivi al webmaster</a></div> </div>
</form>
</body>
</html>
Non so il motivo ma manca il codice della funzione subMenu che serve per far espandere il menu.