
<?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>Cory Schires &#187; Plugins</title>
	<atom:link href="http://coryschires.com/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://coryschires.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 14 Feb 2012 22:45:46 +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 Quote Rotator Plugin.</title>
		<link>http://coryschires.com/jquery-quote-rotator-plugin/</link>
		<comments>http://coryschires.com/jquery-quote-rotator-plugin/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 03:58:12 +0000</pubDate>
		<dc:creator>Cory Schires</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://coryschires.com/?p=265</guid>
		<description><![CDATA[Here’s a jQuery plugin that rotates through list items with a nice fade effect...]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a jQuery plugin that rotates through list items with a nice fade effect. You may nest any type of element you like inside a given list item.</p>
<p><a href="http://coryschires.github.com/quote-rotator/" class="new_window no_underline"><br />
<img class="blog_post_banner msg" title="Click to view demo." src="http://coryschires-blog-post-images.s3.amazonaws.com/quote_rotator_poster.png" alt="Quote Rotator Demo" /><br />
</a></p>
<h3>How to make it work.</h3>
<p>Drop these scripts in your header:</p>
<div class="code_block">
<pre class="brush: ruby;">
   &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
   &lt;script src="js/jquery.quote_rotator.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
</pre>
</div>
<p>Call the function to any list element:</p>
<div class="code_block">
<pre class="brush: jscript;">
        $(document).ready(function() {
            $('ul#quotes').quote_rotator();
        });</pre>
</div>
<p>You can specify which quote you’d like to show first by adding a class of active to the list item. If you don’t explicitly add an active class, it will default to the first item in the list.</p>
<h3>Configuration options.</h3>
<div class="code_block">
<pre class="brush: jscript;">
        $('ul#quotes').quote_rotator({
         rotation_speed: 7000,                    // defaults to 5000
         pause_on_hover: false,                   // defaults to true
         randomize_first_quote: true              // defaults to false
         buttons: { next: '>>', previous: '<<' }  // defaults to false
        });</pre>
</div>
<p>Rotation will pause on mouse hover by default. This is nice if you're rotating through links or other elements that you might not want fading away from the user.</p>
<p>Also notice that next/previous buttons are not included by default. If you want buttons, you need override the <span class="code_text">buttons</span> option. As in the example above, assign a javascript object with <span class="code_text">next</span> and <span class="code_text">previous</span> keys. The values will be used as text for your buttons.</p>
<p><a class="new_window download" href="http://github.com/coryschires/quote-rotator">Download the project from github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coryschires.com/jquery-quote-rotator-plugin/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>JQuery hover caption plugin.</title>
		<link>http://coryschires.com/jquery-hover-caption-plugin/</link>
		<comments>http://coryschires.com/jquery-hover-caption-plugin/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 23:13:42 +0000</pubDate>
		<dc:creator>Cory Schires</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://coryschires.com/?p=202</guid>
		<description><![CDATA[Here’s a simple jQuery plugin that adds both a caption and a gray-out effect when hovering over an image...]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple jQuery plugin that adds both a caption and a gray-out effect when hovering over an image. For example:</p>
<p><img class="msg" title="This is the title attribute." alt="Flapper 1922" src="http://coryschires-blog-post-images.s3.amazonaws.com/flapper_1922.jpg"/></p>
<h3>How to make it work.</h3>
<p>1. Drop these scripts in your header:</p>
<div class="code_block">
<pre class="brush: ruby;">
		&lt;script src="js/jquery-1.4.1.min.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
		&lt;script src="js/jquery.hover_caption.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
	</pre>
</div>
<p>2. Call the plugin function on your images:</p>
<div class="code_block">
<pre class="brush: jscript;">
		$(document).ready(function() {
			$('img').hover_caption();
		});
    </pre>
</div>
<p>3. Add this tiny bit of CSS somewhere:</p>
<div class="code_block">
<pre class="brush: css;">
		.hover_caption {
			background-image: url(hover_caption_bg.png);
			/* NOTE: if you're img elements have paddings
			or margins you'll need to match them here
			to get things lined up properly. */
		}
    </pre>
</div>
<p>And here&#8217;s some configuration options:</p>
<div class="code_block">
<pre class="brush: jscript;">
		$('img').hover_caption({
			caption_font_size: '18px',
			caption_color: 'white',
			caption_bold: true,
			caption_default: "Click for screenshots."
		});
	</pre>
</div>
<h3>And the captions are pretty smart.</h3>
<p>If your image has a title attribute, the plugin will use that as the caption. Otherwise it will default to <span class="code_text">Click for screenshots</span>. You can change the default if you like, of course.</p>
<h3>A few gotchas.</h3>
<ul>
<li>Be sure the path to <span class="code_text">hover_caption_bg.png</span> is correct.</li>
<li>Don&#8217;t forget to add <span class="code_text">hover_caption_bg.png</span> to your project.</li>
<li>Be sure the path to <span class="code_text">hover_caption.js</span> is correct.</li>
<li>Make sure you&#8217;ve referenced jQuery first in your header.</li>
</ul>
<p><a class="new_window download" href="http://github.com/coryschires/hover-caption">Download the project from github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coryschires.com/jquery-hover-caption-plugin/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>

