 
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ArteDelWeb.it - WebDesign, Photoshop, Tutorial &#187; Menu</title>
	<atom:link href="http://www.artedelweb.it/tag/menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.artedelweb.it</link>
	<description>Artedelweb è un blog che propone guide e tutorial in italiano su Photoshop.</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:16:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Come creare una fantastica barra di navigazione con jQuery e CSS3</title>
		<link>http://www.artedelweb.it/come-creare-una-fantastica-barra-di-navigazione-con-jquery-e-css3/</link>
		<comments>http://www.artedelweb.it/come-creare-una-fantastica-barra-di-navigazione-con-jquery-e-css3/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 16:45:20 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[bar]]></category>
		<category><![CDATA[barra]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[fade]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[Navigazione]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1408</guid>
		<description><![CDATA[Un buon ed efficace menu di navigazione è indispensabile all&#8217;interno di un sito web per permettere ad un utente di navigare in maniera semplice ed intuitiva tra i suoi contenuti. A livello di design possiamo notare spesso come tutta la struttura di una pagina web giri in torno al menu rendendolo elemento centrale anche a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.artedelweb.it/wp-content/uploads/2010/01/prev2.jpg" alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" width="500" height="200" class="alignnone size-full wp-image-1418" /><br />
Un buon ed efficace <strong>menu di navigazione</strong> è <em>indispensabile </em>all&#8217;interno di un sito web per permettere ad un utente di navigare in maniera <em>semplice ed intuitiva</em> tra i suoi contenuti. A livello di design possiamo notare spesso come tutta la struttura di una pagina web <em>giri in torno</em> al menu rendendolo <strong>elemento centrale</strong> anche a livello strutturale e grafico. Ma, ora, bando alle ciance, e veniamo al dunque; in questa guida vedremo come creare un attraente menu di navigazione potenziato da<strong> jQuery</strong>. La sua particolarità è la <strong>completa e facilissima personalizzazione</strong>. Infatti utilizzeremo <strong>una sola immagine</strong> cercando di sfruttare tutte le<em> potenzialità di CSS3</em>.<br />
<span id="more-1408"></span><br />
La barra di navigazione è stata testata ed è compatibile con Firefox e Chrome, mentre non lo è <em>(e ti pareva)</em> con IE, per motivi che credo siano ovvi.<br />
Potete vedere una demo cliccando <a href="http://artedelweb.it/wp-content/uploads/2010/01/tutorial_menu_artedelweb/">qui</a>, mentre scaricare i file utilizzati cliccando <a href="http://www.artedelweb.it/wp-content/uploads/2010/01/tutorial_menu_artedelweb.zip">qui</a>.<br />
Ecco come sarà organizzato il nostro menu:</p>
<p><a class="lightbox" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" href="http://www.artedelweb.it/wp-content/uploads/2010/01/110.jpg" class="lightbox"><img class="alignnone size-full wp-image-1409" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" src="http://www.artedelweb.it/wp-content/uploads/2010/01/110.jpg" alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" width="425" height="250" /></a></p>
<p>Ma in cosa consiste il dinamismo conferito dal jQuery in questo menu? Semplice, al passaggio su una categoria, questa si <em>allargherà </em>rivelando delle brevi parole di spiegazione. Un effetto molto accattivante a livello visivo!</p>
<p>Per prima cosa, dobbiamo creare la nostra sfumatura lineare in Photoshop.  Create, quindi, un documento (1x50px) e vi applicate un gradiente che và dal #8d8d8d (in alto) al #4a4a4a (in basso). Infine salvatelo con il nome &#8220;bg_nav.jpg&#8221;.</p>
<p>I file su cui lavoreremo saranno<em> index.html</em> e <em>style.css</em>.. iniziamo a scrivere un pò di html!</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;nav&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Home<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;more&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Vai alla homepage<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Tutorials<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;more&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Leggi le nostre guide<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ispirations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;more&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Prendi inspirazione<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photography<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;more&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Guarda la nostra galleria fotografica<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;more&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Sfoglia le ultime guide sul web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Naturalmente le varie voci del menu verranno inserite in una lista, ed in ogni voce potrete notare uno <em>span. </em>In questo verrà inserito il contenuto aggiuntivo da mostrare. Senza alcun CSS, ecco come si mostrerà la pagina:</p>
<p><a class="lightbox" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" href="http://www.artedelweb.it/wp-content/uploads/2010/01/24.jpg" class="lightbox"><img class="alignnone size-full wp-image-1411" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" src="http://www.artedelweb.it/wp-content/uploads/2010/01/24.jpg" alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" width="388" height="125" /></a></p>
<p>Iniziamo a scrivere qualche riga di convenzione nel CSS in modo tale che tutti i <em>browser vedano allo stesso modo</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span> h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span>
tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>..impostiamo il colore di sfondo:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#171717</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ed iniziamo a personalizzare il menu. Il primo passo, consisterà nel creare la barra di sfondo.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span><span style="color: #00AA00;">&#123;</span>
//Utilizziamo lo sfondo precedentemente creato con <span style="color: #993333;">repeat-x</span> in modo tale che si ripeta orizzontalmente.
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_nav.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
//Impostiamo l\altezza del menu pari a <span style="color: #933;">50px</span> mentre la larghezza <span style="color: #933;">100%</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
//Aggiungiamo un margine superiore <span style="color: #00AA00;">&#40;</span>opzionale naturalmente<span style="color: #00AA00;">&#41;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Dovreste ottenere una cosa del genere:<br />
<a class="lightbox" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" href="http://www.artedelweb.it/wp-content/uploads/2010/01/34.jpg" class="lightbox"><img class="alignnone size-full wp-image-1412" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" src="http://www.artedelweb.it/wp-content/uploads/2010/01/34.jpg" alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" width="413" height="225" /></a></p>
<p>Impostiamo un margine e l&#8217;altezza pari a 100% alla lista:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>E iniziamo a personalizzare i singoli elementi della lista:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> li<span style="color: #00AA00;">&#123;</span>
//Tramite questa stringa di codice possiamo modificare tonalità del gradiente rendendolo maggiormente scuro. I primi <span style="color: #cc66cc;">3</span> valori <span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span> costituiscono il codice RGB del nostro colore <span style="color: #00AA00;">&#40;</span>in questo caso nero<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> mentre l\ultimo l\opacità. Ciò ci permette di creare infinite combinazione di gradienti utilizzando solo una stringa di codice anzichè un\immagine!
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span>rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
//Rendiamo i vari elementi disposti orizzontalmente
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
//Aggiungiamo dei <span style="color: #000000; font-weight: bold;">padding</span> e dei <span style="color: #000000; font-weight: bold;">margin</span> per rendere il tutto più gradevole
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
//Impostiamo l\altezza pari a <span style="color: #933;">90%</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">90%</span><span style="color: #00AA00;">;</span>
//Il <span style="color: #000000; font-weight: bold;">line-height</span> serve a posizionare il testo all\interno dell\elemento ad una certa altezza
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
//Impostiamo come cursore la manina
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
//Utilizziamo le varie potenzialità di CSS3<span style="color: #00AA00;">,</span> prima creando i bordi arrotondati<span style="color: #00AA00;">,</span> poi<span style="color: #00AA00;">,</span> creando <span style="color: #933;">1px</span> di luce dal basso<span style="color: #00AA00;">,</span> facendo uso della tecnica del pixel popping
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
//Formattiamo il testo
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Segoe </span>UI<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ed ora passiamo a cambiare il colore e ad azzerare le decorazioni dei link all&#8217;interno del menu</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Impostiamo gli eventi al passaggio del mouse e al click:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
//Come detto prima<span style="color: #00AA00;">,</span> grazie ad rgba<span style="color: #00AA00;">,</span> andremo a schiarire il gradiente al passaggio del mouse..
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span>rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> li<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span>
//Mentre a scurirlo al click
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span>rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Infine impostiamo lo stile per il testo aggiuntivo, rendendolo non visibile:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.more<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">8pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span>rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Il vostro menu dovrebbe presentarsi così:</p>
<p><a class="lightbox" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" href="http://www.artedelweb.it/wp-content/uploads/2010/01/44.jpg" class="lightbox"><img class="alignnone size-full wp-image-1415" title="Come creare una fantastica barra di navigazione con jQuery e CSS3" src="http://www.artedelweb.it/wp-content/uploads/2010/01/44.jpg" alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" width="400" height="151" /></a></p>
<p>Esteticamente è pronto! E&#8217; il momento di passare al <strong>jQuery</strong>, quindi, lo richiamiamo all&#8217;interno dell&#8217;html.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>E scriviamo il nostro script:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Lasciamo caricare tutti gli oggetti della pagina</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">//Al passaggio del mouse su una categoria</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#nav li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">//Si cercherà l'elemento con classe more all'interno di questa e verrà fatto comparire</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.more&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//Infine, grazie a questo piccolo trucchetto, dopo 750ms (1000 è un secondo) verrà fatto sparire</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.more&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeTo</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">750</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Ed ecco pronta la nostra barra di navigazione! Potete scaricare i file utilizzati cliccando <a href="http://www.artedelweb.it/wp-content/uploads/2010/01/tutorial_menu_artedelweb.zip">qui</a>, mentre vedere una demo cliccando <a href="http://artedelweb.it/wp-content/uploads/2010/01/tutorial_menu_artedelweb/">qui</a>. Per qualsiasi domanda o dubbio vi rimandiamo, come al solito, ai commenti <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Come creare una fantastica barra di navigazione con jQuery e CSS3" class='wp-smiley' title="Come creare una fantastica barra di navigazione con jQuery e CSS3 immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/come-creare-una-fantastica-barra-di-navigazione-con-jquery-e-css3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Realizziamo un fantastico menu potenziato da CSS 3 e jQuery</title>
		<link>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/</link>
		<comments>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 13:36:40 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[categorie]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[effetti]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Navigazione]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1266</guid>
		<description><![CDATA[Abbiamo già parlato sia del jQuery che del CSS 3 in alcuni articoli precedenti, mostrandone solo alcune delle potenzialità nella creazione di un form o di un bottone; oggi, invece, ci interesseremo a creare un menu verticale dinamico e versatile. Potete vedere una demo qui, mentre scaricare l&#8217;esempio da qui. Partiamo, innanzitutto, da una bozza [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/12/prev.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" width="500" height="200" class="alignnone size-full wp-image-1275" /><br />
Abbiamo già parlato sia del <strong>jQuery</strong> che del <strong>CSS 3</strong> in alcuni articoli precedenti, mostrandone solo alcune delle potenzialità nella <strong>creazione di un <a href="http://www.artedelweb.it/2009/11/23/creiamo-un-bellissimo-contact-form-in-jquery-e-php/">form</a> </strong>o di <strong>un <a href="http://www.artedelweb.it/2009/12/08/guida-creiamo-un-bottone-dagli-angoli-arrotondati-e-in-stile-web-2-0-con-css3/">bottone;</a></strong> oggi, invece, ci interesseremo <strong>a creare un menu verticale dinamico e versatile.</strong><br />
Potete vedere una demo <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/menu_navigazione"><strong>qui</strong></a>, mentre scaricare l&#8217;esempio da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/Menu_navigazione_jquery+css_artedelweb.zip"><strong>qui</strong></a>.<br />
<span id="more-1266"></span><br />
Partiamo, innanzitutto, da una bozza grafica del nostro menu fatta a mano o con un editor grafico per schiarirci le idee su ciò che vogliamo creare.<a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"></a></p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"></a><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"><img class="alignnone size-full wp-image-1268" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>Dobbiamo sempre ricordarci di minimizzare l&#8217;utilizzo di immagini dove è possibile in modo tale da rendere il nostro contenuto più veloce da modificare e più leggero da caricare per gli utenti.</p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/210.jpg" class="lightbox"><img class="alignnone size-full wp-image-1269" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/210.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>In pratica, quindi, ci serviranno <strong>solo 2 immagini</strong> per la creazione di questo menu: il gradiente verde e l&#8217;effetto pixel popping (1px shadow e 1px highlight) che potete vedere sotto ogni categoria. Ricordiamoci che i gradienti lineari, possono essere <strong>ripetuti orizzontalmente</strong> e quindi ci basterà utilizzare anche un solo pixel di larghezza; vale lo stesso per l&#8217;effetto pixel popping.</p>
<p>Iniziamo a scrivere un pò di codice! Per quanto riguarda l&#8217;organizzazione dei div, utilizzeremo qualcosa di simile:</p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/35.jpg" class="lightbox"><img class="alignnone size-full wp-image-1270" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/35.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>Che in codice, diventa:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_container&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	Categories
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_list&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ispirations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Ora impostiamo il nostro CSS; è tutto commentato e quindi credo sia abbastanza facile da capire:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Opzionale */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo il font che vogliamo utilizzare */</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Tahoma<span style="color: #00AA00;">,</span> Sans-Serif<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.cat_container<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Questo ci servirà per gl'angoli arrotondati del box grigio */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Questa è l'ombra esterna posizionata verso la fine del menu. RGBA presenta i 3 valori di Rosso, Verde e Blu e il canale Alpha per la trasparenza */</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo sfondo e la larghezza del menu */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e9e9e9</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Il padding ci servirà a far si che dopo le categorie ci sia un pò di spazio vuoto */</span>
<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.cat_title<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo, anche qui, gli angoli arrotondati */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Creiamo un'altra ombra */</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.35</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Utilizziamo il gradiente verde precedentemente creato con repeat-x in modo tale che si ripeta orizzontalmente */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_cat_title.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo il testo */</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo l'ombra di 1px */</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Line-height ci serve per centrare verticalmente il testo */</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Mettiamo un pò di margine a sinistra in modo tale che la scritta sia ben posizionata */</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo come cursore la manina */</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Eliminiamo il padding che di è default 50px */</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> li<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Utilizziamo come sfondo il divisore con effetto pixel popping, ripetuto orizzontalmente, e posizionato in basso */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">divisor.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Eliminiamo i pallini a fianco ad ogni voce della lista */</span>
<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Aggiungiamo un padding per posizionare meglio orizzontalmente il testo */</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo un l'altezza di ogni categoria */</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Formattiamo il testo */</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9c9c9c</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">9pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> a<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Formattiamo nuovamente il testo, nel caso in cui le categorie presentano un link */</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9c9c9c</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">9pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Utilizziamo un altro colore di sfondo al passaggio del mouse su una categoria */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e4e4e4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Già ora il nostro menu ha preso vita ed esteticamente è molto bello. Passiamo, però, all&#8217;aggiunta di qualche effetto jQuery per renderlo dinamico:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Quando sono carichi tutti i documenti della pagina, possono partire gli effetti jQuery</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">//Quando si passa sopra ad un link presente nel div &quot;cat_list&quot;..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Al link si aggiunge un padding-left di 20px, e l'effetto dura per 700 ms (1000 è un secondo)</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>paddingLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">20</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">//Quando si leva il mouse da un link del div &quot;cat_list&quot;..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Questo ritorna al padding originario (cioè 0)</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>paddingLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">//Quando si clicca sopra al div &quot;cat_title&quot; (cioè sopra al nome del menu)..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_title&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Il div &quot;cat_list&quot; verrà chiuso con un effetto slide</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Ed il nostro menu è pronto <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" class='wp-smiley' title="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery immagine" /> ; ecco il codice completo del file index.html:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color: #000066;">lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span> <span style="color: #000066;">xml:lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jQuery categories<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;style.css&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
// Quando sono carichi tutti i documenti della pagina, possono partire gli effetti jQuery
$(document).ready(function(){
	//Quando si passa sopra ad un link presente nel div &quot;cat_list&quot;..
	$(&quot;.cat_list a&quot;).mouseover(function () {
		//Al link si aggiunge un padding-left di 20px, e l'effetto dura per 700 ms (1000 è un secondo)
		$(this).animate({paddingLeft: 20}, 700);
	});
	//Quando si leva il mouse da un link del div &quot;cat_list&quot;..
	$(&quot;.cat_list a&quot;).mouseout(function () {
		//Questo ritorna al padding originario (cioè 0)
		$(this).animate({paddingLeft: 0}, 700);
	});
	//Quando si clicca sopra al div &quot;cat_title&quot; (cioè sopra al nome del menu)..
	$(&quot;.cat_title&quot;).click(function () {
		//Il div &quot;cat_list&quot; verrà chiuso con un effetto slide
		$(&quot;.cat_list&quot;).slideToggle(&quot;slow&quot;);
	});
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_container&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	Categories
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_list&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ispirations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Vi ricordo che potete scaricare il menu da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/Menu_navigazione_jquery+css_artedelweb.zip">qui</a>, e vedere una demo da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/menu_navigazione">qui</a>. Infine, vi rimando ai commenti per qualsiasi domanda o dubbio <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" class='wp-smiley' title="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 stupendi menù di navigazione con CSS e jQuery</title>
		<link>http://www.artedelweb.it/5-stupendi-menu-di-navigazione-con-css-e-jquery/</link>
		<comments>http://www.artedelweb.it/5-stupendi-menu-di-navigazione-con-css-e-jquery/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 18:05:48 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Menu jquery]]></category>
		<category><![CDATA[Navigazione]]></category>
		<category><![CDATA[pagina]]></category>
		<category><![CDATA[sito]]></category>
		<category><![CDATA[sito web]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=943</guid>
		<description><![CDATA[Un menù di navigazione efficace e che gestisce i contenuti di un sito web in modo coerente e coeso è certamente uno dei fondamenti su cui si regge una pagina web ben strutturata. Se poi, a queste caratteristiche aggiungiamo anche un bel design e qualche effetto speciale, allora sicuramente avremmo conquistato il nostro visitatore! Per questo [...]]]></description>
			<content:encoded><![CDATA[<p>Un <strong>menù di navigazione efficace</strong> e che gestisce i contenuti di un sito web in modo coerente e coeso è certamente uno dei fondamenti su cui si regge una pagina web ben strutturata. Se poi, a queste caratteristiche aggiungiamo anche un bel design e qualche <em>effetto speciale</em>, allora sicuramente avremmo <strong>conquistato il nostro visitatore</strong>!<br />
Per questo motivo, abbiamo raccolto <strong>5 diversi menu di navigazione</strong>, in CSS e jQuery, che forse possono fare il caso vostro <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="5 stupendi menù di navigazione con CSS e jQuery" class='wp-smiley' title="5 stupendi menù di navigazione con CSS e jQuery immagine" /> </p>
<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/10/menu_1.jpg" alt="5 stupendi menù di navigazione con CSS e jQuery" width="500" height="200" title="5 stupendi menù di navigazione con CSS e jQuery immagine" /><br />
<a href="http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html">Tutorial </a>| <a href="http://www.sohtanaka.com/web-design/examples/drop-down-menu/">Demo</a></p>
<p><span id="more-943"></span></p>
<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/10/menu_2.jpg" alt="5 stupendi menù di navigazione con CSS e jQuery" width="500" height="200" title="5 stupendi menù di navigazione con CSS e jQuery immagine" /><br />
<a href="http://net.tutsplus.com/tutorials/javascript-ajax/a-different-top-navigation/">Tutorial</a> | <a href="http://nettuts.s3.amazonaws.com/386_navigation/top-nav-demo/index.html">Demo</a></p>
<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/10/menu_3.jpg" alt="5 stupendi menù di navigazione con CSS e jQuery" width="500" height="200" title="5 stupendi menù di navigazione con CSS e jQuery immagine" /><br />
<a href="http://labs.makotokw.com/s/jquery/menu">Tutorial </a>|<a href="http://labs.makotokw.com/s/jquery/menu"> Demo</a></p>
<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/10/menu_4.jpg" alt="5 stupendi menù di navigazione con CSS e jQuery" width="500" height="200" title="5 stupendi menù di navigazione con CSS e jQuery immagine" /><br />
<a href="http://buildinternet.com/2009/01/how-to-make-a-smooth-animated-menu-with-jquery/">Tutorial</a> | <a href="http://buildinternet.com/live/smoothmenu/animated-menu.html">Demo</a></p>
<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/10/menu_5.jpg" alt="5 stupendi menù di navigazione con CSS e jQuery" width="500" height="200" title="5 stupendi menù di navigazione con CSS e jQuery immagine" /><br />
<a href="http://net.tutsplus.com/javascript-ajax/create-a-cool-animated-navigation-with-css-and-jquery/">Tutorial</a> | <a href="http://nettuts.s3.amazonaws.com/009_jQueryMenu/sm/result/index.html">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/5-stupendi-menu-di-navigazione-con-css-e-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashVortex: crea animazioni in flash online</title>
		<link>http://www.artedelweb.it/flashvortex-crea-online-animazioni-in-flash/</link>
		<comments>http://www.artedelweb.it/flashvortex-crea-online-animazioni-in-flash/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 14:12:29 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[Editor e generatori online]]></category>
		<category><![CDATA[Bottoni]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/2008/03/01/flashvortex-crea-online-animazioni-in-flash/</guid>
		<description><![CDATA[Oggi vi segnaliamo FlashVortex, un ottimo sito per la realizzazione di animazioni in flash. Senza registrazione, voi potrete generare menu, bottoni, banner e scritte con una bellissima animazione e per tutti i gusti! Potrete personalizzare al 100% la vostra creazione specificando testo, immagine, grandezza, animazione e quant&#8217;altro senza conoscenze specifiche del linguaggio flash ed actionscript! [...]]]></description>
			<content:encoded><![CDATA[<p><script src="http://www.flashvortex.com/hosted.php?id=2_1204381022_12571_151_0_137_209_6_1_7" type="text/javascript"></script><br />
Oggi vi segnaliamo<br />
<a href="http://www.flashvortex.com/">FlashVortex</a>, un ottimo sito per la realizzazione di animazioni in flash.<br />
Senza registrazione, voi potrete generare menu, bottoni, banner e scritte con una bellissima animazione e per tutti i gusti!<br />
Potrete personalizzare al 100% la vostra creazione specificando testo, immagine, grandezza, animazione e quant&#8217;altro senza conoscenze specifiche del linguaggio flash ed actionscript!<br />
<span id="more-159"></span>Al termine vi basterà copiare ed incollare il codice da loro generato oppure scaricare l&#8217;animazione.<br />
Giudizio finale?<br />
Sicuramente positivo: è un ottimo servizio che permette, anche ai meno esperti, di creare vere e proprie opere d&#8217;arte in flash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/flashvortex-crea-online-animazioni-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cssplay: menu in stile web 2.0 con rollover</title>
		<link>http://www.artedelweb.it/cssplay-menu-in-stile-web-20-con-rollover/</link>
		<comments>http://www.artedelweb.it/cssplay-menu-in-stile-web-20-con-rollover/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 17:35:19 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Templates & Skin]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/2008/02/21/cssplay-menu-in-stile-web-20-con-rollover/</guid>
		<description><![CDATA[Oggi vi segnaliamo Cssplay un sito che offre dei bellissimi menu con rollover in css completamente gratuiti! Sono davvero tanti e di vari colori che potrete inserire nei vostri siti. Assomigliano graficamente alla nuova barra degli strumenti di Windows Vista! Di seguito vi elenchiamo alcuni dei menu a nostro parere più belli con il rispettivo [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.artedelweb.it/wp-content/uploads/2008/02/menu.png" alt="Cssplay: menu in stile web 2.0 con rollover"  title="Cssplay: menu in stile web 2.0 con rollover immagine" /><br />
Oggi vi segnaliamo <a href="http://www.cssplay.co.uk/index">Cssplay</a> un sito che offre dei bellissimi menu con rollover in css completamente gratuiti! Sono davvero tanti e di vari colori che potrete inserire nei vostri siti. Assomigliano graficamente alla nuova barra degli strumenti di Windows Vista! Di seguito vi elenchiamo alcuni dei menu a nostro parere più belli con il rispettivo download e demo.<br />
<span id="more-112"></span></p>
<p align="center"> <img src="http://farm2.static.flickr.com/1428/1383946615_2e44109754_o.jpg" height="108" width="422" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_drop.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_drop.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1437/1384843592_b71754512f_o.jpg" height="50" width="387" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_three.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_horizontal.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1420/1384844038_a4390682e4_o.jpg" height="115" width="371" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/image_drop.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/image_drop.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1061/1383947091_4085e80af4_o.jpg" height="80" width="348" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_dropline.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_dropline.html">Demo</a></p>
<p align="center"> <img src="http://farm2.static.flickr.com/1109/1384844730_a8775368a0_o.jpg" height="47" width="267" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_eight.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_horizontal.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1054/1384843516_5f1acfb1e8_o.jpg" height="58" width="394" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_two.zip">Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_horizontal.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1386/1384845134_2bafe7770d_o.jpg" height="48" width="354" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_nine.zip">Download </a>- <a href="http://www.cssplay.co.uk/menus/pro_horizontal.html">Demo</a></p>
<p align="center"><img src="http://farm2.static.flickr.com/1018/1384844160_953f023e6a_o.jpg" height="55" width="330" title="Cssplay: menu in stile web 2.0 con rollover immagine" alt="Cssplay: menu in stile web 2.0 con rollover" /></p>
<p align="center"><a href="http://www.cssplay.co.uk/menus/zip/pro_one.zip"> Download</a> &#8211; <a href="http://www.cssplay.co.uk/menus/pro_horizontal.html">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/cssplay-menu-in-stile-web-20-con-rollover/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

