Ho trovato questo menù, cioè quello che serve a me:
http://www.html.it/articoli/36909/esempi/menu.html
E la mia pagina html è:
Il codice CSS è:codice:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>index</title> <link rel="stylesheet" type="text/css" href="css/stilesito.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript"> $(function() { if ($.browser.msie && $.browser.version.substr(0,1)<7) { $('li').has('ul').mouseover(function(){ $(this).children('ul').show(); }).mouseout(function(){ $(this).children('ul').hide(); }) } }); </script> <style> * { font-family: sans-serif; line-height: 1.5 } .range_test { display: none; font-weight: bold; } html#range_0 #p_0 { /* Stile da 0px to 760px */ display: block; } html#range_1 #p_1 { /* Stile da 760px to 980px */ display: block; } html#range_2 #p_2 { /* Stile da 980px to 1280px */ display: block; } html#range_3 #p_3 { /*Stile da 1280px to 1600px */ display: block; } html#range_4 #p_4 { /* Stile da 1600px to 1920px */ display: block; } html#range_5 #p_5 { /* Stile oltre 1920px */ display: block; } </style> <script> // Chiamata adapt.js function myCallback(i, width) { document.documentElement.id = 'range_' + i; } var ADAPT_CONFIG = { dynamic: true, callback: myCallback, range: [ '0 to 760', '760 to 980', '980 to 1280', '1280 to 1600', '1600 to 1920', '1920' ] }; </script> <script src="stilemenu/assets/js/adapt.min.js"></script> </head> <body> <img alt="full screen background image" src="images/piazza.png" id="full-screen-background-image" /> <p class="range_test" id="p_0"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> <p class="range_test" id="p_1"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> <p class="range_test" id="p_2"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> <p class="range_test" id="p_3"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> <p class="range_test" id="p_4"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> <p class="range_test" id="p_5"> <a href="Home.html"><img src="images/tastohome.png" width="66" height="20" border=”0″ hspace=”0″></a><a href="Terminiecondizioni.html"><img src="images/tastotermini.png" width="174" height="20" border=”0″ hspace=”0″></a><a href="lavoraconnoi.html"><img src="images/tastolavora.png" width="136" height="20" border=”0″ hspace=”0″></a><a href="Contatti.html"><img src="images/tastocontatti.png" width="88" height="20" border=”0″ hspace=”0″></a> </p> </body> </html>
Come devo fare?codice:html, body { height: 100%; width: 100%; padding: 0; margin: 0; } #full-screen-background-image { z-index: -999; min-height: 100%; min-width: 1024px; width: 100%; height: auto; position: fixed; top: 0; left: 0; } #full-screen-barra { z-index: -999; min-height: 100%; min-width: 1024px; width: 100%; height: 33%; position: fixed; top: 0; left: 0; } #wrapper { position: relative; width: 800px; min-height: 400px; margin: 100px auto; color: #333; } .range_test {background: url(barra.png)}

Rispondi quotando

