<?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>Tutorialzine &#187; Plugins</title>
	<atom:link href="http://tutorialzine.com/category/freebies/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com</link>
	<description>PHP MySQL jQuery CSS Tutorials, Resources and Freebies</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:33:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery PhotoShoot Plugin 1.0</title>
		<link>http://tutorialzine.com/2010/02/jquery-photoshoot-plugin/</link>
		<comments>http://tutorialzine.com/2010/02/jquery-photoshoot-plugin/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 18:15:44 +0000</pubDate>
		<dc:creator>Martin Angelov</dc:creator>
				<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://tutorialzine.com/?p=649</guid>
		<description><![CDATA[The jQuery PhotoShoot plugin gives you the ability to convert any div on your web page into a complete photo shooting effect.]]></description>
			<content:encoded><![CDATA[<p>The jQuery PhotoShoot plugin gives you the ability to convert any div on your web page into a photo shooting effect, complete with a view finder. You can check out the demonstration above, or a <a href="http://tutorialzine.com/2010/02/photo-shoot-css-jquery/" target="_blank">nice tutorial on how to use it here</a>.</p>
<h3>Usage</h3>
<p>First, you need to upload the plug-in to your server (it would be best to keep the folder structure intact), and include the stylesheet and js file to the page where you want it to show.</p>
<pre class="brush:html">&lt;link rel="stylesheet" type="text/css" href="photoShoot/jquery.photoShoot-1.0.css" /&gt;

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="photoShoot/jquery.photoShoot-1.0.js"&gt;&lt;/script&gt;
</pre>
<p>The plug-in depends on version 1.3.2 of jQuery, but will work fine with newer versions as well.</p>
<p>After this you can convert any div on your page by calling the <strong>.photoShoot()</strong> method and passing a configuration object.</p>
<pre class="brush:js">document.ready(function(){

	var config = {
		image : 'picture.jpg',
	}

	$('#selector').photoShoot(config)
});
</pre>
<p>You can pass additional parameters with the config object, according to the table below.</p>
<h3>Parameters</h3>
<p>The following parameters are supported:</p>
<table class="fancy-table" border="0" cellspacing="2" cellpadding="5">
<caption> Supported Parameters<br />
</caption>
<tbody>
<tr>
<th width="70">Parameter</th>
<th width="93">Default Value</th>
<th width="413">Description</th>
</tr>
<tr>
<td>image</td>
<td>&#8220;&#8221;</td>
<td>Required parameter. Specify the URL of the image to be shown.</td>
</tr>
<tr>
<td>blurLevel</td>
<td>4</td>
<td>The higher the blur level, the more blurred the image.</td>
</tr>
<tr>
<td>opacity</td>
<td>0.92</td>
<td>The lower the opacity, the darker the background behind the viewfinder.</td>
</tr>
<tr>
<td>viewFinder</td>
<td>{ width:300, height:200, img:&#8221; }</td>
<td>Expects an object with the properties width, height and img. With it you can change the size and png graphic of the view finder. If no img is provided, the default one is shown.</td>
</tr>
<tr>
<td>onClick</td>
<td>function(){}</td>
<td>Expects the name of the function that is going to be executed on click. An object is passed as a parameter. See below.</td>
</tr>
</tbody>
</table>
<h3>The onClick function</h3>
<p>You can provide your function to be executed when a click occurs. An <strong>object</strong> containing the location (left and top) of the viewfinder, relative to the background, is passed as the only <strong>parameter</strong>. Here is how it works:</p>
<pre class="brush:js">document.ready(function(){

	var config = {
		image	: 'picture.jpg',
		blurLevel	: 6,
		opacity	: 0.8,
		onClick	: alertPosition
	}

	function alertPosition(param){
		alert("The viewfinder is located at: "+param.left+"x"+param.top);
	}

	$('#selector').photoShoot(config)
});</pre>
<h3>License</h3>
<p>The plugin is distributed under an MIT license.</p>
]]></content:encoded>
			<wfw:commentRss>http://tutorialzine.com/2010/02/jquery-photoshoot-plugin/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: tutorialzine.com @ 2010-08-01 03:01:39 -->