<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://blog.psicomante.net" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>il Blog di Psicomante - CSS: Display:none e jQuery. Un connubio utile - Comments</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html</link>
 <description>Comments for &quot;CSS: Display:none e jQuery. Un connubio utile&quot;</description>
 <language>en</language>
<item>
 <title>Hai anche ragione</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1469</link>
 <description>&lt;p&gt;Hai anche ragione &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt;&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 17:20:58 +0200</pubDate>
 <dc:creator>psicomante</dc:creator>
 <guid isPermaLink="false">comment 1469 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>Si, si... il mio problema</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1468</link>
 <description>&lt;p&gt;Si, si... il mio problema era un altro (anche se non ho capito qual &lt;img src=&quot;/sites/all/modules/smileys/packs/example/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; /&gt;).. semplicemente suggerivo di inserirla nel post anche per gli altri, altrimenti non funziona nulla &lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt;&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 15:47:41 +0200</pubDate>
 <dc:creator>Mavimo</dc:creator>
 <guid isPermaLink="false">comment 1468 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>Infatti è da ieri che ti</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1464</link>
 <description>&lt;p&gt;Infatti è da ieri che ti linkavo quella porzione di codice del mio tema mica per niente &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt;&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 13:47:52 +0200</pubDate>
 <dc:creator>psicomante</dc:creator>
 <guid isPermaLink="false">comment 1464 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>Gliel&#039;ho fatta!!! 
Bisogna</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1461</link>
 <description>&lt;p&gt;Gliel&#039;ho fatta!!! &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt;&lt;br /&gt;
Bisogna mettere anche&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;unset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;core&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;misc/jquery.js&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_add_js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;path_to_theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/script.js&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;header&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_get_js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;header&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Nell&#039;header della pagina in &lt;em&gt;page.tpl.php&lt;/em&gt;, dove ovviamente &lt;em&gt;script.js&lt;/em&gt; è il nome del file in cui avete inserito il codice precedente.&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 12:48:55 +0200</pubDate>
 <dc:creator>Mavimo</dc:creator>
 <guid isPermaLink="false">comment 1461 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>Grazie per l&#039;idea!</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1432</link>
 <description>&lt;p&gt;Grazie per l&#039;idea! Indubbiamente molto più &quot;user-friendly&quot;.&lt;/p&gt;
</description>
 <pubDate>Tue, 22 May 2007 18:59:24 +0200</pubDate>
 <dc:creator>psicomante</dc:creator>
 <guid isPermaLink="false">comment 1432 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>Ti consiglio di impostare</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comment-1425</link>
 <description>&lt;p&gt;Ti consiglio di impostare per il &quot;filo&quot; una proprietà dello stile, in mdo che mostri una mano come nei link:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;style=&amp;quot;cursor:pointer;&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Penso sia più utile, no?&lt;/p&gt;
</description>
 <pubDate>Tue, 22 May 2007 17:40:47 +0200</pubDate>
 <dc:creator>Andrea Micheloni</dc:creator>
 <guid isPermaLink="false">comment 1425 at http://blog.psicomante.net</guid>
</item>
<item>
 <title>CSS: Display:none e jQuery. Un connubio utile</title>
 <link>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html</link>
 <description>&lt;p&gt;Per chi non conoscesse bene Javascript e &lt;strike&gt;JQuery&lt;/strike&gt; jQuery (segnalato da &lt;em&gt;ehehehe...&lt;/em&gt;), mi è venuta in mente pochi giorni fa un metodo stra-conosciuto sicuramente ma di cui non ho mai sentito parlare (ma la mia esperienza nel campo è scarsissima, quindi non fa testo). Associare nel CSS la proprietà &lt;code&gt;display:none&lt;/code&gt; permette di evitare la visualizzazione di un &lt;em&gt;div nascosto&lt;/em&gt; e da far apparire come slide (un esempio evidente è il filo presente su questo blog, che fa apparire delle informazioni aggiuntive).&lt;/p&gt;
&lt;p&gt;Questo codice javascript inserito &lt;strike&gt;nel HEAD&lt;/strike&gt; in un file separato, permette di animare il div con classe &lt;em&gt;shelfwrap&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if (Drupal.jsEnabled) {&lt;br /&gt;&amp;nbsp; $(document).ready(Drupal.shelfwrapAuto);&lt;br /&gt;}&lt;br /&gt;Drupal.shelfwrapAuto = function() {&lt;br /&gt;&amp;nbsp; $(&amp;#039;#pull&amp;#039;).click(function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&amp;#039;#shelfwrap&amp;#039;).slideToggle(&amp;#039;slow&amp;#039;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp; });&lt;br /&gt;};&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;dove pull è il div contenente il link per srotolarlo.&lt;/p&gt;
&lt;p&gt;Come giustamente segnala Mavì, mi sono dimenticato di aggiungere la modifica per il page.tpl.php:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;unset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;core&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;misc/jquery.js&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_add_js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;path_to_theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/script.js&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;header&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_get_js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;header&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$js&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;da inserire prima della stampa degli stili e dove script.js è il vostro script dove avete inserito il codice javascript di sopra.&lt;/p&gt;
</description>
 <comments>http://blog.psicomante.net/css-display-none-e-jquery-un-connubio-utile.html#comments</comments>
 <category domain="http://blog.psicomante.net/blog/javascript">javascript</category>
 <category domain="http://blog.psicomante.net/blog/jquery">jQuery</category>
 <pubDate>Tue, 22 May 2007 15:42:16 +0200</pubDate>
 <dc:creator>psicomante</dc:creator>
 <guid isPermaLink="false">104 at http://blog.psicomante.net</guid>
</item>
</channel>
</rss>
