<?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>DrPunchBlog &#187; jQuery</title>
	<atom:link href="http://yo.drpunchman.com/category/code/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://yo.drpunchman.com</link>
	<description>Living the feaver dream.</description>
	<lastBuildDate>Thu, 02 Feb 2012 02:19:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Panning for jQuery Gold!</title>
		<link>http://yo.drpunchman.com/2012/02/01/panning-for-jquery-gold/</link>
		<comments>http://yo.drpunchman.com/2012/02/01/panning-for-jquery-gold/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 01:48:41 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Gold]]></category>
		<category><![CDATA[bullet list]]></category>
		<category><![CDATA[crazy code]]></category>
		<category><![CDATA[weird ideas]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=7988</guid>
		<description><![CDATA[I needed some cool ideas for work. This is what I found: Sliding date picker Easing Animation Examples jQuery Transit (animation made easy) Jeditable ( &#8216;j-edit-table&#8217; or  &#8217;jedi-table&#8217; ?  ) APE (Ajax Push Engine) Raphaël (vectors for JavaScript) jQuery Map Building  History Slider Timeline Time Glider (this could be done better) Timelinr Slider Clock (love) 3D [...]]]></description>
			<content:encoded><![CDATA[<p>I needed some cool ideas for work.<br />
<a href="http://yo.drpunchman.com/2012/02/01/panning-for-jquery-gold/gold-panning/" rel="attachment wp-att-7989"><img class="aligncenter size-full wp-image-7989" title="gold-panning" src="http://yo.drpunchman.com/wp-content/uploads/2012/02/gold-panning.jpeg" alt="" width="640" height="440" /></a></p>
<table width="520" border="0">
<tbody>
<tr>
<td width="60%">
<h3>This is what I found:</h3>
<ul>
<li><a href="http://ajaxorized.com/introducing-the-sliding-date-picker/" target="_blank">Sliding date picker</a></li>
<li><a href="http://www.lemonsanver.com/jQuery/easingAnimationPlugin.html" target="_blank">Easing Animation Examples</a></li>
<li><a href="http://ricostacruz.com/jquery.transit/" target="_blank">jQuery Transit </a>(animation made easy)</li>
<li><a href="http://www.appelsiini.net/projects/jeditable" target="_blank">Jeditable</a> ( &#8216;j-edit-table&#8217; or  &#8217;jedi-table&#8217; ?  )</li>
<li><a href="http://www.ape-project.org/" target="_blank">APE</a> (Ajax Push Engine)</li>
<li><a href="http://raphaeljs.com/" target="_blank">Raphaël</a> (vectors for JavaScript)</li>
<li><a href="http://www.gethifi.com/blog/a-jquery-plugin-for-zoomable-interactive-maps" target="_blank">jQuery Map Building </a></li>
<li><a href="http://tutorialzine.com/2009/10/google-wave-history-slider-jquery/" target="_blank">History Slider</a></li>
<li><a href="http://tutorialzine.com/2010/01/advanced-event-timeline-with-php-css-jquery/" target="_blank">Timeline</a></li>
<li><a href="http://timeglider.com/jquery/" target="_blank">Time Glider </a>(this could be done better)</li>
<li><a href="http://www.csslab.cl/2011/08/18/jquery-timelinr/" target="_blank">Timelinr</a></li>
<li><a href="http://home.comcast.net/~vonholdt/test/clock_slide/index.htm" target="_blank">Slider Clock</a> (love)</li>
<li><a href="http://www.hotajax.org/images--gallery/others/123-3d-gallery.html" target="_blank">3D Gallery</a></li>
<li><a href="http://f6design.com/journal/2011/08/06/build-a-parallax-scrolling-website-interface-with-jquery-and-css/" target="_blank">Simple Parallax</a></li>
<li><a href="http://workshop.rs/projects/jqfancytransitions/" target="_blank">jqFancyTransitions</a></li>
<li><a href="http://www.openstudio.fr/jquery-virtual-tour/" target="_blank">jQuery Virtual Tour</a></li>
</ul>
</td>
<td valign="top" width="40%">
<h3>Other Sites Worth Noting</h3>
<ul>
<li><a href="http://f6design.com/journal/" target="_blank">f6design</a></li>
<li><a href="http://tutorialzine.com/" target="_blank">Tutorialzine.com<br />
</a></li>
<li><a href="http://knockoutjs.com/examples/" target="_blank">Knockout</a></li>
<li><a href="http://framework.gregbabula.info/" target="_blank">G5 Framework</a></li>
<li><a href="http://jqueryfordesigners.com/" target="_blank">jQuery for Designers</a></li>
<li><a href="http://tympanus.net/codrops/" target="_blank">Codrops</a> (so much stuff)</li>
</ul>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2012/02/01/panning-for-jquery-gold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url="http://yo.drpunchman.com/wp-content/uploads/2012/02/gold-panning-150x150.jpg" length="10741" type="image/jpg" />	</item>
		<item>
		<title>jQuery + KnockOut = Awesome Forms</title>
		<link>http://yo.drpunchman.com/2012/01/19/jquery-knockout-awesome-forms/</link>
		<comments>http://yo.drpunchman.com/2012/01/19/jquery-knockout-awesome-forms/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 03:55:43 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[KnockOut]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=7984</guid>
		<description><![CDATA[A fun little Newsletter generator I am working on that uses KnockOut and jQuery in magical and new amazing ways! It is kinda ugly right now, because it is still in process&#8211;so shut up. Knockout: (you only get a sample, you don&#8217;t need to see all of the crazy) Here is the html template. (yes [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-7986" title="newsletter" src="http://yo.drpunchman.com/wp-content/uploads/2012/01/newsletter.jpg" alt="" width="560" height="672" /></p>
<p>A fun little Newsletter generator I am working on that uses KnockOut and jQuery in magical and new amazing ways! It is kinda ugly right now, because it is still in process&#8211;so shut up.</p>
<p><span id="more-7984"></span>Knockout: (you only get a sample, you don&#8217;t need to see all of the crazy)</p>
<pre class="brush: jscript; title: ; notranslate">

// let's list out the images to select
function f_imgBig()
{
	var newArray = Array();
	newArray.push(

	&quot;images/366_A.jpg&quot;,
	&quot;images/366_B.jpg&quot;,
	&quot;images/366_C.jpg&quot;,
	&quot;images/366_D.jpg&quot;,
	&quot;images/366_E.jpg&quot;,
	&quot;images/366_none.jpg&quot;
	);

	return newArray;
}

function f_imgBigSel()
{
	var newArray = Array();
	newArray = f_imgBig() ;

	return newArray[0];
}
// now let's add in the viewModel and sorting
var viewModel = {}; // always outside of the document load
$(function() {

&lt;!-- drag drop sort --&gt;
	$( &quot;#leftA,#leftB,#leftC&quot; ).sortable({ connectWith: ['#leftA','#leftB','#leftC'] });

&lt;!-- VIEW --&gt;

viewModel = {
	postList_L: ko.observableArray( leftPost() ),
        addPost_L: function () {
	this.postList_L.push({
		img	: f_imgBig(),
		imgSel	: ko.observable(f_imgBigSel())
	});},

ko.applyBindings(viewModel);

});
</pre>
<p>Here is the html template.<br />
(yes I am using tables, don&#8217;t worry about it)</p>
<pre class="brush: xml; title: ; notranslate">
&lt;pre&gt;&lt;!-- LEFT --&gt;
    &lt;table data-bind=&quot;visible: postList_L().length &gt; 0&quot; bgcolor=&quot;#FFFFFF&quot;&gt;

        &lt;tr&gt;&lt;td id=&quot;module_area&quot;&gt;

        &lt;ul data-bind='template: { xxxxxxxx id=&quot;leftB&quot; &gt;&lt;/ul&gt;

        &lt;ul data-bind='template: { name: &quot;postTemplate_L&quot;, foreach: postList_L }' id=&quot;leftA&quot; &gt;&lt;/ul&gt;

        &lt;ul data-bind='template: { xxxxxxxx id=&quot;leftC&quot; &gt;&lt;/ul&gt;

        &lt;/td&gt;&lt;/tr&gt;

    &lt;/table&gt;

    &lt;input name=&quot;AddPost&quot; type=&quot;image&quot; src=&quot;_css/img/20.gif&quot; data-bind=&quot;click: addPost_L&quot; id=&quot;addPost&quot;&gt;

&lt;!-- post --&gt;
	&lt;script type=&quot;text/html&quot; id=&quot;postTemplate_L&quot;&gt;
        &lt;li style=&quot;background:#EFE;&quot; id=&quot;sel&quot;&gt;
        &lt;div id=&quot;mov&quot;&gt;&lt;/div&gt;
		&lt;input name=&quot;del&quot; type=&quot;image&quot; src=&quot;_css/img/20.gif&quot; 
data-bind=&quot;click: function(){ viewModel.removePost_L($data); }, 
visible: viewModel.postList_L().length &gt; 1&quot; id=&quot;del&quot;&gt;

		&lt;input type=&quot;image&quot; data-bind=&quot;attr: { src: imgSel }&quot; /&gt;
		&lt;select data-bind=&quot;options: img, value: imgSel&quot; /&gt;

        &lt;/li&gt;
    &lt;/script&gt;&lt;/pre&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2012/01/19/jquery-knockout-awesome-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url="http://yo.drpunchman.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-19-at-7.34.56-PM-150x150.png" length="21793" type="image/jpg" />	</item>
		<item>
		<title>jQuery Nav with Arrow Support</title>
		<link>http://yo.drpunchman.com/2012/01/17/jquery-nav-with-arrow-support/</link>
		<comments>http://yo.drpunchman.com/2012/01/17/jquery-nav-with-arrow-support/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 21:46:57 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Shake Weight]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=7966</guid>
		<description><![CDATA[Ignore the man behind the curtain&#8230; I&#8217;ve scrambled the text so you can&#8217;t see my super secrete message in the nav (hint: Ovaltine). The menu itself is what&#8217;s important anyway, not the text. The &#8220;how-to&#8221; follows: The drop-down is a standard drop down nav, however the left and right arrows at the top allow you [...]]]></description>
			<content:encoded><![CDATA[<p>Ignore the man behind the curtain&#8230;<br />
<img src="http://yo.drpunchman.com/wp-content/uploads/2012/01/jquery_menu.jpg" alt="" title="jquery_menu" width="542" height="389" class="aligncenter size-full wp-image-7967" /><br />
I&#8217;ve scrambled the text so you can&#8217;t see my super secrete message in the nav (hint: Ovaltine). The menu itself is what&#8217;s important anyway, not the text. </p>
<p>The &#8220;how-to&#8221; follows:</p>
<p><span id="more-7966"></span></p>
<p>The drop-down is a standard drop down nav, however the left and right arrows at the top allow you to change pages using your keyboard as well.</p>
<p>the nav:<br />
The array breaks out into [page name,page title]</p>
<pre class="brush: jscript; title: ; notranslate">
var arr = Array(
['1a','Immitto reprobo'],
['1b','Eeros enim'],
['1c','Aex inhibeo'],
['1d','Dolore nisl ut'],
['1e','Dloquor volutpat'],

['2a','Vel suscipit'],
['2b','Sin proprius'],
['2c','Natu lucidus'],
['2d','Delenit lobortis'],
['2e','Vel vel'],
['2f','Nisl, dignissim'],
['2g','Piusto elit'],

['3a','Pignissim capto'],
['3b','Ulciscor'],
['3c','Papto odio abdo'],
['3d','Sibidem hos si esse']
); 

// add the links to the navigation
function writeArr( i, length ){
for( i; i &lt; length; i++ )
{
// I added line breaks for easy reading.
document.write( '&lt;li id=&quot;verse&quot;&gt;&lt;a href=&quot;#&quot;
num=&quot;'+(i+&quot;s&quot;)+'&quot; page=&quot;'+arr[i][0]+'&quot;
title=&quot;'+arr[i][1]+'&quot; &gt;'+arr[i][1]+'&lt;/a&gt;&lt;/li&gt;' );
}
};
</pre>
<p>The Drop-Down itself is based off of Vimeo&#8217;s design, the tutorial is [ <a href="http://www.jankoatwarpspeed.com/post/2009/01/19/Create-Vimeo-like-top-navigation.aspx" target="_blank">here</a> ].</p>
<pre class="brush: xml; title: ; notranslate">
&lt;li&gt;&lt;div id=&quot;nav&quot;&gt;&lt;/div&gt;
&lt;ul&gt;
     &lt;li id=&quot;chapter&quot;&gt;
        &lt;img class=&quot;corner_inset_left&quot;
src=&quot;_css/nav/corner_inset_left.png&quot;/&gt;
Chapter One
       &lt;img class=&quot;corner_inset_right&quot;
src=&quot;_css/nav/corner_inset_right.png&quot;/&gt;
   &lt;/li&gt;
       &lt;script&gt;writeArr(0,5);&lt;/script&gt;
   &lt;li id=&quot;chapter&quot;&gt;Chapter Two&lt;/li&gt;
       &lt;script&gt;writeArr(5,12);&lt;/script&gt;
   &lt;li id=&quot;chapter&quot;&gt;Chapter Three&lt;/li&gt;
      &lt;script&gt;writeArr(12,16);&lt;/script&gt;
   &lt;li class=&quot;last&quot;&gt;
     &lt;img class=&quot;corner_left&quot; src=&quot;_css/nav/corner_left.png&quot;/&gt;
     &lt;img class=&quot;middle&quot; src=&quot;_css/nav/dot.gif&quot;/&gt;
     &lt;img class=&quot;corner_right&quot;  src=&quot;_css/nav/corner_right.png&quot;/&gt;
   &lt;/li&gt;
 &lt;/ul&gt;
&lt;/li&gt;
</pre>
<p>As you can see the actual content is pulled from our JavaScript Array. (I just wanted to keep it all tidy).</p>
<p>Here is the navigation control:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script&gt;
var pageNum = 0;

// you can move the array code to here..

// wait for when the doc is ready
$(function(){
	$(&quot;#verse a&quot;).click(function() {
		pageNumArr = $(this).attr(&quot;num&quot;).split('s');
		pageNum = pageNumArr[0];
		nextprev();
	});

// always update the title text on the page
	$('#title').html( arr[0][1] );

// next &amp; previous icons at the top
	$('#prev').click(function(){
		goNext();
	});

	$('#next').click(function(){
		goNext();
	});

// keyboard arrow keys
	$('body').keyup(function (event) {

		if (event.keyCode == 37) {
		  goNext();
		} else if (event.keyCode == 39) {
		  goPrev();
		}
	});

// control what page you are going to
	function goNext(){
		pageNum--;
		if( pageNum &lt; 0 ){ pageNum = arr.length-1 };
		nextprev();
	}

	function goPrev(){
		pageNum++;
		if( pageNum &gt;= arr.length ){ pageNum = 0 };
		nextprev();
	}

// make sure all the nav functions go to the same place
	function nextprev(){
		var title= arr[pageNum][1];
		var page= arr[pageNum][0];
// changes page header --&gt;
		$(&quot;#title&quot;).replaceWith('&lt;span id=&quot;title&quot;&gt;'+title+'&lt;/span&gt;');
// add new page --&gt;
		$(&quot;#page&quot;).load( &quot;pages/&quot;+page+&quot;.html&quot; );

		$(&quot;a&quot;).removeClass(&quot;sel&quot;);
		$(&quot;a[num^=&quot;+pageNum+&quot;s]&quot;).addClass(&quot;sel&quot;);
/* FUN FACT:
	using $(&quot;a[num^=&quot;+pageNum+&quot;]&quot;) will select &quot;1&quot; and &quot;10,11,12,..&quot;
	as well, because they all start with the number &quot;1&quot;. Which is
	kinda fucked up, so I added a text character at the end &quot;s&quot; so
	&quot;1s&quot; is now unique.
	&quot;11s&quot; and/or &quot;21s&quot; are not effected, but if I had &quot;1s1&quot; then
	I'd be back to the drawing board.
*/
	}

// this will update the nav for the first use.
	nextprev();
});

&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2012/01/17/jquery-nav-with-arrow-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url="http://yo.drpunchman.com/wp-content/uploads/2012/01/jquery_menu-150x150.jpg" length="6007" type="image/jpg" />	</item>
		<item>
		<title>Loop Faster, Damnit!</title>
		<link>http://yo.drpunchman.com/2011/11/18/loop-faster-damnit/</link>
		<comments>http://yo.drpunchman.com/2011/11/18/loop-faster-damnit/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 19:07:16 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Beer]]></category>
		<category><![CDATA[faster code]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=7911</guid>
		<description><![CDATA[Taking your loops from 0.03 to 0.02+/-! A while ago, I was talking (probably here somewhere) about increasing the speed of FOR loops in ActionSctipt. They both do the same thing, but with the variables pre-defined, the second FOR is faster. It isn&#8217;t trying to run a function AND calculate the length of an an [...]]]></description>
			<content:encoded><![CDATA[<p>Taking your loops from 0.03 to 0.02+/-!</p>
<p>A while ago, I was talking (probably here somewhere) about increasing the speed of FOR loops in ActionSctipt.</p>
<pre class="brush: as3; title: ; notranslate">
var arr:Array = new Array(&quot;kittens&quot;,&quot;bunnies&quot;,&quot;puppies&quot;,&quot;whores dressed like french maids&quot;);
// slow:
for( var i:uint = 0; i &lt; arr.length(); i++ )
{
trace( &quot;Things that are cute: &quot; + arr[i] + &quot;. &quot;);
}

// fast:
var i:uint = 0;
var l:uint = arr.length();
for( i; i &lt; l; i++ )
 {
      trace( &quot;Things that are cute: &quot; + arr[i] + &quot;. &quot;);
 }

// personal favorite (although I need to test the speed)
var i:uint = 0;
for( i in arr )
{
trace( &quot;Things that are cute: &quot; + arr[i] + &quot;. &quot;);
}
</pre>
<p>They both do the same thing, but with the variables pre-defined, the second FOR is faster. It isn&#8217;t trying to run a function AND calculate the length of an an array.</p>
<p>For jQuery, the effect is the same &#8212; my guess is that is a global coding thing.<br />
Although, it goes counter to conventional thinking (having more code on the page = slower load), the truth is: cleanly defined variables will produce faster (efficient) processing, even if it does mean more lines of code.</p>
<pre class="brush: jscript; title: ; notranslate">
// slow
$(&quot;.cuteStuff&quot;).each( function()
{
    for ( var arr, i = -1; arr = $arr[++i] )
    {
        document.write( &quot;Things that are cute: &quot; + arr[i] + &quot;. &quot;);
    }
});
// faster
var $arr = $(&quot;#cuteStuff&quot;); &lt;!-- ID's are faster then CLASSES --&gt;
for ( var arr, i = -1; arr = $arr[++i] )
{
    document.write( &quot;Things that are cute: &quot; + arr[i] + &quot;. &quot;);
}
</pre>
<p>Here the main difference is that in the &#8220;slow&#8221; example, you are calling a function every time the page reads a div tag. (Think of it like, each div tag is a glass of beer, you find it drink it, and move on to the next.)<br />
In the &#8220;fast&#8221; example you are putting all the div tags into a make-shift array and just chugging it. (This time you are pouring each div tag into a beer bong and now chug them all at once.)</p>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2011/11/18/loop-faster-damnit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Hub</title>
		<link>http://yo.drpunchman.com/2010/02/15/social-hub/</link>
		<comments>http://yo.drpunchman.com/2010/02/15/social-hub/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 01:22:39 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=804</guid>
		<description><![CDATA[Just finished the TurboTax Social Hub. (Well ok, I finished a while ago, but it just launched&#8230;). It is a portal into the crazy social aspect of TurboTax&#8217;s marketing. It might seem silly at first, but once you think about it, it&#8217;s actually kinda brilliant. Its (Taxes) something everyone needs to deal with, and we [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_808" class="wp-caption aligncenter" style="width: 310px"><a href="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_04.jpg"><img class="size-medium wp-image-808" title="socialHub_04" src="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_04-300x233.jpg" alt="" width="300" height="233" /></a><p class="wp-caption-text">EXPLORE: Grock our mad fine peeps, yo!</p></div>
<p>Just finished the <a title="TurboTax Mojo" href="http://turbotaxmojo.com" target="_blank">TurboTax Social Hub.</a> (Well ok, I finished a while ago, but it just launched&#8230;).<br />
It is a portal into the crazy social aspect of TurboTax&#8217;s marketing. It might seem silly at first, but once you think about it, it&#8217;s actually kinda brilliant. Its (Taxes) something everyone needs to deal with, and we all fear it on some primal level, and Intuit is using our emotional bond with the event to turn it into a social thing. Kinda turning it on it&#8217;s ear. It&#8217;s no wonder this stuff becomes so popular.</p>
<p><span id="more-804"></span></p>
<div id="attachment_807" class="wp-caption aligncenter" style="width: 310px"><a href="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_03.jpg"><img class="size-medium wp-image-807" title="socialHub_03" src="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_03-300x233.jpg" alt="" width="300" height="233" /></a><p class="wp-caption-text">LEARN: Dork out with TurboTax! </p></div>
<div id="attachment_806" class="wp-caption aligncenter" style="width: 310px"><a href="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_02.jpg"><img class="size-medium wp-image-806" title="socialHub_02" src="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_02-300x233.jpg" alt="" width="300" height="233" /></a><p class="wp-caption-text">CONNECT: Chances are that you know someone you know who knows TurboTax!</p></div>
<div id="attachment_805" class="wp-caption aligncenter" style="width: 310px"><a href="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_01.jpg"><img class="size-medium wp-image-805" title="socialHub_01" src="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_01-300x233.jpg" alt="" width="300" height="233" /></a><p class="wp-caption-text">Take the Red Pill or the Blue Pill? Ok, so there are three Blue Pills. But you can&#39;t say I didn&#39;t give you options.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2010/02/15/social-hub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<enclosure url="http://yo.drpunchman.com/wp-content/uploads/2010/02/socialHub_01-150x150.jpg" length="8467" type="image/jpg" />	</item>
		<item>
		<title>superfast password</title>
		<link>http://yo.drpunchman.com/2010/02/02/superfast-password/</link>
		<comments>http://yo.drpunchman.com/2010/02/02/superfast-password/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 22:06:10 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=866</guid>
		<description><![CDATA[This is a SUPER FAST login script that I found. If you need to protect a file, and need to protect it right NOW! this is for you.]]></description>
			<content:encoded><![CDATA[<p>This is a SUPER FAST login script that I found.<br />
If you need to protect a file, and need to protect it right NOW! this is for you.</p>
<pre class="brush: jscript; title: ; notranslate">

&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
 /*
 ---------------------------
 LOGIN
 ---------------------------
 */
 &lt;!--
 var login = prompt(&quot;LOGIN:&quot;,&quot;&quot;)
 if ( login !=&quot;password&quot; )
 { document.write(&quot;YOU FAILED!&quot;) }
 --&gt;
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2010/02/02/superfast-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Accordian</title>
		<link>http://yo.drpunchman.com/2009/07/29/jquery-accordian/</link>
		<comments>http://yo.drpunchman.com/2009/07/29/jquery-accordian/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 01:27:34 +0000</pubDate>
		<dc:creator>DrPunchman</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://yo.drpunchman.com/?p=252</guid>
		<description><![CDATA[I didn&#8217;t like what I saw, when I went looking&#8230; so I kinda made my own.]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t like what I saw, when I went looking&#8230; so I kinda made my own.</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function()
{
	// activete the first item
	$(&quot;.accordion .query:#news&quot;).animate({height: 470}, 750);
	// drop the active text
	$(&quot;.accordion .query:#news&quot;).find(&quot;.activate&quot;).animate({opacity: &quot;0&quot;, top: 450},760);

	$(&quot;.accordion .query&quot;).click( function()
	{
		// grow!
		$(this).animate({height: 470}, 750);
		//
		$(this).find(&quot;.activate&quot;).animate({opacity: &quot;0&quot;, top: 450},760);
		// this is how I will set the id of the expanded swf
		var a = $(this).attr('id');
		//alert( a ) ;
		// truncate the non active bastards
		$(this).siblings(&quot;.query&quot;).animate({height: 150}, 750);
		//
		$(this).siblings(&quot;.query&quot;).find(&quot;.activate&quot;).animate({opacity: &quot;1&quot;,top: 130},760);
	});
});
</pre>
<p><span id="more-252"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;!-- load the jquery script --&gt;
    &lt;script src=&quot;http://jquery.com/src/jquery.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/Accordion.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;!-- this is the code from above--&gt;
    &lt;/script&gt;
&lt;!-- CSS --&gt;
&lt;style type=&quot;text/css&quot;&gt;
	&lt;!--
	@import url(&quot;css/style.css&quot;);

.accordion {
	width: 			980px;
	border-bottom: 	solid 1px #c4c4c4;
}
.accordion .query {
	background: 	#e9e7e7;
	padding: 		0;
	margin: 		0;
	font: 			bold Arial, Helvetica, sans-serif;
	border: 		solid 1px #c4c4c4;
	border-bottom: 	none;
	height:			150px;
	overflow:		hidden;
}
.accordion .query:hover {
	background-color: #e3e2e2;
}
.accordion .query.active {
	background-position: right 5px;
}
.accordion p {
	background: 	#f7f7f7;
	color:			#333333;
	font-size:		11px;
	margin: 		0;
	padding: 		10px 15px 20px;
	border-left: 	solid 1px #c4c4c4;
	border-right: 	solid 1px #c4c4c4;
}

.accordion h1 {
	margin-left:	10px;
	color:			#111111;
	font-size:		12px;
	font-weight:	normal;
}

.accordion a:link {
	color:			#FF9900;
}
.accordion a:visited {
	color:			#FF9900;
}

.accordion .activate {
	color:			#333333;
	background: 	#f7f7f7;
	border: 	solid 1px #c4c4c4;
	font-size:		11px;
	text-align:		center;
	position:		relative;
	top:			130px;
	left:			820px;
	width:			120px;
	display:		block;
}

	--&gt;
    &lt;/style&gt;
&lt;!-- Title=--&gt;
    &lt;title&gt;Dr.Punchman is Awesome&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;accordion&quot;&gt;

    &lt;div class=&quot;query&quot; id=&quot;unigueID1&quot;&gt;
    	&lt;div class=&quot;activate&quot;&gt;Click To Expand&lt;/div&gt;
        &lt;h1&gt;Title 1&lt;/h1&gt;
        &lt;p&gt;Lorem ipsum&lt;/p&gt;
    &lt;/div&gt;

    &lt;div class=&quot;query&quot; id=&quot;unigueID2&quot;&gt;
    	&lt;div class=&quot;activate&quot;&gt;Click To Expand&lt;/div&gt;
        &lt;h1&gt;Title 2&lt;/h1&gt;
        &lt;p&gt;Lorem ipsum&lt;/p&gt;
    &lt;/div&gt;

    &lt;div class=&quot;query&quot; id=&quot;unigueID3&quot;&gt;
    	&lt;div class=&quot;activate&quot;&gt;Click To Expand&lt;/div&gt;
        &lt;h1&gt;Title 3&lt;/h1&gt;
        &lt;p&gt;Lorem ipsum&lt;/p&gt;
    &lt;/div&gt;

&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://yo.drpunchman.com/2009/07/29/jquery-accordian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

