<?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>CM &#187; jQuery</title>
	<atom:link href="http://corymathews.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://corymathews.com</link>
	<description>Things I should remember and then some...</description>
	<lastBuildDate>Thu, 26 Jan 2012 16:27:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery External Image and Tab Plugin</title>
		<link>http://corymathews.com/jquery-external-image-and-tab-plugin/</link>
		<comments>http://corymathews.com/jquery-external-image-and-tab-plugin/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 21:18:50 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=719</guid>
		<description><![CDATA[This jQuery Plugin is a quick way to: open external links in a new tab(_blank)place an image next to external links Example Use Options blank &#8211; if true it will change the links to open in a new tab by adding target=&#8221;_blank&#8221;. This defaults to true. path &#8211; if set this is the (From the [...]]]></description>
			<content:encoded><![CDATA[<p>This jQuery Plugin is a quick way to:</p>
<p><strong>open external links in a new tab(_blank)</strong><br /><strong>place an image next to external links</strong></p>
<p><strong><a href="http://corymathews.com/jquery-external-image-and-tab-plugin-examples/">Example Use</a></strong></p>
<hr />
<h3>Options</h3>
<p><strong>blank</strong> &#8211; if true it will change the links to open in a new tab by adding target=&#8221;_blank&#8221;. This defaults to true.</p>
<p><strong>path</strong> &#8211; if set this is the (From the site root) to the image to show next to external links. defaults to &#8221; which will not show an image.</p>
<p><strong>ignore</strong> &#8211; this is the class name that can be put on a link so that the plugin will not add the image or target changes.</p>
<hr />
<h3>License</h3>
<p>WTFPT (http://en.wikipedia.org/wiki/WTFPL) = &#8220;Do What The Fuck You Want To Public License&#8221;.</p>
<hr />
<h3>Source:</h3>
<p><a href="https://github.com/CoryMathews/jQuery-Link-External-Image-and-Tab-Plugin">On Github</a></p>
<p><strong>Full</strong></p>
<pre class="prettyprint linenumstrigger linenums">
(function($){
	$.fn.extTab = function(params) {
        var defaults = {
            blank:true,
            path:'',
            ignore:''
        };
        params = $.extend(defaults, params);
        var t = $(this).find(&quot;a[href^='http:']&quot;).not(&quot;[href*='&quot; + document.location.host + &quot;']&quot;);
        if(params.ignore != '') {
        	t = t.not(&quot;[class*='&quot; + params.ignore + &quot;']&quot;);
        }
    	if(params.blank) {
    		t.attr( &quot;target&quot;, &quot;_blank&quot; );
    	}
    	if(params.path != '') {
    		t.append(' &lt;img src=&quot;http://' + document.location.host + params.path + '&quot;&gt;');
    	}
    };
})(jQuery);
</pre>
<p><strong>Minified</strong></p>
<pre class="prettyprint linenumstrigger linenums">(function(c){c.fn.extTab=function(a){var a=c.extend({blank:!0,path:&quot;&quot;,ignore:&quot;&quot;},a),b=c(this).find(&quot;a[href^='http:']&quot;).not(&quot;[href*='&quot;+document.location.host+&quot;']&quot;);a.ignore!=&quot;&quot;&amp;&amp;(b=b.not(&quot;[class*='&quot;+a.ignore+&quot;']&quot;));a.blank&amp;&amp;b.attr(&quot;target&quot;,&quot;_blank&quot;);a.path!=&quot;&quot;&amp;&amp;b.append(' &lt;img src=&quot;http://'+document.location.host+a.path+'&quot;&gt;')}})(jQuery);</pre>
<hr />
<h3>Icons</h3>
<p><a href="http://www.iconfinder.com/search/?q=external+link"> Just an example of some icons to use</a></p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/jquery-external-image-and-tab-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Video Observations</title>
		<link>http://corymathews.com/html5-video-observations/</link>
		<comments>http://corymathews.com/html5-video-observations/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 18:07:00 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Misc Programming]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=645</guid>
		<description><![CDATA[First off my goal is to run a bunch of 3-5 minute videos on any 1 single browser on a windows machine, It will run as a kiosk and will not have Internet access. So this finally gives me a good reason to play around with the &#60;video&#62; tag. The videos were provided in a [...]]]></description>
			<content:encoded><![CDATA[<p>First off my goal is to run a bunch of 3-5 minute videos on any 1 single browser on a windows machine, It will run as a kiosk and will not have Internet access. So this finally gives me a good reason to play around with the &lt;video&gt; tag.</p>
<p>The videos were provided in a .mov format so being lazy I tried just sticking those videos in to chrome and it worked&#8230; sorta.</p>
<pre class="prettyprint linenumstrigger linenums">&lt;video width=800 height=600&gt;&lt;source src=video.mov&gt;&lt;/video&gt;</pre>
<h2>Sound Played Every Other Load</h2>
<p>Very quickly the problems started occurring. First off the <a href="http://stackoverflow.com/questions/4248404/sound-plays-every-other-time-the-video-plays-in-chrome">sound stopped playing</a> every other time the video was played.</p>
<p>That seems to be a bug and to fix it I had to  remove the old video tag and replace it every time I played a video.</p>
<h2>Video Load Performance  Problems</h2>
<p>Then I moved from the short demo videos (10 secs) to the full 3 min videos and right off the bat, I saw huge performance delays. So slow that it appeared the videos would not show and the Task Manager did not show activity. <strong>Perhaps there is a file max size I have missed? </strong></p>
<p>Now faced with this major performance problem I set out to see which video format worked fastest on which browser, since I had the luxury of picking a browser.</p>
<p>I converted the video into the .ogv, .mp4 (H.264) and .webm using the  <a href="http://www.mirovideoconverter.com/">Miro Video Converter</a> (Which is REALLY easy and simple). It gave me the following file sizes.</p>
<ul>
<li>.mov &#8211; 631,964KB (Original File)</li>
<li>.mp4 &#8211; 210,954KB</li>
<li>.mp4 &#8211; 66,280KB*</li>
<li>.ogv &#8211; 144,690KB</li>
<li>.webm &#8211; 25,315KB</li>
</ul>
<p>*I ended up using the Adobe Media Encoder to reconvert the second (smaller) .mp4 because it gave better compression and wanted to see what kind of difference it made.</p>
<p>Using the following 3 browsers:</p>
<ul>
<li>Firefox 3.6.12</li>
<li>Chrome 7.0.517.44</li>
<li>Opera 10.63</li>
</ul>
<p>Heres how each format worked in them.</p>
<p><strong>Firefox</strong>:</p>
<ul>
<li>.mov, .mp4 and .webm &#8211; do not run</li>
<li>.ogv &#8211; ran but was very slow to start, after that the video was smooth.</li>
</ul>
<p><strong>Chrome</strong>:</p>
<ul>
<li>.mov &#8211; would not run</li>
<li>.mp4 &#8211; would not run</li>
<li>.mp4 (smaller) &#8211; ran smoothly but took a minute to appear</li>
<li>.ogv &#8211; seems to be sized differently, runs really jagged, and just overall unacceptable.</li>
<li>.webm &#8211; Extremely responsive, but the quality was plain awful.</li>
</ul>
<p><strong>Opera</strong>:</p>
<ul>
<li>.mov, .mp4 &#8211; does not run</li>
<li>.ogv &#8211; Responsive and smooth.</li>
<li>.webm &#8211; Extremely responsive, but the quality was awful. (same as chromes webm)</li>
</ul>
<p>Before I started I assumed Chrome/WebM would be the best overall bet, just from the chatter it has been creating. But it seems that I was wrong.</p>
<p><strong>Overall the .ogv on Opera seemed to be the best option. </strong></p>
<p>It does seem that there is a very apparent association between file-size and initial load time. (bandwidth ignored) But nothing I could find written on the matter, or how to improve it. (<a href="http://twitter.com/#!/CoryMathews">@CoryMathews</a> if you know)</p>
<p>After all this it still seems like the HTML5 video tag is far from ready, but its a hell of a lot nicer to use then flash.</p>
<h2>Great HTML5 Video Tag Articles</h2>
<ul>
<li><a title="HTML5 Video Introduction" href="http://dev.opera.com/articles/view/introduction-html5-video/">Introduction to HTML5 Video &#8211; dev.opera.com</a></li>
<li><a title="HTML5 Video and Audio 2" href="http://my.opera.com/core/blog/2010/03/03/everything-you-need-to-know-about-html5-video-and-audio-2">Everything you need to know about HTML5 Video and Audio 2 &#8211; dev.opera.com</a></li>
<li><a title="HTML5 Video" href="http://diveintohtml5.org/video.html">HTML5 Video &#8211; diveintohtml5.org</a></li>
</ul>
<h2>Sample Source  Code</h2>
<p>Page Structure-ish</p>
<pre class="prettyprint linenumstrigger linenums">...
&lt;script src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
  #VideoShow { display:none; top:0; left:0; }
  #closeVid { position:absolute; top:0;z-index:5; display:none; }
&lt;/style&gt;
...
&lt;div id=&quot;But1&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;But2&quot;&gt;&lt;/div&gt;
...
&lt;div id='closeVid'&gt;&lt;img src='close.jpg'&gt;&lt;/div&gt;
&lt;div id=&quot;VideoShow&quot;&gt;&lt;/div&gt;
...
$(&quot;#But1&quot;).click(function(){ playVideo(&quot;video.mov&quot;); });
$(&quot;#But2&quot;).click(function(){ playVideo(&quot;video.mp4&quot;); &Acirc;&nbsp;});

function playVideo(videoName) {
  $(&quot;#VideoShow&quot;).fadeIn(300).html(&quot;&lt;video width=800 height=600&gt;&lt;source src=\&quot;&quot; + videoName + &quot;\&quot;'&gt;&lt;/video&gt;&quot;);
  $(&quot;#closeVid&quot;).fadeIn(300);
  var Vid = document.getElementsByTagName('video')[0];
  Vid.play();
  Vid.addEventListener('ended', function(e) {
    closeVideo();
  }, false);
}

function closeVideo() {
  var Vid = document.getElementsByTagName('video')[0];
  Vid.removeEventListener('ended', arguments.callee, false);
  $(&quot;#VideoShow&quot;).fadeOut(300).html(&quot;&quot;);
  $(&quot;#closeVid&quot;).fadeOut(100)
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/html5-video-observations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open All External Links in New Tabs</title>
		<link>http://corymathews.com/make-all-external-links-open-in-a-new-tab/</link>
		<comments>http://corymathews.com/make-all-external-links-open-in-a-new-tab/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 18:26:51 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=628</guid>
		<description><![CDATA[Here is a quick bit of jQuery to make all external links have the target=_blank attribute. &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ $(&#34;a[href^='http:']&#34;).not(&#34;[href*=EXAMPLE.com']&#34;).attr({ target: &#34;_blank&#34; }); }); &#60;/script&#62; You could also use this same technique to add a small friendly image next to these links  notifying the user they are about to leave the site. &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick bit of jQuery to make all external links have the target=_blank attribute.</p>
<pre class="prettyprint linenumstrigger linenums">&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
$(&quot;a[href^='http:']&quot;).not(&quot;[href*=EXAMPLE.com']&quot;).attr({ target: &quot;_blank&quot; });
});
&lt;/script&gt;</pre>
<p>You could also use this same technique to add a small friendly image next to these links  notifying the user they are about to leave the site.</p>
<pre class="prettyprint linenumstrigger linenums">&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
$(&quot;a[href^='http:']&quot;).not(&quot;[href*=EXAMPLE.com']&quot;).attr({ target: &quot;_blank&quot; }).append(&quot; &lt;img src=\&quot;outLink.jpg\&quot;&gt;&quot;);
});
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/make-all-external-links-open-in-a-new-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Animation</title>
		<link>http://corymathews.com/jquery-animation/</link>
		<comments>http://corymathews.com/jquery-animation/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 17:17:02 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=514</guid>
		<description><![CDATA[I was recently working with the .animate() function and found there are some really cool effects you can create with it. However the more I used it the more problems I ran into. Basic usage of .animate() Just for good measure here is the basic usage of the .animate() function. I won&#8217;t go to far into [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently working with the .animate() function and found there are some really cool effects you can create with it. However the more I used it the more problems I ran into.</p>
<p><strong>Basic usage of .animate()</strong></p>
<p>Just for good measure here is the basic usage of the .animate() function. I won&#8217;t go to far into this, check out the <a title="jQuery API Animate" href="http://api.jquery.com/animate/">jQuery API for more</a>.</p>
<pre class="prettyprint linenumstrigger linenums">$(&quot;#SomeID&quot;).animate({ width: '50px' }, { duration: 500 });</pre>
<p>This animates the id SomeID to a width of 50px over 500 milliseconds with a basic linear slide transition.</p>
<p><strong>The &#8220;animation&#8221; queue.</strong> (or so I will call it)</p>
<p>When jquery runs the .animate() function it runs it along side other javascript. This allows me to add multiple animations to a queue and then run one after another instead of all at the same time. For example</p>
<pre class="prettyprint linenumstrigger linenums">
$(&quot;#SomeID&quot;).animate({ width: '50px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '150px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '50px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '150px' }, { duration: 500 });
</pre>
<p>This code will animate an id from a width of 50px to 150px to 50px to 150px one after another so I see a nice smooth slide from one stage to the next.</p>
<p>Now this code.</p>
<pre class="prettyprint linenumstrigger linenums">
$(&quot;#SomeID&quot;).animate({ width: '50px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '150px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '50px' }, { duration: 500 });
$(&quot;#SomeID&quot;).animate({ width: '150px' }, { duration: 500 });
alert('hi');
</pre>
<p>Notice the alert appears to run first. This <a href="http://stackoverflow.com/questions/1667757" target="_blank">got me</a> until I stopped to really think about the animation queue.</p>
<p>Take a look at this example from <a href="http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup" target="_blank">learning jquery</a></p>
<pre class="prettyprint linenumstrigger linenums">
$(document).ready(function() {
  $('ul.anim_queue_example1 a').hover(function() {
    $(this).animate({ left: 20 }, 'fast');
  }, function() {
    $(this).animate({ left: 0 }, 'fast');
  });
});
</pre>
<p>This is a simple hover effect for a list menu. The problem may not be easily spotted at first but try it out. Running your mouse over the menu quickly will cause the queue to fill up with animations and continue running them long after you stop. More then likely not the desired effect.</p>
<p><a href="http://brandonaaron.net/" target="_blank">Brandon Aaron</a> was easily able to fix this by adding a simple .stop() to the functions.</p>
<p>This now gives you this code</p>
<pre class="prettyprint linenumstrigger linenums">
$(document).ready(function() {
  $('ul.anim_queue_example2 a').hover(function() {
    $(this).stop().animate({ left: 20 }, 'fast');
  }, function() {
    $(this).stop().animate({ left: 0 }, 'fast');
  });
});
</pre>
<p>Adding the .stop() function will stop the current animation in the queue before running the next animation and will fix the problem.</p>
<p>Ok, now for the example problem that does not get fixed by calling .stop().</p>
<p>For the next example I am going to be using the<a href="http://blog.mythin.net/file_download/5" target="_blank">pause plugin</a> by Johnathan Howard and posted below</p>
<pre class="prettyprint linenumstrigger linenums">
$.fn.pause = function(milli) {
  milli = milli || 1000;
  return this.queue(&quot;fx&quot;,function(){
    var self = this;
    setTimeout(function(){$.dequeue(self);},milli);
  });
};
</pre>
<p>Now check out the following:</p>
<pre class="prettyprint linenumstrigger linenums">
$(&quot;#SomeID, #SomeID2&quot;).animate({ width: '50px' }, { duration: 500 }).pause(350);
$(&quot;#SomeID, #SomeID2&quot;).animate({ width: '150px' }, { duration: 500 });
$(&quot;#SomeID, #SomeID2&quot;).animate({ width: '50px' }, { duration: 500 }).pause(350);
$(&quot;#SomeID, #SomeID2&quot;).animate({ width: '150px' }, { duration: 500 });
$(&quot;#someID3&quot;).hover(function() {
$(&quot;#SomeID&Acirc;&nbsp;, #SomeID2&quot;).stop().height(50).width(50).animate({ width: '150px' }, 500);
} , function() {
$(&quot;#SomeID&Acirc;&nbsp;&quot;).stop().animate({ width: '50px' }, 200);
$(&quot;#SomeID2&quot;).stop().animate({ width: '50px' }, 200);
});
</pre>
<p>This example will stop the current animation but when that short pause ends it will continue with the queue and mess with the desired animated effects. To stop this problem is actually pretty easy. To solve it change .stop() to .stop(true, false). This is because in .stop(true, false) the first true is the clearQueue parameter. This will clear all queued actions for the object. Meaning that all the future animations, once delayed, are now removed and will not interfere with the hover event.</p>
<p><strong>More problems</strong></p>
<p>1 more problem I have not looked into solving put probably will have to eventually is the problem of keeping those animations until after the hover is finished. Not every time will I want to completely clear the queue. I could see it being likely that I would want to do something more like the following:</p>
<pre class="prettyprint linenumstrigger linenums">
$(&quot;#someID3&quot;).hover(function() {
$(&quot;#SomeID&Acirc;&nbsp;, #SomeID2&quot;).pauseQueue().animate({ width: '150px' }, 500);
} , function() {
$(&quot;#SomeID&Acirc;&nbsp;, #SomeID2&quot;).stop().animate({ width: '50px' }, 200).startQueue();
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/jquery-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Letting Google Load jQuery&#8230; The Right Way</title>
		<link>http://corymathews.com/letting-google-load-jquery-the-right-way/</link>
		<comments>http://corymathews.com/letting-google-load-jquery-the-right-way/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 00:23:42 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=517</guid>
		<description><![CDATA[For some time now I have been letting google load the jQuery and jQuery UI libraries for me. There are many benefits to it which I will not get into, you can read more reasons to use it elsewhere. However I did notice something worth posting. You may be loading the jQuery library like so: [...]]]></description>
			<content:encoded><![CDATA[<p>For some time now I have been letting google load the jQuery and jQuery UI libraries for me. There are many benefits to it which I will not get into, you can read more reasons to use it elsewhere. However I did notice something worth posting.</p>
<p>You may be loading the jQuery library like so:</p>
<pre class="prettyprint linenumstrigger linenums">&lt;script src=&quot;http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
<p>Well if you are then <strong>you are doing it wrong</strong>.</p>
<p>It was ySlow that told me why. Try changing that one line to the following and take another look at ySlow.</p>
<pre class="prettyprint linenumstrigger linenums">&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
<p>Notice the difference? <strong>Google is now gzipping the library</strong> when its called from googleapis.com instead of googlecode.com thus lowering the files size drastically.</p>
<p>For those of us that are to lazy to try it out here is the result with the googleapis.com loaded instead of the googlecode.com.</p>
<p><a href="http://corymathews.com/wp-content/uploads/2009/12/jQueryLoading.gif"><img class="aligncenter size-medium wp-image-520" title="jQueryLoading" src="http://corymathews.com/wp-content/uploads/2009/12/jQueryLoading-300x27.gif" alt="jQueryLoading" width="300" height="27" /></a></p>
<p>You can see instead of downloading 57.2kb that you would with the googlecode file the gzip compression brings it down to 19kb.</p>
<p>The same rule would apply for other<a href="http://code.google.com/apis/ajaxlibs/documentation/#AjaxLibraries"> libraries that are hosted by google</a>. such as mootools, or even the jQuery UI.</p>
<p>So next time you go to include the library make sure to do it the right way.</p>
<p>Now I just need to switch all the sites I have that are using it.. such as this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/letting-google-load-jquery-the-right-way/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rounded Corners using jQuery</title>
		<link>http://corymathews.com/rounded-corners-using-jquery/</link>
		<comments>http://corymathews.com/rounded-corners-using-jquery/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 03:37:36 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=348</guid>
		<description><![CDATA[jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery. You can view live demos on iSearchNotes.com or at the plug-in webpage. In order to create our rounded corners you will of course first need jQuery. If you do not already [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery.</p>
<p>You can view live demos on <a href="http://www.isearchnotes.com/" target="_blank">iSearchNotes.com</a> or at the <a href="http://www.malsup.com/jquery/corner/" target="_blank">plug-in webpage</a>.</p>
<p>In order to create our rounded corners you will of course first need jQuery. If you do not already have jQuery hurry up and go download it at <a href="http://www.jquery.com" target="_blank">jquery.com</a>. I will wait.</p>
<p>Waiting&#8230;</p>
<p>Ok so now you will also need to download the rounded corners plug-in. This small jQuery script can be downloaded by saving this file <a href="http://www.malsup.com/jquery/corner/jquery.corner.js" target="_blank">jquery.corner.js</a></p>
<p>Now we have all that will will need to round those corners. On the page you wish to have the rounded corners on you must add includes to both javascript files.</p>
<pre name="code" class="html">&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.corner.js"&gt;&lt;/script&gt;</pre>
<p>Now we must tell jQuery which areas of the layout to round.</p>
<pre name="code" class="javascript">&lt;script type="text/javascript"&gt;
$(function(){
$("#content").corner()
});
&lt;/script&gt;</pre>
<pre name="code" class="html">&lt;div id="content"&gt;Hello this would have rounded corners&lt;/div&gt;</pre>
<p>This simply uses <a title="jQuery Selectors" href="http://docs.jquery.com/Selectors">jQuery&#8217;s selectors</a> to select the id content and rounds all 4 of that divs corners by the default amount.</p>
<p>This plug-in can do so much more then this example. You can pick which corners to round, how much to round by, how to round, and much, much, more. Instead of listing them all check out the <a href="http://www.malsup.com/jquery/corner/">plug-in page</a> to see more uses of it. (there are some pretty cool ones near the bottom of the page)</p>
<p>There are many different ways to use it but some of the more common uses would be:</p>
<pre name="code" class="javascript">
	$("#content").corner()
	$("#content").corner("bottom");
	$("#content").corner("top");
</pre>
<p>You could always avoid javascript altogether and do it the <a href="http://www.osguide.net/Tutorials/tutorial.php?p=4">hard way using css</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/rounded-corners-using-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

