<?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>Good2Know &#187; lente ingrandimento</title>
	<atom:link href="http://www.good2know.it/tag/lente-ingrandimento/feed" rel="self" type="application/rss+xml" />
	<link>http://www.good2know.it</link>
	<description>Webmaster's blog</description>
	<lastBuildDate>Tue, 10 Aug 2010 17:14:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Magnifier &#8211; Plugin jQuery per lo zoom di immagini</title>
		<link>http://www.good2know.it/jquery/jquery-magnifier-plugin-jquery-per-lo-zoom-di-immagini/ </link>
		<comments>http://www.good2know.it/jquery/jquery-magnifier-plugin-jquery-per-lo-zoom-di-immagini/ #comments</comments>
		<pubDate>Tue, 02 Mar 2010 08:47:44 +0000</pubDate>
		<dc:creator>Filippo Matteo Riggio</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery magnifier plugin]]></category>
		<category><![CDATA[lente ingrandimento]]></category>
		<category><![CDATA[plugin jquery]]></category>

		<guid isPermaLink="false">http://www.good2know.it/?p=1331</guid>
		<description><![CDATA[
Oggi vorrei presentarvi questo plugin, jQuery Magnifier.
Questo plugin permette lo zoom dell&#8217;immagine con un semplice effetto lente.
Di seguito una mini-guida all&#8217;installazione e all&#8217;uso.

Installazione
Aggiungete la libreria jQuery nell&#8217;head della pagina :
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;js/jquery-1.3.2.min.js&#8220;&#62;&#60;/script&#62;
Ora aggiungete nell&#8217;head anche il file javascript del plugin :
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;js/jquery.magnifier.0.2.js&#8220;&#62;&#60;/script&#62;
ed anche il file css del plugin :
&#60;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/jquery.magnifier.css&#8221; media=&#8221;screen&#8221;&#62;
Come utilizzarlo
Ora [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.good2know.it/wp-content/uploads/2010/03/jquery-magnifier-plugin.jpg"><img class="alignnone size-medium wp-image-1332" title="jquery-magnifier-plugin" src="http://www.good2know.it/wp-content/uploads/2010/03/jquery-magnifier-plugin-300x300.jpg" alt="" width="300" height="300" /></a></p>
<p>Oggi vorrei presentarvi questo plugin, <a href="http://www.dio5.com/jquery-magnifier-plugin/">jQuery Magnifier</a>.</p>
<p>Questo plugin permette lo <strong>zoom dell&#8217;immagine con un semplice effetto lente</strong>.</p>
<p>Di seguito una mini-guida all&#8217;installazione e all&#8217;uso.<br />
<span id="more-1331"></span></p>
<p><em><strong>Installazione</strong></em></p>
<p><strong>Aggiungete</strong> la libreria <strong>jQuery</strong> nell&#8217;head della pagina :</p>
<blockquote><p><strong>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;<a>js/jquery-1.3.2.min.js</a>&#8220;&gt;&lt;/script&gt;</strong></p></blockquote>
<p>Ora <strong>aggiungete</strong> nell&#8217;head anche il <strong>file javascript</strong> del plugin :</p>
<blockquote><p><strong>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;<a>js/jquery.magnifier.0.2.js</a>&#8220;&gt;&lt;/script&gt;</strong></p></blockquote>
<p>ed anche il <strong>file css del plugin</strong> :</p>
<blockquote><p><strong>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;<a>css/jquery.magnifier.css</a>&#8221; media=&#8221;screen&#8221;&gt;</strong></p></blockquote>
<p><em><strong>Come utilizzarlo</strong></em></p>
<p>Ora abbiamo bisogno di <strong>due immagini uguali</strong>, una più grande ed una più piccola sulla quale fare lo zoom :</p>
<blockquote><p><strong>&lt;a href=&#8221;img/large.jpg&#8221; rel=&#8221;magnify&#8221;&gt;<br />
&lt;img src=&#8221;img/small.jpg alt=&#8221;My small image&#8221; width=&#8221;500&#8243; height=&#8221;335&#8243;&gt;<br />
&lt;/a&gt;</strong></p></blockquote>
<p>nel link all&#8217;immagine più grande bisogna <strong>inserire il tag rel=&#8221;magnify&#8221;</strong> per far funzionare lo script.</p>
<p>Ora bisogna inserire il <strong>codice javascript per far funzionare</strong> lo zoom con la lente :</p>
<blockquote><p><strong>jQuery(function($) {<br />
$(&#8216;a[rel*=magnify]&#8216;).magnify();<br />
});</strong></p></blockquote>
<p>Se si vogliono <strong>aggiungere delle opzioni</strong>, per adattare lo zoom come vogliamo noi basta inserire le opzioni nella funzion magnify(), così :</p>
<blockquote><p><strong>jQuery(function($){<br />
$(&#8216;a[rel*=magnify]&#8216;).magnify({<br />
lensWidth: 160, // width of the lens<br />
lensHeight: 160, // height of the lens<br />
link: true // clicking in the lens goes to the large image<br />
delay: 500 // time to wait before the lens is shown<br />
});<br />
});</strong></p></blockquote>
<p>Le opzioni <strong>lensWidth e lensHeight</strong> indicano rispettivamente <strong>larghezza ed altezza dello zoom</strong>, l&#8217;opzione <strong>link : true</strong> invece <strong>inserisce il link all&#8217;immagine</strong> a quella più grande.</p>
<p>L&#8217;ultima opzione, il <strong>delay</strong> vuole il <strong>numero di millisecondi prima di visualizzare la lente</strong>.</p>
<p>Potete scaricare questo plugin <a href="http://www.dio5.com/assets/plugins/jquery-magnifier/jquery.magnifier.0.2.zip">qui</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.good2know.it/jquery/jquery-magnifier-plugin-jquery-per-lo-zoom-di-immagini/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
