<?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>The Book and the Cover &#187; Javascript</title>
	<atom:link href="http://benjaminsterling.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjaminsterling.com</link>
	<description>Ok, you did not judge the book by it&#039;s cover, great.  Now, read the whole thing before passing judgment.</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:58:18 +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>Pagination and Backbone.js</title>
		<link>http://benjaminsterling.com/pagination-and-backbone-js/</link>
		<comments>http://benjaminsterling.com/pagination-and-backbone-js/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 18:28:43 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[backbone.js]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[underscore.js]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=285</guid>
		<description><![CDATA[I recently had to create some pagination for a backbone.js project I&#8217;ve been working on.  What I created has been working quite well but was not 100% happy with what I did.  Since I had a week off I figured I&#8217;d rewrite it as a mixin and clean up the approach.  Will have to work [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to create some pagination for a backbone.js project I&#8217;ve been working on.  What I created has been working quite well but was not 100% happy with what I did.  Since I had a week off I figured I&#8217;d rewrite it as a mixin and clean up the approach.  Will have to work it back into the project somehow but that is something to worry about later.</p>
<p>Let&#8217;s just jump right in there.  Some caveats: I am sure there is probably a better approach to some of the code, so please give some guidance on how it should be improved.  This code assumes that all the data is already loaded into the collection.  The set of data I was working with had a record count of about 28,000 items.  I&#8217;ve gone back and both on if having that much data loaded is a good or bad thing.  Of all the articles I&#8217;ve read there doesn&#8217;t seem to be a consensus.</p>
<p>The folder structure I am using is:</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>// Folder structure being used</div><div class='line' id='LC2'>assets/</div><div class='line' id='LC3'>	app/</div><div class='line' id='LC4'>		collections/</div><div class='line' id='LC5'>			tags.js</div><div class='line' id='LC6'>		mixins/</div><div class='line' id='LC7'>			pagination.js</div><div class='line' id='LC8'>		models/</div><div class='line' id='LC9'>			tag.js</div><div class='line' id='LC10'>		views/</div><div class='line' id='LC11'>			pagination.js</div><div class='line' id='LC12'>			tags.js</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/16257c7af0002d56fa03e83946c28d2bb74fbfcc/folder%20structure" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_folder structure" style="float:right;margin-right:10px;color:#666">folder structure</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>The JSON structure I am dealing with:</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="x">{</span></div><div class='line' id='LC2'><span class="x">	&quot;status&quot;:true,</span></div><div class='line' id='LC3'><span class="x">	&quot;tags&quot;:[</span></div><div class='line' id='LC4'><span class="x">		{</span></div><div class='line' id='LC5'><span class="x">			&quot;id&quot;:1,</span></div><div class='line' id='LC6'><span class="x">			&quot;name&quot;:&quot;A&quot;</span></div><div class='line' id='LC7'><span class="x">		},...</span></div><div class='line' id='LC8'><span class="x">	]</span></div><div class='line' id='LC9'><span class="x">}</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/73ffbfeaba8d5e0358c4d39ae2b591fb017847fe/tags_all.php" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_tags_all.php" style="float:right;margin-right:10px;color:#666">tags_all.php</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>The model, nothing too special going on here:</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">models</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC2'>	<span class="nx">models</span><span class="p">.</span><span class="nx">Tag</span> <span class="o">=</span> <span class="nx">Backbone</span><span class="p">.</span><span class="nx">Model</span><span class="p">.</span><span class="nx">extend</span><span class="p">({});</span></div><div class='line' id='LC3'><span class="p">})(</span><span class="nx">App</span><span class="p">.</span><span class="nx">models</span><span class="p">);</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/27bb8580fd552d4c4a23010679613e9961fa44d1/models_tag.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_models_tag.js" style="float:right;margin-right:10px;color:#666">models_tag.js</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>The collection, again, is a pretty basic set up.  I&#8217;ve set to model to map to App.models.Tag, our url to point to tags_all.php and overridden the parse method to return a cleaned up tags array.</p>
<p>The last line <em>_.extend(collections.Tags.prototype, pagination); </em>is where we mixin in our Pagination module(?: not sure what its proper name is actually. Module, Class?).</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">collections</span><span class="p">,</span> <span class="nx">pagination</span><span class="p">,</span> <span class="nx">model</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC2'>	<span class="nx">collections</span><span class="p">.</span><span class="nx">Tags</span> <span class="o">=</span> <span class="nx">Backbone</span><span class="p">.</span><span class="nx">Collection</span><span class="p">.</span><span class="nx">extend</span><span class="p">({</span></div><div class='line' id='LC3'>		<span class="nx">model</span> <span class="o">:</span> <span class="nx">model</span><span class="p">,</span></div><div class='line' id='LC4'>		<span class="nx">url</span> <span class="o">:</span> <span class="s1">&#39;tags_all.php&#39;</span><span class="p">,</span></div><div class='line' id='LC5'><br/></div><div class='line' id='LC6'>		<span class="cm">/**</span></div><div class='line' id='LC7'><span class="cm">		 * @param resp the response returned by the server</span></div><div class='line' id='LC8'><span class="cm">		 * @returns (Array) tags</span></div><div class='line' id='LC9'><span class="cm">		 */</span></div><div class='line' id='LC10'>		<span class="nx">parse</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">resp</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC11'>			<span class="kd">var</span> <span class="nx">tags</span> <span class="o">=</span> <span class="nx">resp</span><span class="p">.</span><span class="nx">tags</span><span class="p">;</span></div><div class='line' id='LC12'><br/></div><div class='line' id='LC13'>			<span class="k">return</span> <span class="nx">tags</span><span class="p">;</span></div><div class='line' id='LC14'>		<span class="p">}</span></div><div class='line' id='LC15'>	<span class="p">});</span></div><div class='line' id='LC16'><br/></div><div class='line' id='LC17'>	<span class="nx">_</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">collections</span><span class="p">.</span><span class="nx">Tags</span><span class="p">.</span><span class="nx">prototype</span><span class="p">,</span> <span class="nx">pagination</span><span class="p">);</span></div><div class='line' id='LC18'><span class="p">})(</span><span class="nx">App</span><span class="p">.</span><span class="nx">collections</span><span class="p">,</span> <span class="nx">App</span><span class="p">.</span><span class="nx">mixins</span><span class="p">.</span><span class="nx">Pagination</span><span class="p">,</span> <span class="nx">App</span><span class="p">.</span><span class="nx">models</span><span class="p">.</span><span class="nx">Tag</span><span class="p">);</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/dbaac1900cf64f140359feabd62b72e1a76f5e7f/collections_tags.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_collections_tags.js" style="float:right;margin-right:10px;color:#666">collections_tags.js</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>Next up is the Pagination mixin code, have a read of it and I&#8217;ll comment after the code.</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">mixins</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC2'>	<span class="cm">/**</span></div><div class='line' id='LC3'><span class="cm">	 * @class</span></div><div class='line' id='LC4'><span class="cm">	 * Pagination</span></div><div class='line' id='LC5'><span class="cm">	 */</span></div><div class='line' id='LC6'>	<span class="nx">mixins</span><span class="p">.</span><span class="nx">Pagination</span> <span class="o">=</span> <span class="p">{</span></div><div class='line' id='LC7'>		<span class="cm">/**  how many items to show per page */</span></div><div class='line' id='LC8'>		<span class="nx">perPage</span> <span class="o">:</span> <span class="mi">20</span><span class="p">,</span></div><div class='line' id='LC9'><br/></div><div class='line' id='LC10'>		<span class="cm">/** page to start off on */</span></div><div class='line' id='LC11'>		<span class="nx">page</span> <span class="o">:</span> <span class="mi">1</span><span class="p">,</span></div><div class='line' id='LC12'><br/></div><div class='line' id='LC13'>		<span class="cm">/**</span></div><div class='line' id='LC14'><span class="cm">		 *</span></div><div class='line' id='LC15'><span class="cm">		 */</span></div><div class='line' id='LC16'>		<span class="nx">nextPage</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC17'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC18'><br/></div><div class='line' id='LC19'>			<span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">=</span> <span class="o">++</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span><span class="p">;</span></div><div class='line' id='LC20'>			<span class="nx">self</span><span class="p">.</span><span class="nx">pager</span><span class="p">();</span></div><div class='line' id='LC21'>		<span class="p">},</span></div><div class='line' id='LC22'><br/></div><div class='line' id='LC23'>		<span class="nx">previousPage</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC24'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>			<span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">=</span> <span class="o">--</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">||</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC27'>			<span class="nx">self</span><span class="p">.</span><span class="nx">pager</span><span class="p">();</span></div><div class='line' id='LC28'>		<span class="p">},</span></div><div class='line' id='LC29'><br/></div><div class='line' id='LC30'>		<span class="nx">goTo</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">page</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC31'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC32'><br/></div><div class='line' id='LC33'>			<span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">page</span><span class="p">,</span><span class="mi">10</span><span class="p">);</span></div><div class='line' id='LC34'>			<span class="nx">self</span><span class="p">.</span><span class="nx">pager</span><span class="p">();</span></div><div class='line' id='LC35'>		<span class="p">},</span></div><div class='line' id='LC36'><br/></div><div class='line' id='LC37'>		<span class="nx">howManyPer</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">perPage</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC38'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC39'>			<span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC40'>			<span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span> <span class="o">=</span> <span class="nx">perPage</span><span class="p">;</span></div><div class='line' id='LC41'>			<span class="nx">self</span><span class="p">.</span><span class="nx">pager</span><span class="p">();</span></div><div class='line' id='LC42'>		<span class="p">},</span></div><div class='line' id='LC43'><br/></div><div class='line' id='LC44'>		<span class="nx">setSort</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">column</span><span class="p">,</span> <span class="nx">direction</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC45'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC46'><br/></div><div class='line' id='LC47'>			<span class="nx">self</span><span class="p">.</span><span class="nx">pager</span><span class="p">(</span><span class="nx">column</span><span class="p">,</span> <span class="nx">direction</span><span class="p">);</span></div><div class='line' id='LC48'>		<span class="p">},</span></div><div class='line' id='LC49'><br/></div><div class='line' id='LC50'>		<span class="nx">pager</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">sort</span><span class="p">,</span> <span class="nx">direction</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC51'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span></div><div class='line' id='LC52'>				<span class="nx">start</span> <span class="o">=</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span><span class="o">*</span><span class="k">this</span><span class="p">.</span><span class="nx">perPage</span><span class="p">,</span></div><div class='line' id='LC53'>				<span class="nx">stop</span>  <span class="o">=</span> <span class="nx">start</span><span class="o">+</span><span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span><span class="p">;</span></div><div class='line' id='LC54'><br/></div><div class='line' id='LC55'>			<span class="k">if</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">orgmodels</span> <span class="o">===</span> <span class="kc">undefined</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC56'>				<span class="nx">self</span><span class="p">.</span><span class="nx">orgmodels</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">models</span><span class="p">;</span></div><div class='line' id='LC57'>			<span class="p">}</span></div><div class='line' id='LC58'><br/></div><div class='line' id='LC59'>			<span class="nx">self</span><span class="p">.</span><span class="nx">models</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">orgmodels</span><span class="p">;</span></div><div class='line' id='LC60'><br/></div><div class='line' id='LC61'>			<span class="k">if</span> <span class="p">(</span><span class="nx">sort</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC62'>				<span class="nx">self</span><span class="p">.</span><span class="nx">models</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">_sort</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">models</span><span class="p">,</span> <span class="nx">sort</span><span class="p">);</span></div><div class='line' id='LC63'>			<span class="p">}</span></div><div class='line' id='LC64'><br/></div><div class='line' id='LC65'>			<span class="nx">self</span><span class="p">.</span><span class="nx">reset</span><span class="p">(</span></div><div class='line' id='LC66'>				<span class="nx">self</span><span class="p">.</span><span class="nx">models</span><span class="p">.</span><span class="nx">slice</span><span class="p">(</span><span class="nx">start</span><span class="p">,</span><span class="nx">stop</span><span class="p">)</span></div><div class='line' id='LC67'>			<span class="p">);</span></div><div class='line' id='LC68'>		<span class="p">},</span></div><div class='line' id='LC69'><br/></div><div class='line' id='LC70'>		<span class="nx">_sort</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">models</span><span class="p">,</span> <span class="nx">sort</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC71'>			<span class="nx">models</span> <span class="o">=</span> <span class="nx">models</span><span class="p">.</span><span class="nx">sort</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">a</span><span class="p">,</span><span class="nx">b</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC72'>				<span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="nx">a</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">sort</span><span class="p">),</span></div><div class='line' id='LC73'>					<span class="nx">b</span> <span class="o">=</span> <span class="nx">b</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">sort</span><span class="p">);</span></div><div class='line' id='LC74'><br/></div><div class='line' id='LC75'>				<span class="k">if</span> <span class="p">(</span><span class="nx">direction</span> <span class="o">===</span> <span class="s1">&#39;desc&#39;</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC76'>					<span class="k">if</span> <span class="p">(</span><span class="nx">a</span> <span class="o">&gt;</span> <span class="nx">b</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC77'>						<span class="k">return</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC78'>					<span class="p">}</span></div><div class='line' id='LC79'><br/></div><div class='line' id='LC80'>					<span class="k">if</span> <span class="p">(</span><span class="nx">a</span> <span class="o">&lt;</span> <span class="nx">b</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC81'>						<span class="k">return</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC82'>					<span class="p">}</span></div><div class='line' id='LC83'>				<span class="p">}</span></div><div class='line' id='LC84'>				<span class="k">else</span> <span class="p">{</span></div><div class='line' id='LC85'>					<span class="k">if</span> <span class="p">(</span><span class="nx">a</span> <span class="o">&lt;</span> <span class="nx">b</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC86'>						<span class="k">return</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC87'>					<span class="p">}</span></div><div class='line' id='LC88'><br/></div><div class='line' id='LC89'>					<span class="k">if</span> <span class="p">(</span><span class="nx">a</span> <span class="o">&gt;</span> <span class="nx">b</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC90'>						<span class="k">return</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC91'>					<span class="p">}</span></div><div class='line' id='LC92'>				<span class="p">}</span></div><div class='line' id='LC93'><br/></div><div class='line' id='LC94'>				<span class="k">return</span> <span class="mi">0</span><span class="p">;</span></div><div class='line' id='LC95'>			<span class="p">});</span></div><div class='line' id='LC96'><br/></div><div class='line' id='LC97'>			<span class="k">return</span> <span class="nx">models</span><span class="p">;</span></div><div class='line' id='LC98'>		<span class="p">},</span></div><div class='line' id='LC99'><br/></div><div class='line' id='LC100'>		<span class="nx">info</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC101'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span></div><div class='line' id='LC102'>				<span class="nx">info</span> <span class="o">=</span> <span class="p">{},</span></div><div class='line' id='LC103'>				<span class="nx">totalRecords</span> <span class="o">=</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">orgmodels</span><span class="p">)</span> <span class="o">?</span> <span class="nx">self</span><span class="p">.</span><span class="nx">orgmodels</span><span class="p">.</span><span class="nx">length</span> <span class="o">:</span> <span class="nx">self</span><span class="p">.</span><span class="nx">length</span><span class="p">,</span></div><div class='line' id='LC104'>				<span class="nx">totalPages</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="nx">totalRecords</span><span class="o">/</span><span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span><span class="p">);</span></div><div class='line' id='LC105'><br/></div><div class='line' id='LC106'>			<span class="nx">info</span> <span class="o">=</span> <span class="p">{</span></div><div class='line' id='LC107'>				<span class="nx">totalRecords</span>  <span class="o">:</span> <span class="nx">totalRecords</span><span class="p">,</span></div><div class='line' id='LC108'>				<span class="nx">page</span>          <span class="o">:</span> <span class="nx">self</span><span class="p">.</span><span class="nx">page</span><span class="p">,</span></div><div class='line' id='LC109'>				<span class="nx">perPage</span>       <span class="o">:</span> <span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span><span class="p">,</span></div><div class='line' id='LC110'>				<span class="nx">totalPages</span>    <span class="o">:</span> <span class="nx">totalPages</span><span class="p">,</span></div><div class='line' id='LC111'>				<span class="nx">lastPage</span>      <span class="o">:</span> <span class="nx">totalPages</span><span class="p">,</span></div><div class='line' id='LC112'>				<span class="nx">lastPagem1</span>    <span class="o">:</span> <span class="nx">totalPages</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span></div><div class='line' id='LC113'>				<span class="nx">previous</span>      <span class="o">:</span> <span class="kc">false</span><span class="p">,</span></div><div class='line' id='LC114'>				<span class="nx">next</span>          <span class="o">:</span> <span class="kc">false</span><span class="p">,</span></div><div class='line' id='LC115'>				<span class="nx">page_set</span>      <span class="o">:</span> <span class="p">[],</span></div><div class='line' id='LC116'>				<span class="nx">startRecord</span>   <span class="o">:</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">-</span> <span class="mi">1</span><span class="p">)</span> <span class="o">*</span> <span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span></div><div class='line' id='LC117'>				<span class="nx">endRecord</span>     <span class="o">:</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">(</span><span class="nx">totalRecords</span><span class="p">,</span> <span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">*</span> <span class="nx">self</span><span class="p">.</span><span class="nx">perPage</span><span class="p">)</span></div><div class='line' id='LC118'>			<span class="p">};</span></div><div class='line' id='LC119'><br/></div><div class='line' id='LC120'>			<span class="k">if</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC121'>				<span class="nx">info</span><span class="p">.</span><span class="nx">prev</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">-</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC122'>			<span class="p">}</span></div><div class='line' id='LC123'><br/></div><div class='line' id='LC124'>			<span class="k">if</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">&lt;</span> <span class="nx">info</span><span class="p">.</span><span class="nx">totalPages</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC125'>				<span class="nx">info</span><span class="p">.</span><span class="nx">next</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">page</span> <span class="o">+</span> <span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC126'>			<span class="p">}</span></div><div class='line' id='LC127'><br/></div><div class='line' id='LC128'>			<span class="nx">info</span><span class="p">.</span><span class="nx">pageSet</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">setPagination</span><span class="p">(</span><span class="nx">info</span><span class="p">);</span></div><div class='line' id='LC129'><br/></div><div class='line' id='LC130'>			<span class="nx">self</span><span class="p">.</span><span class="nx">information</span> <span class="o">=</span> <span class="nx">info</span><span class="p">;</span></div><div class='line' id='LC131'>			<span class="k">return</span> <span class="nx">info</span><span class="p">;</span></div><div class='line' id='LC132'>		<span class="p">},</span></div><div class='line' id='LC133'><br/></div><div class='line' id='LC134'>		<span class="nx">setPagination</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">info</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC135'>			<span class="kd">var</span> <span class="nx">pages</span> <span class="o">=</span> <span class="p">[];</span></div><div class='line' id='LC136'>			<span class="c1">// How many adjacent pages should be shown on each side?</span></div><div class='line' id='LC137'>			<span class="kd">var</span> <span class="nx">ADJACENT</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span></div><div class='line' id='LC138'>			<span class="kd">var</span> <span class="nx">ADJACENTx2</span> <span class="o">=</span> <span class="nx">ADJACENT</span><span class="o">*</span><span class="mi">2</span><span class="p">;</span></div><div class='line' id='LC139'>			<span class="kd">var</span> <span class="nx">LASTPAGE</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">ceil</span><span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">totalRecords</span><span class="o">/</span><span class="nx">info</span><span class="p">.</span><span class="nx">perPage</span><span class="p">);</span></div><div class='line' id='LC140'>			<span class="kd">var</span> <span class="nx">LPM1</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span></div><div class='line' id='LC141'><br/></div><div class='line' id='LC142'>			<span class="k">if</span> <span class="p">(</span><span class="nx">LASTPAGE</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC143'>				<span class="c1">//not enough pages to bother breaking it up</span></div><div class='line' id='LC144'>				<span class="k">if</span> <span class="p">(</span><span class="nx">LASTPAGE</span> <span class="o">&lt;</span> <span class="p">(</span><span class="mi">7</span> <span class="o">+</span> <span class="nx">ADJACENTx2</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC145'>					<span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span><span class="nx">l</span><span class="o">=</span><span class="nx">LASTPAGE</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;=</span> <span class="nx">l</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC146'>						<span class="nx">pages</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span></div><div class='line' id='LC147'>					<span class="p">}</span></div><div class='line' id='LC148'>				<span class="p">}</span></div><div class='line' id='LC149'>				<span class="c1">// enough pages to hide some</span></div><div class='line' id='LC150'>				<span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">LASTPAGE</span> <span class="o">&gt;</span> <span class="p">(</span><span class="mi">5</span> <span class="o">+</span> <span class="nx">ADJACENTx2</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC151'><br/></div><div class='line' id='LC152'>					<span class="c1">//close to beginning; only hide later pages</span></div><div class='line' id='LC153'>					<span class="k">if</span> <span class="p">(</span><span class="nx">info</span><span class="p">.</span><span class="nx">page</span> <span class="o">&lt;</span> <span class="p">(</span><span class="mi">1</span> <span class="o">+</span> <span class="nx">ADJACENTx2</span><span class="p">))</span> <span class="p">{</span></div><div class='line' id='LC154'>						<span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="nx">l</span><span class="o">=</span><span class="mi">4</span><span class="o">+</span><span class="nx">ADJACENTx2</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">l</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC155'>							<span class="nx">pages</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span>				</div><div class='line' id='LC156'>						<span class="p">}</span></div><div class='line' id='LC157'>					<span class="p">}</span></div><div class='line' id='LC158'><br/></div><div class='line' id='LC159'>					<span class="c1">//in middle; hide some front and some back</span></div><div class='line' id='LC160'>					<span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">LASTPAGE</span> <span class="o">-</span> <span class="nx">ADJACENTx2</span> <span class="o">&gt;</span> <span class="nx">info</span><span class="p">.</span><span class="nx">page</span> <span class="o">&amp;&amp;</span> <span class="nx">info</span><span class="p">.</span><span class="nx">page</span> <span class="o">&gt;</span> <span class="nx">ADJACENTx2</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC161'>						<span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="nx">info</span><span class="p">.</span><span class="nx">page</span> <span class="o">-</span> <span class="nx">ADJACENT</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;=</span> <span class="nx">info</span><span class="p">.</span><span class="nx">page</span> <span class="o">+</span> <span class="nx">ADJACENT</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC162'>							<span class="nx">pages</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span>				</div><div class='line' id='LC163'>						<span class="p">}</span>	</div><div class='line' id='LC164'>					<span class="p">}</span></div><div class='line' id='LC165'>					<span class="c1">//close to end; only hide early pages</span></div><div class='line' id='LC166'>					<span class="k">else</span><span class="p">{</span></div><div class='line' id='LC167'>						<span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="nx">LASTPAGE</span> <span class="o">-</span> <span class="p">(</span><span class="mi">2</span> <span class="o">+</span> <span class="nx">ADJACENTx2</span><span class="p">);</span> <span class="nx">i</span> <span class="o">&lt;=</span> <span class="nx">LASTPAGE</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC168'>							<span class="nx">pages</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span>					</div><div class='line' id='LC169'>						<span class="p">}</span></div><div class='line' id='LC170'>					<span class="p">}</span></div><div class='line' id='LC171'>				<span class="p">}</span></div><div class='line' id='LC172'>			<span class="p">}</span></div><div class='line' id='LC173'><br/></div><div class='line' id='LC174'>			<span class="k">return</span> <span class="nx">pages</span><span class="p">;</span></div><div class='line' id='LC175'>		<span class="p">}</span></div><div class='line' id='LC176'>	<span class="p">};</span></div><div class='line' id='LC177'><br/></div><div class='line' id='LC178'><span class="p">})(</span><span class="nx">App</span><span class="p">.</span><span class="nx">mixins</span><span class="p">);</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/fe3a976eb9556e661f4c8f08db922c9ea536cc50/mixins_pagination.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_mixins_pagination.js" style="float:right;margin-right:10px;color:#666">mixins_pagination.js</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>Most of the code is pretty self-explanatory, so I won&#8217;t dig into every line.  There are some methods you will see in the code, <em>setSort</em> and <em>_sort</em>, that are actually not in use for this discussion but will follow up on them in another post.</p>
<p>The first four methods are the ones that get triggered to start the ball rolling on the pagination.  Each of them call the <em>pager</em> method.</p>
<p>The page method makes a backup copy of the models the first pass through.  Resets models with said backup.  Ignore the sort for this post.  And lastly we pass in the start and stop points into the <a href="http://www.w3schools.com/jsref/jsref_slice_array.asp" target="_blank">Array slice</a> method, which we in turn pass to the Backbone.js reset method.  This will trigger a reset event and any view that is watching it will execute.</p>
<p>The last two methods to concern yourself with is the <em>info</em> and <em>setPagination</em> methods.  The info method does some base variable set up that will be used in views that need that info, our pagination view for-instance.  The <em>setPagination</em> method is called by <em>info</em> and at this point I must add two things.  The first is that I more or less borrowed the code from a PHP pagination script and can&#8217;t find it again, otherwise I&#8217;d give credit.  The second is that the purpose of <em>setPagination</em> is to allow for custom pagination structure and I was not clear I how I should make this more straight forward.  Any suggestions would be great.</p>
<p>So, what does <em>setPagination</em> do?  Basically it returns an array of what pages you want in your pagination &#8212; this will become a bit clearer what you see the pagination view below/in action, but let me try to explain.  In the code that is there, if we are on page 8 of our recordset, the pages that show will look something like this: 5 6 7 8 9 10 11.   But you are not limited to that structure.  In the project I will be merging this into, it will have a structure like, assuming I am on page 8 again: 1-5 6 7 8 9 10 11-15.</p>
<p>Hopefully that is clear.</p>
<p>Next two up are the pagination view and template/index page themselves.  The final structure will look something like: <em> &#8220;<span style="text-decoration: underline;">First</span> <span style="text-decoration: underline;">Previous</span> <span style="text-decoration: underline;">5</span> <span style="text-decoration: underline;">6</span> <span style="text-decoration: underline;">7</span> 8 <span style="text-decoration: underline;">9</span> <span style="text-decoration: underline;">10</span> <span style="text-decoration: underline;">11</span> <span style="text-decoration: underline;">Next</span> <span style="text-decoration: underline;">Last</span> Show <span style="text-decoration: underline;">20</span> | <span style="text-decoration: underline;">50</span> | <span style="text-decoration: underline;">100</span> 141 &#8211; 160 of 28091 shown&#8221;</em>.  Again, everything should be pretty self-explanatory, each method is named to do what it is supposed to do.</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">views</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC2'>	<span class="nx">views</span><span class="p">.</span><span class="nx">Pagination</span> <span class="o">=</span> <span class="nx">Backbone</span><span class="p">.</span><span class="nx">View</span><span class="p">.</span><span class="nx">extend</span><span class="p">({</span></div><div class='line' id='LC3'><br/></div><div class='line' id='LC4'>		<span class="nx">events</span> <span class="o">:</span> <span class="p">{</span></div><div class='line' id='LC5'>			<span class="s1">&#39;click a.first&#39;</span>        <span class="o">:</span> <span class="s1">&#39;gotoFirst&#39;</span><span class="p">,</span></div><div class='line' id='LC6'>			<span class="s1">&#39;click a.prev&#39;</span>         <span class="o">:</span> <span class="s1">&#39;gotoPrev&#39;</span><span class="p">,</span></div><div class='line' id='LC7'>			<span class="s1">&#39;click a.next&#39;</span>         <span class="o">:</span> <span class="s1">&#39;gotoNext&#39;</span><span class="p">,</span></div><div class='line' id='LC8'>			<span class="s1">&#39;click a.last&#39;</span>         <span class="o">:</span> <span class="s1">&#39;gotoLast&#39;</span><span class="p">,</span></div><div class='line' id='LC9'>			<span class="s1">&#39;click a.page&#39;</span>         <span class="o">:</span> <span class="s1">&#39;gotoPage&#39;</span><span class="p">,</span></div><div class='line' id='LC10'>			<span class="s1">&#39;click .howmany a&#39;</span>     <span class="o">:</span> <span class="s1">&#39;changeCount&#39;</span></div><div class='line' id='LC11'>		<span class="p">},</span></div><div class='line' id='LC12'><br/></div><div class='line' id='LC13'>		<span class="nx">tagName</span> <span class="o">:</span> <span class="s1">&#39;aside&#39;</span><span class="p">,</span></div><div class='line' id='LC14'>		<span class="nx">initialize</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC15'>			<span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span> <span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="s1">&#39;render&#39;</span><span class="p">);</span></div><div class='line' id='LC16'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC17'><br/></div><div class='line' id='LC18'>			<span class="nx">self</span><span class="p">.</span><span class="nx">tmpl</span> <span class="o">=</span> <span class="nx">_</span><span class="p">.</span><span class="nx">template</span><span class="p">(</span><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;#tmpPagination&#39;</span><span class="p">).</span><span class="nx">html</span><span class="p">());</span></div><div class='line' id='LC19'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s1">&#39;reset&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">);</span></div><div class='line' id='LC20'>			<span class="nx">$</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">appendTo</span><span class="p">(</span><span class="s1">&#39;body&#39;</span><span class="p">);</span></div><div class='line' id='LC21'>		<span class="p">},</span></div><div class='line' id='LC22'>		<span class="nx">render</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC23'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kd">var</span> <span class="nx">self</span><span class="p">;</span></div><div class='line' id='LC24'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>			<span class="kd">var</span> <span class="nx">html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">tmpl</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">info</span><span class="p">());</span></div><div class='line' id='LC27'>			<span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">html</span><span class="p">(</span><span class="nx">html</span><span class="p">);</span></div><div class='line' id='LC28'>		<span class="p">},</span></div><div class='line' id='LC29'><br/></div><div class='line' id='LC30'>		<span class="nx">gotoFirst</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC31'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC32'><br/></div><div class='line' id='LC33'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC34'><br/></div><div class='line' id='LC35'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">goTo</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span></div><div class='line' id='LC36'>		<span class="p">},</span></div><div class='line' id='LC37'><br/></div><div class='line' id='LC38'>		<span class="nx">gotoPrev</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC39'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC40'><br/></div><div class='line' id='LC41'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC42'><br/></div><div class='line' id='LC43'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">previousPage</span><span class="p">();</span></div><div class='line' id='LC44'>		<span class="p">},</span></div><div class='line' id='LC45'><br/></div><div class='line' id='LC46'>		<span class="nx">gotoNext</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC47'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC48'><br/></div><div class='line' id='LC49'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC50'><br/></div><div class='line' id='LC51'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">nextPage</span><span class="p">();</span></div><div class='line' id='LC52'>		<span class="p">},</span></div><div class='line' id='LC53'><br/></div><div class='line' id='LC54'>		<span class="nx">gotoLast</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC55'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC56'><br/></div><div class='line' id='LC57'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC58'><br/></div><div class='line' id='LC59'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">goTo</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">information</span><span class="p">.</span><span class="nx">lastPage</span><span class="p">);</span></div><div class='line' id='LC60'>		<span class="p">},</span></div><div class='line' id='LC61'><br/></div><div class='line' id='LC62'>		<span class="nx">gotoPage</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC63'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC64'><br/></div><div class='line' id='LC65'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC66'>			<span class="kd">var</span> <span class="nx">page</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">target</span><span class="p">).</span><span class="nx">text</span><span class="p">();</span></div><div class='line' id='LC67'><br/></div><div class='line' id='LC68'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">goTo</span><span class="p">(</span><span class="nx">page</span><span class="p">);</span></div><div class='line' id='LC69'>		<span class="p">},</span></div><div class='line' id='LC70'><br/></div><div class='line' id='LC71'>		<span class="nx">changeCount</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC72'>			<span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span></div><div class='line' id='LC73'><br/></div><div class='line' id='LC74'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC75'>			<span class="kd">var</span> <span class="nx">per</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">target</span><span class="p">).</span><span class="nx">text</span><span class="p">();</span></div><div class='line' id='LC76'><br/></div><div class='line' id='LC77'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">howManyPer</span><span class="p">(</span><span class="nx">per</span><span class="p">);</span></div><div class='line' id='LC78'>		<span class="p">}</span></div><div class='line' id='LC79'>	<span class="p">});</span></div><div class='line' id='LC80'><span class="p">})(</span><span class="nx">App</span><span class="p">.</span><span class="nx">views</span><span class="p">);</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/71b6c55b8d149e20f17be0e1f9d8f7d444ab3807/views_pagination.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_views_pagination.js" style="float:right;margin-right:10px;color:#666">views_pagination.js</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>I am using underscore.js&#8217; <em>template</em> function.  Only real thing to note is the <em>_.each</em> loop.  This is where the &#8220;pages&#8221;, e.g. &#8220;<em>5 6 7 8 9 10 11</em>&#8220;, will get parsed out.</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="cp">&lt;!DOCTYPE HTML&gt;</span></div><div class='line' id='LC2'><span class="nt">&lt;html</span> <span class="na">lang=</span><span class="s">&quot;en-US&quot;</span><span class="nt">&gt;</span></div><div class='line' id='LC3'>	<span class="nt">&lt;head&gt;</span></div><div class='line' id='LC4'>		<span class="nt">&lt;meta</span> <span class="na">charset=</span><span class="s">&quot;UTF-8&quot;</span><span class="nt">&gt;</span></div><div class='line' id='LC5'>		<span class="nt">&lt;title&gt;&lt;/title&gt;</span></div><div class='line' id='LC6'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;jquery-1.7.1.min.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC7'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;underscore.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC8'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;json2.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC9'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;backbone.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC10'>		<span class="nt">&lt;script </span><span class="na">type=</span><span class="s">&quot;text/javascript&quot;</span><span class="nt">&gt;</span></div><div class='line' id='LC11'>			<span class="kd">var</span> <span class="nx">App</span> <span class="o">=</span> <span class="p">{</span></div><div class='line' id='LC12'>				<span class="nx">collections</span> <span class="o">:</span> <span class="p">{},</span></div><div class='line' id='LC13'>				<span class="nx">models</span> <span class="o">:</span> <span class="p">{},</span></div><div class='line' id='LC14'>				<span class="nx">views</span> <span class="o">:</span> <span class="p">{},</span></div><div class='line' id='LC15'>				<span class="nx">mixins</span> <span class="o">:</span> <span class="p">{},</span></div><div class='line' id='LC16'>				<span class="nx">init</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC17'>					<span class="kd">var</span> <span class="nx">collection</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">App</span><span class="p">.</span><span class="nx">collections</span><span class="p">.</span><span class="nx">Tags</span><span class="p">();</span></div><div class='line' id='LC18'>					<span class="nx">App</span><span class="p">.</span><span class="nx">views</span><span class="p">.</span><span class="nx">tags</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">App</span><span class="p">.</span><span class="nx">views</span><span class="p">.</span><span class="nx">Tags</span><span class="p">({</span><span class="nx">collection</span><span class="o">:</span><span class="nx">collection</span><span class="p">});</span></div><div class='line' id='LC19'>					<span class="k">new</span> <span class="nx">App</span><span class="p">.</span><span class="nx">views</span><span class="p">.</span><span class="nx">Pagination</span><span class="p">({</span><span class="nx">collection</span><span class="o">:</span><span class="nx">collection</span><span class="p">});</span></div><div class='line' id='LC20'>				<span class="p">}</span></div><div class='line' id='LC21'>			<span class="p">};</span></div><div class='line' id='LC22'>		<span class="nt">&lt;/script&gt;</span></div><div class='line' id='LC23'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;assets/app/mixins/pagination.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC24'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;assets/app/models/tag.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC25'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;assets/app/collections/tags.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC26'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;assets/app/views/tags.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC27'>		<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;assets/app/views/pagination.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span></div><div class='line' id='LC28'>		<span class="nt">&lt;script </span><span class="na">type=</span><span class="s">&quot;text/javascript&quot;</span><span class="nt">&gt;</span></div><div class='line' id='LC29'>			<span class="nx">$</span><span class="p">(</span><span class="nx">App</span><span class="p">.</span><span class="nx">init</span><span class="p">);</span></div><div class='line' id='LC30'>		<span class="nt">&lt;/script&gt;</span></div><div class='line' id='LC31'>	<span class="nt">&lt;/head&gt;</span></div><div class='line' id='LC32'>	<span class="nt">&lt;body&gt;</span></div><div class='line' id='LC33'><br/></div><div class='line' id='LC34'>		<span class="nt">&lt;script </span><span class="na">type=</span><span class="s">&quot;text/html&quot;</span> <span class="na">id=</span><span class="s">&quot;tmpPagination&quot;</span><span class="nt">&gt;</span></div><div class='line' id='LC35'>			<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;cell last pages&quot;</span><span class="o">&gt;</span></div><div class='line' id='LC36'>				<span class="o">&lt;%</span> <span class="k">if</span> <span class="p">(</span><span class="nx">page</span> <span class="o">!=</span> <span class="mi">1</span><span class="p">)</span> <span class="p">{</span> <span class="o">%&gt;</span></div><div class='line' id='LC37'>					<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;first&quot;</span><span class="o">&gt;</span><span class="nx">First</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC38'>					<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;prev&quot;</span><span class="o">&gt;</span><span class="nx">Previous</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC39'>				<span class="o">&lt;%</span> <span class="p">}</span> <span class="o">%&gt;</span></div><div class='line' id='LC40'>				<span class="o">&lt;%</span> <span class="nx">_</span><span class="p">.</span><span class="nx">each</span> <span class="p">(</span><span class="nx">pageSet</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">p</span><span class="p">)</span> <span class="p">{</span> <span class="o">%&gt;</span></div><div class='line' id='LC41'>					<span class="o">&lt;%</span> <span class="k">if</span> <span class="p">(</span><span class="nx">page</span> <span class="o">==</span> <span class="nx">p</span><span class="p">)</span> <span class="p">{</span> <span class="o">%&gt;</span></div><div class='line' id='LC42'>						<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;page selected&quot;</span><span class="o">&gt;&lt;%=</span> <span class="nx">p</span> <span class="o">%&gt;&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC43'>					<span class="o">&lt;%</span> <span class="p">}</span> <span class="k">else</span> <span class="p">{</span> <span class="o">%&gt;</span></div><div class='line' id='LC44'>						<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;page&quot;</span><span class="o">&gt;&lt;%=</span> <span class="nx">p</span> <span class="o">%&gt;&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC45'>					<span class="o">&lt;%</span> <span class="p">}</span> <span class="o">%&gt;</span></div><div class='line' id='LC46'>				<span class="o">&lt;%</span> <span class="p">});</span> <span class="o">%&gt;</span></div><div class='line' id='LC47'>				<span class="o">&lt;%</span> <span class="k">if</span> <span class="p">(</span><span class="nx">lastPage</span> <span class="o">!=</span> <span class="nx">page</span><span class="p">)</span> <span class="p">{</span> <span class="o">%&gt;</span></div><div class='line' id='LC48'>					<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;next&quot;</span><span class="o">&gt;</span><span class="nx">Next</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC49'>					<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;last&quot;</span><span class="o">&gt;</span><span class="nx">Last</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC50'>				<span class="o">&lt;%</span> <span class="p">}</span> <span class="o">%&gt;</span></div><div class='line' id='LC51'>			<span class="o">&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC52'><br/></div><div class='line' id='LC53'>			<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;cell howmany&quot;</span><span class="o">&gt;</span></div><div class='line' id='LC54'>				<span class="nx">Show</span></div><div class='line' id='LC55'>				<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;selected&quot;</span><span class="o">&gt;</span><span class="mi">20</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC56'>				<span class="o">|</span></div><div class='line' id='LC57'>				<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="o">&gt;</span><span class="mi">50</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC58'>				<span class="o">|</span></div><div class='line' id='LC59'>				<span class="o">&lt;</span><span class="nx">a</span> <span class="nx">href</span><span class="o">=</span><span class="s2">&quot;#&quot;</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="o">&gt;</span><span class="mi">100</span><span class="o">&lt;</span><span class="err">/a&gt;</span></div><div class='line' id='LC60'>			<span class="o">&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC61'><br/></div><div class='line' id='LC62'>			<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;cell first records&quot;</span><span class="o">&gt;</span></div><div class='line' id='LC63'>				<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;current&quot;</span><span class="o">&gt;&lt;%=</span> <span class="nx">startRecord</span> <span class="o">%&gt;&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC64'>				<span class="o">-</span></div><div class='line' id='LC65'>				<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;perpage&quot;</span><span class="o">&gt;&lt;%=</span> <span class="nx">endRecord</span> <span class="o">%&gt;&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC66'>				<span class="nx">of</span></div><div class='line' id='LC67'>				<span class="o">&lt;</span><span class="nx">span</span> <span class="kr">class</span><span class="o">=</span><span class="s2">&quot;total&quot;</span><span class="o">&gt;&lt;%=</span> <span class="nx">totalRecords</span> <span class="o">%&gt;&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC68'>							<span class="nx">shown</span></div><div class='line' id='LC69'>			<span class="o">&lt;</span><span class="err">/span&gt;</span></div><div class='line' id='LC70'>		<span class="nt">&lt;/script&gt;</span></div><div class='line' id='LC71'>	<span class="nt">&lt;/body&gt;</span></div><div class='line' id='LC72'><span class="nt">&lt;/html&gt;</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/755cf71860c40d97d73c619e03ebd9e8ae9a8d02/index.html" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_index.html" style="float:right;margin-right:10px;color:#666">index.html</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>This last bit is the view that helps parses out the tags.</p>
<div id="gist-1531733" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">views</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC2'>	<span class="nx">views</span><span class="p">.</span><span class="nx">Tags</span> <span class="o">=</span> <span class="nx">Backbone</span><span class="p">.</span><span class="nx">View</span><span class="p">.</span><span class="nx">extend</span><span class="p">({</span></div><div class='line' id='LC3'>		<span class="nx">tagName</span> <span class="o">:</span> <span class="s1">&#39;ul&#39;</span><span class="p">,</span></div><div class='line' id='LC4'>		<span class="nx">initialize</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC5'>			<span class="nx">_</span><span class="p">.</span><span class="nx">bindAll</span> <span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="s1">&#39;render&#39;</span><span class="p">,</span> <span class="s1">&#39;addAll&#39;</span><span class="p">,</span> <span class="s1">&#39;addOne&#39;</span><span class="p">);</span></div><div class='line' id='LC6'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC7'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">fetch</span><span class="p">({</span></div><div class='line' id='LC8'>				<span class="nx">success</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC9'>					<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">pager</span><span class="p">();</span></div><div class='line' id='LC10'>				<span class="p">},</span></div><div class='line' id='LC11'>				<span class="nx">silent</span><span class="o">:</span><span class="kc">true</span></div><div class='line' id='LC12'>			<span class="p">});</span></div><div class='line' id='LC13'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="s1">&#39;reset&#39;</span><span class="p">,</span> <span class="nx">self</span><span class="p">.</span><span class="nx">addAll</span><span class="p">);</span></div><div class='line' id='LC14'>			<span class="nx">$</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">appendTo</span><span class="p">(</span><span class="s1">&#39;body&#39;</span><span class="p">);</span></div><div class='line' id='LC15'>		<span class="p">},</span></div><div class='line' id='LC16'>		<span class="nx">addAll</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC17'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC18'><br/></div><div class='line' id='LC19'>			<span class="nx">$</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">empty</span><span class="p">();</span></div><div class='line' id='LC20'>			<span class="nx">self</span><span class="p">.</span><span class="nx">collection</span><span class="p">.</span><span class="nx">each</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">addOne</span><span class="p">);</span></div><div class='line' id='LC21'>		<span class="p">},</span></div><div class='line' id='LC22'><br/></div><div class='line' id='LC23'>		<span class="nx">addOne</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">model</span><span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC24'>			<span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span></div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>			<span class="kd">var</span> <span class="nx">view</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Tag</span><span class="p">({</span><span class="nx">model</span><span class="o">:</span><span class="nx">model</span><span class="p">});</span></div><div class='line' id='LC27'>			<span class="nx">view</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span></div><div class='line' id='LC28'>			<span class="nx">$</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="nx">view</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span></div><div class='line' id='LC29'>		<span class="p">}</span></div><div class='line' id='LC30'>	<span class="p">});</span></div><div class='line' id='LC31'><br/></div><div class='line' id='LC32'>	<span class="kd">var</span> <span class="nx">Tag</span> <span class="o">=</span> <span class="nx">Backbone</span><span class="p">.</span><span class="nx">View</span><span class="p">.</span><span class="nx">extend</span><span class="p">({</span></div><div class='line' id='LC33'>		<span class="nx">tagName</span> <span class="o">:</span> <span class="s1">&#39;li&#39;</span><span class="p">,</span></div><div class='line' id='LC34'>		<span class="nx">render</span> <span class="o">:</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span></div><div class='line' id='LC35'>			<span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">).</span><span class="nx">html</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">model</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;name&#39;</span><span class="p">));</span></div><div class='line' id='LC36'>		<span class="p">}</span></div><div class='line' id='LC37'>	<span class="p">});</span></div><div class='line' id='LC38'><span class="p">})(</span><span class="nx">App</span><span class="p">.</span><span class="nx">views</span><span class="p">);</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1531733/ebc3d5c45b84af3dfd2958f6780e9860f64499f7/views_tags.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1531733#file_views_tags.js" style="float:right;margin-right:10px;color:#666">views_tags.js</a>
            <a href="https://gist.github.com/1531733">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<h2>Closing</h2>
<p>Like anything else, there are a hundred ways to do things and this is just one.  My example goes off the assumption that all the data is available but I am sure it can be re-written to only fetch a certain number of records from the server on an as needed basis.</p>
<p>What would you do differently?  Did you see anything wrong with my implementation?</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/pagination-and-backbone-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password Strength Indicator and Generator</title>
		<link>http://benjaminsterling.com/password-strength-indicator-and-generator/</link>
		<comments>http://benjaminsterling.com/password-strength-indicator-and-generator/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 16:00:51 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=117</guid>
		<description><![CDATA[Sometimes you want to show your user the strength of their password and although there a quite a few jQuery &#8220;plugins&#8221; that do this there are none &#8211; that I&#8217;ve found &#8211; that let you set the class of an element so that you can do a graphical representation of the strength. What I have [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to show your user the strength of their password and although there a quite a few jQuery &#8220;plugins&#8221; that do this there are none &#8211; that I&#8217;ve found &#8211; that let you set the class of an element so that you can do a graphical representation of the strength.</p>
<p>What I have put together is some code that I have been using on a few projects and turned it into a rough plugin.  I say a rough plugin because it is very basic and not entirely flexible; let&#8217;s just call it a proof-of-concept.</p>
<p><a class="example {w:300,h:300}" data="" title="example" target="_blank" href="/wp-content/files/passwordstrength.htm">Live Demo of Password strength indicator and generator</a></p>
<p>In the example about you will see two password boxes and with them you have a generate password link and an icon showing you the strength of your password.</p>
<p>The first example you notice that I have a basic indicator showing the strength is the form a colors blocks going from green to red with red being the strongest indicator. (I got these images from the cpanel password changer)</p>
<p><img class="aligncenter" src="http://www.benjaminsterling.com/wp-content/files/passwordstrength/progressImg1.png" alt="" /></p>
<p>This is what you would normally see and it is fine, but what if your design is much like my current design where you are featuring trees?</p>
<p>In the second example we simply swap out the icon for a tree that has four levels and when the password is real strong the tree is completely filled in with red.</p>
<p><img class="aligncenter" src="http://www.benjaminsterling.com/wp-content/files/passwordstrength/progressImg2.png" alt="tree strength indicator" /></p>
<p>Have a look at the code:</p>
<p><a class="thecode {w:600,h:400}" data="" title="code" target="_blank" href="/wp-content/files/passwordstrength.txt">The Code for Password strength indicator and generator</a></p>
<p>By default the plugin will work off of ten default classes that you can set the css for which you can do an image sprite like I did above. Or maybe just a DIV with specific colors and widths that will illustrate a growing strength of a password.</p>
<h3>Final Thoughts</h3>
<p>The point of this post is to show you that you don&#8217;t need to limit yourself to what is already out there, expand your thinking to include all possibilities and not just prepackaged ones.</p>
<p>With that said, what other possibilities do we have for a simple thing like a password strength indicator?  Hmm&#8230; maybe doing a meter type thing that goes from zero to a hundred and just rotate the pointer much like the <a href="http://css-tricks.com/css3-clock/" target="_blank">clock example</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/password-strength-indicator-and-generator/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Really Simple History: Ajax history and bookmarking library</title>
		<link>http://benjaminsterling.com/really-simple-history-ajax-history-and-bookmarking-library/</link>
		<comments>http://benjaminsterling.com/really-simple-history-ajax-history-and-bookmarking-library/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 16:00:51 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/?p=119</guid>
		<description><![CDATA[For some time now I have been using Really Simple History for my applications that use a good amount of AJAX. RSH is exactly what it sounds like, it is a really simple way of adding history and bookmarking to your AJAXified apps.  To see it in action have a look at the Mason's Graduate [...]]]></description>
			<content:encoded><![CDATA[<p>For some time now I have been using <a href="http://code.google.com/p/reallysimplehistory/" target="_blank">Really Simple History </a>for my applications that use a good amount of <abbr title="asynchronous JavaScript and XML">AJAX</abbr>.  <abbr title="Really Simple History">RSH</abbr> is exactly what it sounds like, it is a really simple way of adding history and bookmarking to your AJAXified apps.  To see it in action have a look at the <a href="http://admissions.gmu.edu/grad/matrix/" target="_blank">Mason's Graduate Requirements</a> site where it is being used to handle bookmarking for four separate parameters.</p>
<p>What I want to cover in the article is what I have learned and what steps I took when coding with RSH for the Mason project and for some other on going projects.</p>
<p>First thing you should do is download the <a href="http://reallysimplehistory.googlecode.com/files/RSH0.6FINAL.zip" target="_blank">Really Simple History code</a>.</p>
<p>Secondly, I have been using a modified version of <a href="http://adamv.com/dev/javascript/querystring" target="_blank">Adam Vandenberg's Querystring</a> functions which has only one modification to it.</p>
<div class="igBar"><span id="ljavascript-5"><a href="#" onclick="javascript:showPlainTxt('javascript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-5">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>qs == <span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> qs = location.<span style="color: #006600;">search</span>.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;color:#800000;">1</span>, location.<span style="color: #006600;">search</span>.<span style="color: #006600;">length</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// changed to</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>qs == <span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> qs = location.<span style="color: #006600;">hash</span>.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/^.*#/</span>, <span style="color: #3366CC;">''</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You will need to set up your script is a particular way so that the history script is created first, and then initialized, at least the way I do it, when DOM is ready.  You can get away with doing it on Window.onload but since most likely your code will be minipulating the DOM, initializing on DOM ready is probably better for you.</p>
<p>I set up my inital code like below:</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showPlainTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-6">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> initail = <span style="color: #003366; font-weight: bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> qs = <span style="color: #003366; font-weight: bold;">null</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">window.<span style="color: #006600;">dhtmlHistory</span>.<span style="color: #006600;">create</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dhtmlHistory.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; dhtmlHistory.<span style="color: #006600;">addListener</span><span style="color: #66cc66;">&#40;</span>theListener<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>!initail<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; theListener<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lines 1 and 2 we set up some globals we will be reusing later on and line 4 we create the history object.  Lines 5 and 6 should be familiar to you, here we just check to see if the DOM is ready, if so, we run the code in the containing function.  Line 8 we initialize the history script and at line 9 we set the listener to "theListener" which is a function I will point out further down the page.  You will see that I also have an IF statement that is checking to see if this is the initial run.  This is because the the RSH script does not run the listener script when it is initialized.</p>
<p>The next function is just a helper function I use all the time when dealing with the hash:</p>
<div class="igBar"><span id="ljavascript-7"><a href="#" onclick="javascript:showPlainTxt('javascript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-7">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">hash = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> location.<span style="color: #006600;">hash</span>.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/^.*#/</span>, <span style="color: #3366CC;">''</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The last function is the "theListener" function which I referenced at line 9 of the second group of codes.  This function will get called each and every time the hash changes.</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-8">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theListener = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>!initail<span style="color: #66cc66;">&#41;</span> initail = <span style="color: #003366; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; qs = <span style="color: #003366; font-weight: bold;">new</span> Querystring<span style="color: #66cc66;">&#40;</span> hash<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000066; font-weight: bold;">typeof</span> qs.<span style="color: #006600;">get</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'cat'</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #3366CC;">'undefined'</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// run cat specific code</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Although the RSH script does pass back two params you will see that I don't use them and the only real reason for this is that I felt it was too complicated and I never really figured out how I should use them.</p>
<p>At line 2 of the function we check to see if the function was already initiated.  Then at line 3 we set up a new Querystring reference - should probably change the name to hashstring or something like that at some point.  And from this point on, you can check your query string for what ever parameters you need to and run the appropriate codes.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/really-simple-history-ajax-history-and-bookmarking-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: what are the fastest selectors?</title>
		<link>http://benjaminsterling.com/jquery-what-are-the-fastest-selector/</link>
		<comments>http://benjaminsterling.com/jquery-what-are-the-fastest-selector/#comments</comments>
		<pubDate>Fri, 23 Nov 2007 20:40:21 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[selectors]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/11/23/jquery-what-are-the-fastest-selector/</guid>
		<description><![CDATA[Update 12/07/2007: per Brian Cherne comments, I decided to run these test again in Firefox with firebug lite instead of firebug and the execution times were dreastically different. So, to "level the playing field" I would suggest that you turn off firebug or disable it for the page and refresh, you will get the firebug [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 12/07/2007:</strong> per <a href="#comment-319">Brian Cherne comments</a>, I decided to run these test again in Firefox with firebug lite instead of firebug and the execution times were dreastically different.  So, to "level the playing field" I would suggest that you turn off firebug or disable it for the page and refresh, you will get the firebug lite console pop up at the bottom of the screen and then run the test.  You will get much better results; but I most ask this question, because after searching I could not find the answer, why the difference in speeds?</p>
<p>I've been using jQuery for over a year now and have built some pretty big apps with it as my "selector" engine and had always wondered what were the fastest ways to select an element.  After reading a post on the mailing list I decided to put some selectors to test.  First thing I had to figure out what was the best way to really test out some selectors.  So I went about just grabbing some site I came across while <a href="http://emevas1977.stumbleupon.com/" rel="nofollow">Stumbling</a>, but after doing some testing using that sites content I came to the realization that I would not know how to implement a "test" suite on my site.  So what I decided was to just implement an on the fly test suite on my content.</p>
<p>With that said, here we go:</p>
<p>If you do not have firebug installed, you will have a Firebug lite console pop up at the bottom of the screen.  If you do have Firebug installed, be sure to open it to follow along.</p>
<p>This page has <span id="domCount">x</span> DOM elements on it.  So, what ever selection we make will cycle/search through that total number of elements.</p>
<p>First up is to find an element with the ID of "shareThisBookmarkThisone" (this is the "Share this..." div that is currently hidden) and to select this element we will do:</p>
<div class="igBar"><span id="ljavascript-15"><a href="#" onclick="javascript:showPlainTxt('javascript-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-15">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#shareThisBookmarkThisone"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 1" id="shareThisBookmarkThisoneButton"/>
<p>After running that test you should have a number around 10 - 20 milliseconds.  In this case, it is the equivalent of "getElementById" which is a built in JavaScript method that searches for an element node with an id attribute whose value is "shareThisBookmarkThisoneButton."</p>
<p>Pretty simple selector, lets move onto another simple one that should be pretty fast.</p>
<p>On this page, I have <span id="divCount">x</span> DIV elements.</p>
<div class="igBar"><span id="ljavascript-16"><a href="#" onclick="javascript:showPlainTxt('javascript-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-16">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"div"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 2" id="runTest2"/>
<p>After running that one, you should be looking at something between 0 - 10ms with Firefox about the 100ms range, once again, pretty simple.</p>
<p>Now let start getting into what selection methods are faster, say we want one of those DIVs with a class of "adspace," which approach would be faster?  One this page, I know we only have one to work with, so we should be able to get a reasonable return time.</p>
<p>Our first approach would be:</p>
<div class="igBar"><span id="ljavascript-17"><a href="#" onclick="javascript:showPlainTxt('javascript-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-17">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".adspace"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 3" id="runTest3"/>
<div class="igBar"><span id="ljavascript-18"><a href="#" onclick="javascript:showPlainTxt('javascript-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-18">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"div.adspace"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 4" id="runTest4"/>
<div class="igBar"><span id="ljavascript-19"><a href="#" onclick="javascript:showPlainTxt('javascript-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-19">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"div"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">filter</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".adspace"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 5" id="runTest5"/>
<p>For "Test 3" we should get about 15ms in Firefox 2, Safari 3, between 0 - 16ms in Opera 9.2 and 0ms in IE6 and IE7, whereas we get 0ms across the board for "Test 4."  Now in "Test 5" we get 0ms for all except Firefox, where we get around 15ms.</p>
<p>What does the above tell us?  That if there is only one element things are quicker?  Not sure, but lets put that to the test, I posted some empty DIVs, some with a class of "selectMe" and others with some random classes, you can view the source to see what these DIVs look like.
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="sick"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="bike"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="selectMe"></div>
</div>
<dl>
<dd>
<div class="selectMe"></div>
<div class="car"></div>
<div class="selectMe"></div>
</dd>
</dl>
<div class="selectMe"></div>
<div class="selectMe"></div>
<div class="igBar"><span id="ljavascript-20"><a href="#" onclick="javascript:showPlainTxt('javascript-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-20">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".adspace"</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"div.adspace"</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"div"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">filter</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".adspace"</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<input type="submit" name="submit" value="Run Test 6" id="runTest6"/>
<p>With "Test 6" we are looking getting back 153 results and I really must say that I am a little shocked by the results:</p>
<ul>
<li>IE7
<ul>
<li>6.1: 16ms</li>
<li>6.2: 15ms</li>
<li>6.3: 0ms</li>
</ul>
</li>
<li>Safari
<ul>
<li>6.1: 16ms</li>
<li>6.2: 0ms</li>
<li>6.3: 0ms</li>
</ul>
</li>
<li>Opera
<ul>
<li>6.1: 31ms</li>
<li>6.2: 0ms</li>
<li>6.3: 0ms</li>
</ul>
</li>
<li>Firefox with firebug
<ul>
<li>6.1: 141ms</li>
<li>6.2: 109ms</li>
<li>6.3: 109ms</li>
</ul>
</li>
<li>Firefox with firebug lite
<ul>
<li>6.1: 31ms</li>
<li>6.2: 0ms</li>
<li>6.3: 0ms</li>
</ul>
</li>
</ul>
<h5>Final Notes</h5>
<p>Before we get into what we learned let me put a bit of a disclaimer here.  I have not really looked into the full workings of the jQuery framework, so anything I say is based off of my assumptions and what I learned as I have built with it.  The numbers you see above are from browsers that are running on a not so average computer, so they are not from the average user's/client's computer.</p>
<p>What did we learn?  That if you are looking for all elements with a certain class and they are all of the same tag name, do $("TAGNAME.CLASSNAME") or $("TAGNAME").filter(".CLASSNAME").  That if you have only a single element that needs to be called and there will not be duplicates, your fastest selector is going to be the $("#ID") selector.  That<del datetime="2007-12-08T01:50:05+00:00">, with the exception of Firefox,</del> the leading browsers handle a TAG search pretty quickly.  Firefox had comparable speeds to the other browsers once firebug is turned off.</p>
<p>Something to keep in mind is that we did not do any manipulations, ie. css(), append(), animate(), or any really complex selectors and those will add time your actions.</p>
<p>jQuery is the library of choice for me, you are free to use any of the many libraries out there.</p>
<p><script type="text/javascript">
	$(document).ready(function(){
		if (!("console" in window) || !("firebug" in console)) {
			$("html").attr("debug","true");
			$("body").css("padding-bottom",200);
			$.getScript("/firebug/firebug.js");
		}
		$("#domCount").text($("*").size());
		$("#divCount").text($("div").size());
		$("#shareThisBookmarkThisoneButton").click(function(){
				console.time("test 1");
				var _this = $("#shareThisBookmarkThisone");
				console.log(_this);
				console.log("#shareThisBookmarkThisone count: " +_this.size());
				console.timeEnd("test 1");
			return false;
		});
		$("#runTest2").click(function(){
				console.time("test 2");
				var _this = $("div");
				console.log(_this);
				console.log("DIV count: " +_this.size());
				console.timeEnd("test 2");
			return false;
		});
		$("#runTest3").click(function(){
				console.time("test 3");
				var _this = $(".adspace");
				console.log(_this);
				console.log("DIV count: " +_this.size());
				console.timeEnd("test 3");
			return false;
		});
		$("#runTest4").click(function(){
				console.time("test 4");
				var _this = $("div.adspace");
				console.log(_this);
				console.log("DIV count: " +_this.size());
				console.timeEnd("test 4");
			return false;
		});
		$("#runTest5").click(function(){
				console.time("test 5");
				var _this = $("div").filter(".adspace");
				console.log(_this);
				console.log("DIV count: " +_this.size());
				console.timeEnd("test 5");
			return false;
		});
		$("#runTest6").click(function(){
				console.time("test 6.1");
				var _this = $(".selectMe");
				console.log(_this);
				console.log(".selectMe count: " +_this.size());
				console.timeEnd("test 6.1");
				console.time("test 6.2");
				var _this = $("div.selectMe");
				console.log(_this);
				console.log("div.selectMe count: " +_this.size());
				console.timeEnd("test 6.2");
				console.time("test 6.3");
				var _this = $("div").filter(".selectMe");
				console.log(_this);
				console.log("div filter selectMe count: " +_this.size());
				console.timeEnd("test 6.3");
			return false;
		});
	});
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-what-are-the-fastest-selector/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Using JSON in PHP4 and PHP5 with an included class or json_decode</title>
		<link>http://benjaminsterling.com/using-json-in-php4-and-php5-with-an-included-class-or-json_decode/</link>
		<comments>http://benjaminsterling.com/using-json-in-php4-and-php5-with-an-included-class-or-json_decode/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 03:38:42 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[json_decode]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/11/18/using-json-in-php4-and-php5-with-an-included-class-or-json_decode/</guid>
		<description><![CDATA[When building my first real plugin for WordPress, I wanted to utilize some Ajax approaches that would use JSON and which would make for a speedy process, but quickly found that 1) PHP4 does not support the "json_decode" function, 2) the classes that json.org recommended were too hard to put into play, and 3) once [...]]]></description>
			<content:encoded><![CDATA[<p>When building my first real plugin for WordPress, I wanted to utilize some Ajax approaches that would use <a href="http://json.org/" title="JSON at json.org" target="_blank">JSON</a> and which would make for a speedy process, but quickly found that 1) PHP4 does not support the "<a href="http://php.net/json_decode" title="json_decode at php.net" target="_blank">json_decode</a>" function, 2) the classes that json.org recommended were too hard to put into play, and 3) once you got the proper JSON communications going back and forth between the server and the webpage, each platform handle/expect JSON in a slightly different way.</p>
<div style="float:right;padding:10px;background:#fff;border:1px solid #ccc;margin-left:1em;">
<script type="text/javascript">var dzone_url = "http://benjaminsterling.com/using-json-in-php4-and-php5-with-an-included-class-or-json_decode/";</script><br />
<script type="text/javascript">var dzone_title = "Using JSON in PHP4 and PHP5 with an included class or json_decode";</script><br />
<script type="text/javascript">var dzone_blurb = "A good post on how to play with JSON in PHP4 and PHP5 while using json_decode and jQuery";</script><br />
<script type="text/javascript">var dzone_style = "1";</script><br />
<script language="javascript" src="http://widgets.dzone.com/widgets/zoneit.js"></script>
</div>
<p>Let's talk about my first two points, PHP4 does not support the json_decode function and the resources the json.org points you too are not all that great.  I actually wasted a good four or so hours trying to first figure out which one was best for my situation and once I did that, trying to get the on to work with out hacking and adding a bunch of crap.  After doing some research and searching I came across phpclasses.org, which is a great resource for finding anything you need for PHP, but the site is so weighed down with advertising, what should take you five minutes to do, takes you fifteen minutes because you are waiting for the site to load, dodging the multiple pop-ups (yes, even with a pop-up blocker).  With that said, it is a great resource and I came across a <a href="http//cesars.users.phpclasses.org/json" title="JSON class at phpclasses.org" target="_blank">JSON class</a> that returns that same empty class or "stdClass."  I may be wrong in my interpretation of what an "stdClass" is, so don't quote me on it.</p>
<p>So with with that class in hand, my problem with getting my plugin to work in both PHP4 and PHP5 what solved and all the code I need to add to my app was:</p>
<div class="igBar"><span id="lphp-33"><a href="#" onclick="javascript:showPlainTxt('php-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-33">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$params</span> = <span style="color:#FF0000;">'{&quot;key&quot;:&quot;value&quot;}'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/extension_loaded"><span style="color:#000066;">extension_loaded</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'json'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">include_once</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'common/inc/JSON.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$json</span> = <span style="color:#000000; font-weight:bold;">new</span> JSON;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$objs</span> = <span style="color:#0000FF;">$json</span>-&gt;<span style="color:#006600;">unserialize</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$objs</span> = json_decode<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The if (!extension_loaded('json')){ line checks to see if the JSON extensions are loaded and if not, it will include the JSON.php that contains the JSON class we need.  And once that code was ran, it was as simple as doing the following to get the correct content:</p>
<div class="igBar"><span id="lphp-34"><a href="#" onclick="javascript:showPlainTxt('php-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-34">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$objs</span>-&gt;<span style="color:#006600;">key</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// returns value </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>There are a few notes first, on php.net, the note that <em>"This function will return false if the JSON encoded data is deeper than 127 elements."</em>  And both functions will return false if the json string is not in proper form, check out <a href="http://json.org">json.org</a> for in depth information about proper form, but I will go over some that I ran into right now.</p>
<p><!--adsense--></p>
<p>If you do something like below:</p>
<div class="igBar"><span id="lphp-35"><a href="#" onclick="javascript:showPlainTxt('php-35'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-35">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$jsonString</span> = <span style="color:#FF0000;">'{&quot;a&quot;:true,&quot;b&quot;:2,&quot;c&quot;:3,&quot;d&quot;:4,&quot;e&quot;:5}'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$json_decodeString</span> = json_decode<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$jsonString</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;pre&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/print_r"><span style="color:#000066;">print_r</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$json_decodeString</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;/pre&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">include_once</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'JSON.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$json</span> = <span style="color:#000000; font-weight:bold;">new</span> JSON;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$jsonClassString</span> = <span style="color:#0000FF;">$json</span>-&gt;<span style="color:#006600;">unserialize</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$jsonString</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;pre&gt;'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/print_r"><span style="color:#000066;">print_r</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$jsonClassString</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;/pre&gt;'</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You will get:</p>
<div class="igBar"><span id="lhtml-36"><a href="#" onclick="javascript:showPlainTxt('html-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-36">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">stdClass Object</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">(</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [a] =&gt; 1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [b] =&gt; 2</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [c] =&gt; 3</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [d] =&gt; 4</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [e] =&gt; 5</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">)</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">stdClass Object</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">(</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [a] =&gt; 1</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [b] =&gt; 2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [c] =&gt; 3</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [d] =&gt; 4</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; [e] =&gt; 5</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">) </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Notice that each key is wrapped with parentheses and since we are dealing with with numbers and boolean in the values, we don't need to wrap them.  Also notice that the <strong>true</strong> value returned 1, remember in the computer world, true == 1 and false == 0.</p>
<p>All fairly simple right?  No suppose we are pulling the above json string into the browser via a Ajax call, in the following example we have a jQuery Ajax call that is running a runTest function and passing the data returned by the json/Ajax call:</p>
<div class="igBar"><span id="ljavascript-37"><a href="#" onclick="javascript:showPlainTxt('javascript-37'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-37">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $.<span style="color: #006600;">ajax</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url : <span style="color: #3366CC;">'dump.php'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataType:<span style="color: #3366CC;">'json'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data :<span style="color: #3366CC;">'go=test1'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; success : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; runTest<span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; runTest = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>data.<span style="color: #006600;">a</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// run more code</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If we take the string below and pass that thru to the runTest function, the "run more code" section would get executed:</p>
<div class="igBar"><span id="lphp-38"><a href="#" onclick="javascript:showPlainTxt('php-38'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-38">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$jsonString</span> = <span style="color:#FF0000;">'{&quot;a&quot;:true,&quot;b&quot;:2,&quot;c&quot;:3,&quot;d&quot;:4,&quot;e&quot;:5}'</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Now, if we take the same string and returned the follow instead, the "run more code" section will still get executed:</p>
<div class="igBar"><span id="lphp-39"><a href="#" onclick="javascript:showPlainTxt('php-39'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-39">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">"a"</span>:<span style="color:#FF0000;">"false"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>You would think that if you change the <strong>if</strong> statement to the following that it would not get executed:</p>
<div class="igBar"><span id="ljavascript-40"><a href="#" onclick="javascript:showPlainTxt('javascript-40'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-40">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>data.<span style="color: #006600;">a</span> == <span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is not true because we are passing back a <strong>String</strong> and not a <strong>Boolean</strong> and the reason if(data.a){ works with a non-empty string is because an empty string is considered <strong>NULL</strong> which is in turn considered <strong>false</strong>.</p>
<p>With all that background out of the way, lets take some of my real world examples when dealing with getting back the correct format on the Javascript side.</p>
<p><!--adsense--></p>
<p>From the database, I have all the parameters for a jQuery plugin that needs to be echoed out, in this particulare situation, I am not using Ajax, I am simple build our the plugin's needs and echoing them out to the browser.  The format needs looks something like:</p>
<div class="igBar"><span id="ljavascript-41"><a href="#" onclick="javascript:showPlainTxt('javascript-41'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-41">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span>fx:<span style="color: #3366CC;">"scrollDown"</span>,timeout:<span style="color: #CC0000;color:#800000;">1000</span>,height:<span style="color: #CC0000;color:#800000;">97</span>,random:<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>but the sever would print out something like:</p>
<div class="igBar"><span id="ljavascript-42"><a href="#" onclick="javascript:showPlainTxt('javascript-42'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-42">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span><span style="color: #3366CC;">"fx"</span>:<span style="color: #3366CC;">"scrollDown"</span>,<span style="color: #3366CC;">"timeout"</span>:<span style="color: #CC0000;color:#800000;">1000</span>,<span style="color: #3366CC;">"height"</span>:<span style="color: #CC0000;color:#800000;">97</span>,<span style="color: #3366CC;">"random"</span>:<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So, I did I get the correct format?  I did the following:</p>
<div class="igBar"><span id="lphp-43"><a href="#" onclick="javascript:showPlainTxt('php-43'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-43">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/extension_loaded"><span style="color:#000066;">extension_loaded</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'json'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">include_once</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'common/inc/JSON.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$json</span> = <span style="color:#000000; font-weight:bold;">new</span> JSON;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$objs</span> = <span style="color:#0000FF;">$json</span>-&gt;<span style="color:#006600;">unserialize</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/stripslashes"><span style="color:#000066;">stripslashes</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">else</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$objs</span> = json_decode<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/stripslashes"><span style="color:#000066;">stripslashes</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$params</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$tmp</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$objs</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">foreach</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$objs</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$obj</span> =&gt; <span style="color:#0000FF;">$k</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$k</span> = <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color:#000066;">is_numeric</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$k</span><span style="color:#006600; font-weight:bold;">&#41;</span> || <a href="http://www.php.net/is_bool"><span style="color:#000066;">is_bool</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$k</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ? <span style="color:#0000FF;">$k</span> : <span style="color:#FF0000;">'&quot;'</span>.<span style="color:#0000FF;">$k</span>.<span style="color:#FF0000;">'&quot;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color:#000066;">array_push</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tmp</span>, <span style="color:#0000FF;">$obj</span> . <span style="color:#FF0000;">':'</span> . <span style="color:#0000FF;">$k</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;script type=&quot;text/javascript&quot;&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; $(document).ready(function(){</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;ul#theGallery&quot;).'</span>.<span style="color:#0000FF;">$r</span>.<span style="color:#FF0000;">'({'</span>.<a href="http://www.php.net/join"><span style="color:#000066;">join</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">','</span>,<span style="color:#0000FF;">$tmp</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">'});</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; });</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;/script&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">'</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Let me try to explain what the above is doing, I already explained what line 1 trhu 8 are doing up above.  Line 11 we check to see if $objs is not <strong>false</strong> or <strong>NULL</strong>.  At line 12 we start our foreach loop and line 13 is where we check to see if the value is numeric or a boolean and if the value is either, return the value as is, but if it isn't, wrap it in parentheses.  Line 14 we are pushing it into an array much like the Javascript method myArray.push('text').  Once we are done building the array and cycling through the objects, in this situation, we echo out the array while joining the array with the <strong>Join</strong> method just like the Javascript method myArray.join(",").</p>
<p><!--adsense--></p>
<p>This approach can be used for sending back a json formated string to Javascript:</p>
<div class="igBar"><span id="lphp-44"><a href="#" onclick="javascript:showPlainTxt('php-44'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-44">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$query</span>&nbsp; = <span style="color:#FF0000;">"SELECT name, subject, message FROM contact"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$query</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$tmp</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$row</span> = <a href="http://www.php.net/mysql_fetch_array"><span style="color:#000066;">mysql_fetch_array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span>, MYSQL_ASSOC<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array_push"><span style="color:#000066;">array_push</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tmp</span>, <span style="color:#FF0000;">'&quot;name&quot;:'</span>.<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color:#000066;">is_numeric</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || <a href="http://www.php.net/is_bool"><span style="color:#000066;">is_bool</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ? <span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#93;</span> : <span style="color:#FF0000;">'&quot;'</span>.<span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">'&quot;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array_push"><span style="color:#000066;">array_push</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tmp</span>, <span style="color:#FF0000;">'&quot;name&quot;:'</span>.<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color:#000066;">is_numeric</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'subject'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || <a href="http://www.php.net/is_bool"><span style="color:#000066;">is_bool</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'subject'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ? <span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'subject'</span><span style="color:#006600; font-weight:bold;">&#93;</span> : <span style="color:#FF0000;">'&quot;'</span>.<span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'subject'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">'&quot;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array_push"><span style="color:#000066;">array_push</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tmp</span>, <span style="color:#FF0000;">'&quot;name&quot;:'</span>.<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color:#000066;">is_numeric</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'message'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || <a href="http://www.php.net/is_bool"><span style="color:#000066;">is_bool</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'message'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ? <span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'message'</span><span style="color:#006600; font-weight:bold;">&#93;</span> : <span style="color:#FF0000;">'&quot;'</span>.<span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'message'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">'&quot;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"{"</span>.<a href="http://www.php.net/join"><span style="color:#000066;">join</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">','</span>,<span style="color:#0000FF;">$tmp</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#FF0000;">"}"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This particular subject can be expanded much more, but I would suggest that you experiment and see what works and what does not and ask questions, lots of them.  Feel free to post questions and comments, if I made any mistakes with my assumptions, call me on them.  It is the only way we all learn.</p>
<p>Thanks again.</p>
<p><!--adsense#between_2--></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/using-json-in-php4-and-php5-with-an-included-class-or-json_decode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VerticalFillJs: Auto-resize text to fill available space</title>
		<link>http://benjaminsterling.com/verticalfilljs-auto-resize-text-to-fill-available-space/</link>
		<comments>http://benjaminsterling.com/verticalfilljs-auto-resize-text-to-fill-available-space/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 16:45:40 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[css help]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/11/02/verticalfilljs-auto-resize-text-to-fill-available-space/</guid>
		<description><![CDATA[It's not jQuery but it does a nice job of taking a problem and fixing. The VerticalFillJs script was written by Dan Drinkard over at displayawesome.com, head over to his blog post to see it in action. Basically what this code snippet does, is that it takes an element that has a set high and [...]]]></description>
			<content:encoded><![CDATA[<p>It's not jQuery but it does a nice job of taking a problem and fixing.  The VerticalFillJs script was written by Dan Drinkard over at <a href="http://displayawesome.com"  target="_blank">displayawesome.com</a>, head over to his blog post to <a href="http://displayawesome.com/demos/verticalfill.html" target="_blank">see it in action</a>.</p>
<p>Basically what this code snippet does, is that it takes an element that has a set high and width and makes the inner text the appropriate size to fit that area.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/verticalfilljs-auto-resize-text-to-fill-available-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax Experience 2007</title>
		<link>http://benjaminsterling.com/ajax-experience-2007/</link>
		<comments>http://benjaminsterling.com/ajax-experience-2007/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 15:29:19 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[The Ajax Experience]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/10/23/ajax-experience-2007/</guid>
		<description><![CDATA[Well, today is October 23, 2007 and I will be leaving the comfort of my home to go learn something about this thing called "Ajax" and related elements. What do I expect to get out the this experience? Not really sure; more knowledge? correct procedures? new ideas? Really not sure, but I am sure if [...]]]></description>
			<content:encoded><![CDATA[<p>Well, today is October 23, 2007 and I will be leaving the comfort of my home to go learn something about this thing called <a href="http://en.wikipedia.org/wiki/Ajax_(programming)" target="_blank">"Ajax"</a> and related elements.  What do I expect to get out the this experience?  Not really sure; more knowledge? correct procedures? new ideas?  Really not sure, but I am sure if will be fun and exciting.</p>
<p>I would love to say that I am going to write about my experience and give great detail and wow you, but lets be realistic, if you have read any of my instructions for my plugins you know that I am not much of a writer.  So I will leave that up to the people who have skills in that area.</p>
<p>Here is a list of them:</p>
<ul>
<li><a href="http://rdworth.org/blog/category/my-ajax-experience/">rdworth.org</a></li>
</ul>
<p>Talk to you soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/ajax-experience-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: jqGalViewII (Photo Gallery)</title>
		<link>http://benjaminsterling.com/jquery-jqgalviewii-photo-gallery/</link>
		<comments>http://benjaminsterling.com/jquery-jqgalviewii-photo-gallery/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 03:31:08 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Flash Alternatives]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jqgalview]]></category>
		<category><![CDATA[jqgalviewii]]></category>
		<category><![CDATA[photo gallery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/</guid>
		<description><![CDATA[With the success of the jqGalView Plugin I've decided to release the jQuery jqGalViewII (beta) Plugin which allows you to take a grouping of images and turn it into an flash-like image/photo gallery, much like what the <a href="http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery/">jqGalView Plugin</a> does for you.     It allows you  to style it how ever you want and add as many images at you want.]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>This is the jQuery Gallery View II plugin (jqGalViewII) which takes a list of your images and creates an easily styles photo gallery.  This plugin will preload all of your larger images for faster viewing.</p>
<h3>The Head</h3>
<div class="igBar"><span id="ljavascript-45"><a href="#" onclick="javascript:showPlainTxt('javascript-45'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-45">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"http://code.jquery.com/jquery-latest.pack.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"common/js/jqGalViewII.pack.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#demo'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalViewII</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lhtml-46"><a href="#" onclick="javascript:showPlainTxt('html-46'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-46">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">&lt;style</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"screen"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">@import url(&quot;common/css/jqGalViewII.css&quot;);</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">--&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>The Body</h3>
<div class="igBar"><span id="lhtml-47"><a href="#" onclick="javascript:showPlainTxt('html-47'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-47">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"My Gallery"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s72/DSC_0001.JPG"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Yes, I do know what I am doing!"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"72"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"48"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s72/DSC_0025.JPG"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Hey, it is better then reversible diapers!"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"72"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"48"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s72/DSC_0004.JPG"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s72/DSC_0005.JPG"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s72/DSC_0006.JPG"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"72"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"48"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And that would produce the following:</p>
<ul id="demo" title="My Gallery">
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s72/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s72/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s72/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s72/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s72/DSC_0006.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s72/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s72/DSC_0030.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s72/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s72/DSC_0047.JPG" alt="" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s72/DSC_0032.JPG" alt="" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s72/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s72/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s72/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s72/DSC_0017.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s72/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s72/DSC_0018.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s72/DSC_0021.JPG" alt="It is out of focus; let me help." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s72/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s72/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s72/DSC_0096.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s72/DSC_0010.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s72/DSC_0039.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s72/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="72" height="48" border="0"/></a></li>
<li><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s72/DSC_0042.JPG" width="72" height="48"/></li>
<li><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s72/DSC_0106.JPG" width="72" height="48"/></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s72/DSC_0218.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s72/DSC_0004.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s72/DSC_0009.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s72/DSC_0020.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s72/DSC_0012.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s72/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s72/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s72/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s72/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s72/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s72/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s72/DSC_0006.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s72/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s72/DSC_0030.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s72/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s72/DSC_0047.JPG" alt="" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s72/DSC_0032.JPG" alt="" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s72/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s72/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s72/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s72/DSC_0017.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s72/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s72/DSC_0018.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s72/DSC_0021.JPG" alt="It is out of focus; let me help." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s72/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s72/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s72/DSC_0096.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s72/DSC_0010.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s72/DSC_0039.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s72/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/DSC_0042.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s72/DSC_0042.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/DSC_0106.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s72/DSC_0106.JPG" alt="What way is this supposed to go?" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s72/DSC_0218.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s72/DSC_0004.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s72/DSC_0009.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s72/DSC_0020.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s72/DSC_0012.JPG" width="72" height="48" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s72/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="72" height="48" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s72/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="72" height="48" border="0"/></a></li>
</ul>
<h3>The Downloads</h3>
<p>Download zip with demo and styles: <a href="http://bs-jquery-plugins.googlecode.com/files/jqGalViewII.1.0.zip" rel="nofollow">http://bs-jquery-plugins.googl.....II.1.0.zip</a><br />
The jQuery core is available at: <a class="external" href="http://code.google.com/p/jqueryjs/downloads/list" target="_blank" rel="nofollow">http://code.google.com/p/jqueryjs/downloads/list</a>.</p>
<p><!--adsense#between_2--></p>
<p><script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script><br />
<script type="text/javascript" src="http://bs-jquery-plugins.googlecode.com/svn/trunk/jqGalViewII/common/js/jqGalViewII.pack.js"></script><br />
<script type="text/javascript">
	$(document).ready(function(){
		$("#demo").jqGalViewII();
	});
</script></p>
<style type="text/css" media="screen">
		<!--
	.gvIIContainer{
		width:560px;
		position:relative;
		background:#000;
		padding:10px 0 10px 10px;
		/*border:10px solid #fff;*/
	}
	.gvIIContainer .gvIIImgContainer img{
		margin-left:0;
		margin-top:0;
	}
	.gvIIAltText{
		position:absolute;
		right:0;
		top:0;
		background:#000;
		border:1px solid #fff;
		color:#fff;
		padding:5px;
	}
	.gvIIContainer .gvIIImgContainer{
		width:550px;
		height:385px;
		position:relative;
		overflow:hidden;
		margin-bottom:10px;
	}
	.gvIIContainer .gvIIImgContainer .gvIILoader{
		background: url(/articles/jqGalViewII/common/img/ajax-loader.gif) no-repeat center center;
		width:550px;
		height:385px;
		display:none;
	}
	.gvIIContainer .gvIIHolder{
		position:relative;
		height:207px;
		width:550px;
		overflow:auto;
	}
	.gvIIContainer .gvIIHolder .gvIIArrow{}
	.gvIIContainer .gvIIHolder .gvIIItem{
		float:left;
		height:55px;
		width:72px;
		border:5px solid #fff;
		margin:2px;
		position:relative;
		overflow:hidden;
	}
	.gvIIContainer .gvIIHolder .gvIIItem .gvIIFlash{
		background:#fff;
		position:absolute;
		top:0;
		left:0;
		height:55px;
		width:72px;
		cursor:pointer;
	}
	.gvIIContainer .gvIIHolder .gvIIItem img{
		position:absolute;
		top:0;
		left:0;
		padding:0;
		margin:0;
		margin-left:0;
		margin-top:0;
		border:none;
		cursor:pointer;
	}
		-->
		</style>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqgalviewii-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>121</slash:comments>
		</item>
		<item>
		<title>Image/Photo Gallery Viewer using jQuery</title>
		<link>http://benjaminsterling.com/jquery-jqgalview-photo-gallery/</link>
		<comments>http://benjaminsterling.com/jquery-jqgalview-photo-gallery/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 16:01:24 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Flash Alternatives]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/09/30/jquery-jqgalview-photo-gallery/</guid>
		<description><![CDATA[The jQuery jqGalView Plugin allows you to take a grouping of images and turn it into an flash-like image/photo gallery.     It allows you  to style it how ever you want and add as many images at you want.]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<h3>jqGalView Overview</h3>
<p>The jQuery jqGalView Plugin allows you to take a grouping of images and turn it into an flash-like image/photo gallery.     It allows you  to style it how ever you want and add as many images at you want.</p>
<p>Inspired by <a href="http://www.flashimagegallery.com/pics/artwork/" target="_blank" rel="nofollow">http://www.flashimagegallery.com/pics/artwork/</a>!</p>
<p>Feel free to vote for this plugin over at <a href="http://ajaxrain.com/search.php?seVal=jqGalView" target="_blank">http://ajaxrain.com/search.php?seVal=jqGalView</a></p>
<p>The jQuery jqGalView Plugin's purpose is to be unobtrusive as possible and 	after looking at a lot of static photo galleries I feel the jQuery Gallery	Viewer does just that. It takes any current structure and rips out the	images and any parent link and turns a static photo gallery in to a dynamic	flash-like gallery.</p>
<p>I tried to make this plugin as easy and flexible to you, for example, doing:</p>
<h5>The head stuff</h5>
<div class="igBar"><span id="ljavascript-48"><a href="#" onclick="javascript:showPlainTxt('javascript-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-48">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/articles/common/js/jquery-1.2.1.pack.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/articles/jqGalView/common/js/jqGalView.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#example1"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalView</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h5>The xhtml</h5>
<div class="igBar"><span id="lhtml-49"><a href="#" onclick="javascript:showPlainTxt('html-49'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-49">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"example1"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"My Gallery"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"PathToFullSizeImage"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"PathToFullThumbnailImage"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Some alt text"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"144"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"96"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"PathToFullSizeImage"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"PathToFullThumbnailImage"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Some alt text"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"144"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"96"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"PathToFullSizeImage"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"PathToFullThumbnailImage"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">"Some alt text"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"144"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"96"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Will produce the following, with styling and more images of course</p>
<style media="all">
	@import url("/articles/jqGalView/common/css/jqGalView.css");
</style>
<p><script type="text/javascript" src="/articles/common/js/jquery.easing.1.1.1.js"></script><br />
<script type="text/javascript" src="/articles/common/js/jqModal.js"></script><br />
<script type="text/javascript" src="/articles/jqGalView/common/js/jqGalView.js"></script><br />
<script type="text/javascript">
	$(document).ready(function(){
		$("#example1").jqGalView();
	});
</script></p>
<ul id="example1" title="My Gallery">
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s144/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s144/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/100_1712.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/s144/100_1712.JPG" alt="It... it smells like... old cheese in here..." width="144" height="108" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/100_1886.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/s144/100_1886.JPG" alt="Everyone looks good through a glass of beer!" width="144" height="108" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s144/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s144/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s144/DSC_0006.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s144/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s144/DSC_0030.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s144/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s144/DSC_0047.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s144/DSC_0032.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s144/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s144/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s144/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s144/DSC_0017.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s144/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s144/DSC_0018.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s144/DSC_0021.JPG" alt="It is out of focus; let me help." width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s144/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="144" height="96"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s144/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s144/DSC_0096.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s144/DSC_0010.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s144/DSC_0039.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s144/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="144" height="96"/></a></li>
<li><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s144/DSC_0042.JPG" width="144" height="96"/></li>
<li><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s144/DSC_0106.JPG" width="144" height="96"/></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s144/DSC_0218.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s144/DSC_0004.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s144/DSC_0009.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s144/DSC_0020.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s144/DSC_0012.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s144/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s144/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s144/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s144/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/100_1712.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/s144/100_1712.JPG" alt="It... it smells like... old cheese in here..." width="144" height="108" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/100_1886.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/s144/100_1886.JPG" alt="Everyone looks good through a glass of beer!" width="144" height="108" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s144/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s144/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s144/DSC_0006.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s144/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s144/DSC_0030.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s144/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s144/DSC_0047.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s144/DSC_0032.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s144/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s144/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s144/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s144/DSC_0017.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s144/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s144/DSC_0018.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s144/DSC_0021.JPG" alt="It is out of focus; let me help." width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s144/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="144" height="96"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s144/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s144/DSC_0096.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s144/DSC_0010.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s144/DSC_0039.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s144/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/DSC_0042.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s144/DSC_0042.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/DSC_0106.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s144/DSC_0106.JPG" alt="What way is this supposed to go?" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s144/DSC_0218.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s144/DSC_0004.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s144/DSC_0009.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s144/DSC_0020.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s144/DSC_0012.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s144/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s144/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="144" height="96" border="0"/></a></li>
</ul>
<h5>The Small Print</h5>
<p>So you see, it is pretty simple to take your list/group of images and turn it into a nice photo gallery with some styles. In this instance, it is taking the		images you have in a unordered list, but you are not limited to that at all.	You can do a table:</p>
<p>
<div class="igBar"><span id="lhtml-50"><a href="#" onclick="javascript:showPlainTxt('html-50'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-50">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/table.html"><span style="color: #000000; font-weight: bold;">&lt;table</span></a> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"This is a title"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/tr.html"><span style="color: #000000; font-weight: bold;">&lt;tr&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/td.html"><span style="color: #000000; font-weight: bold;">&lt;td&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">""</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tr&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/table&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>It can just be a div:</p>
<p>
<div class="igBar"><span id="lhtml-51"><a href="#" onclick="javascript:showPlainTxt('html-51'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-51">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"this is a div title"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">""</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>In our first example you see that I am using an image wrapped in A tag, this is the default setting where you don't need to do anything other then $('#mygallery').jqGalView(); (ok, it may be a good idea to style things).  Check out the Option tab to see a list of parameters that can be used to further customize your Web Album/Photo gallery and check out some more demos under, you guessed it, Demo.</p>
</p>
<h3>The Demo(s)</h3>
<p>The below implementation...</p>
<div class="igBar"><span id="ljavascript-52"><a href="#" onclick="javascript:showPlainTxt('javascript-52'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-52">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#example2"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalView</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modal:<span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title:<span style="color: #3366CC;">"This is a new title"</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; openTxt:<span style="color: #3366CC;">"Open me!!!!"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; backTxt:<span style="color: #3366CC;">"Go back to the thumbnails"</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; goFullSizeTxt:<span style="color: #3366CC;">"Bigger Image"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tnease:<span style="color: #3366CC;">"backinout"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>will produce below<br />
<script type="text/javascript">
	$(document).ready(function(){
		$("#example2").jqGalView({
			modal:true,
			title:"This is a new title",
			openTxt:"Open me!!!!",
			backTxt:"Go back to the thumbnails",
			goFullSizeTxt:"Bigger Image",
			tnease:"backinout"
		});
	});
</script></p>
<ul id="example2">
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s144/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s144/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/100_1712.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/s144/100_1712.JPG" alt="It... it smells like... old cheese in here..." width="144" height="108" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/100_1886.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/s144/100_1886.JPG" alt="Everyone looks good through a glass of beer!" width="144" height="108" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s144/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s144/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s144/DSC_0006.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s144/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s144/DSC_0030.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s144/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s144/DSC_0047.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s144/DSC_0032.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s144/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s144/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s144/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s144/DSC_0017.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s144/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s144/DSC_0018.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s144/DSC_0021.JPG" alt="It is out of focus; let me help." width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s144/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="144" height="96"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s144/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s144/DSC_0096.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s144/DSC_0010.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s144/DSC_0039.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s144/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="144" height="96"/></a></li>
<li><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s144/DSC_0042.JPG" width="144" height="96"/></li>
<li><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s144/DSC_0106.JPG" width="144" height="96"/></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s144/DSC_0218.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s144/DSC_0004.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s144/DSC_0009.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s144/DSC_0020.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s144/DSC_0012.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s144/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s144/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/DSC_0001.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyW_7tKn8I/AAAAAAAAAVc/opzOXldgJ0Y/s144/DSC_0001.JPG" alt="Yes, I do know what I am doing!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/DSC_0025.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyYPrtKn9I/AAAAAAAAAWE/Y1kITpSTFXI/s144/DSC_0025.JPG" alt="Hey, it is better then reversible diapers!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/100_1712.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYQ7tKn-I/AAAAAAAAAWM/PHN5lywzjbU/s144/100_1712.JPG" alt="It... it smells like... old cheese in here..." width="144" height="108" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/100_1886.JPG"><img src="http://lh6.google.com/sterling.benjamin/RuyYR7tKn_I/AAAAAAAAAWU/bJ-HZwkTyKg/s144/100_1886.JPG" alt="Everyone looks good through a glass of beer!" width="144" height="108" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/DSC_0004.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyZObtKoAI/AAAAAAAAAWc/dDMbJK0jSlw/s144/DSC_0004.JPG" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/DSC_0005.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyZa7tKoBI/AAAAAAAAAWo/dmnMNJS2nPI/s144/DSC_0005.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/DSC_0006.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyZnLtKoCI/AAAAAAAAAWw/1TD-_nNT8PA/s144/DSC_0006.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/DSC_0012.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyZ2rtKoDI/AAAAAAAAAW8/qo9vOy-0mcI/s144/DSC_0012.JPG" alt="Is he going to eat me?!" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/DSC_0030.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuyaB7tKoEI/AAAAAAAAAXE/Yt124tfI_WU/s144/DSC_0030.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/DSC_0055.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyajbtKoFI/AAAAAAAAAXQ/QfKtfA6yEwE/s144/DSC_0055.JPG" alt="It's like talking to a wall!!!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/DSC_0047.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyaurtKoGI/AAAAAAAAAXY/t_ASBQcH07k/s144/DSC_0047.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/DSC_0032.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruya87tKoHI/AAAAAAAAAXk/LJZOZR7RmSU/s144/DSC_0032.JPG" alt="" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/DSC_0033.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuybGbtKoII/AAAAAAAAAXs/dBiWzDZfWas/s144/DSC_0033.JPG" alt="This is my seductive look! It works on all the boys." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/DSC_0020.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuybSLtKoJI/AAAAAAAAAX4/btmxxtIcX5I/s144/DSC_0020.JPG" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/DSC_0021.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuybertKoKI/AAAAAAAAAYA/Tay8MWRdwrM/s144/DSC_0021.JPG" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/DSC_0017.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/Ruyd3LtKoLI/AAAAAAAAAYM/lOMruypZVd0/s144/DSC_0017.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/DSC_0024.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyghrtKoMI/AAAAAAAAAYs/KeOhIMfMrSc/s144/DSC_0024.JPG" alt="You won't like me when I'm angry!" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/DSC_0018.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuygrrtKoRI/AAAAAAAAAZY/KBrh0d_jECY/s144/DSC_0018.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/DSC_0021.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygtbtKoSI/AAAAAAAAAZg/99k8UFMs7zU/s144/DSC_0021.JPG" alt="It is out of focus; let me help." width="144" height="96"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/DSC_0007.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuygxbtKoUI/AAAAAAAAAZw/Htm20GnEPKs/s144/DSC_0007.JPG" alt="I always have to carry the conversation; they never say anything." width="144" height="96"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/DSC_0002.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruygy7tKoVI/AAAAAAAAAZ4/ShwLc51HYjQ/s144/DSC_0002.JPG" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/DSC_0096.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/RuyhzbtKocI/AAAAAAAAAa0/lcEfHJtN67c/s144/DSC_0096.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/DSC_0010.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg6rtKoaI/AAAAAAAAAak/LJmQ1uFC3Y4/s144/DSC_0010.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/DSC_0039.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuyiPrtKomI/AAAAAAAAAcM/o7St6jYPLEw/s144/DSC_0039.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/DSC_0126.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykW7tKo0I/AAAAAAAAAeA/Xuw9LFqcfQ4/s144/DSC_0126.JPG" alt="I SAID CLOSER!!!" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/DSC_0042.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykJLtKosI/AAAAAAAAAc8/_MFOC2xGTxA/s144/DSC_0042.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/DSC_0106.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/RuykTrtKoyI/AAAAAAAAAdw/0hLyf6vEA-U/s144/DSC_0106.JPG" alt="What way is this supposed to go?" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/DSC_0218.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiOLtKolI/AAAAAAAAAcE/pBnzT8a3VuI/s144/DSC_0218.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/DSC_0004.JPG?imgmax=800"><img src="http://lh5.google.com/sterling.benjamin/Ruyg0rtKoWI/AAAAAAAAAaA/R8Tjcm3rANw/s144/DSC_0004.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/DSC_0009.JPG?imgmax=800"><img src="http://lh4.google.com/sterling.benjamin/Ruyg2btKoXI/AAAAAAAAAaM/1M7u_xnwqak/s144/DSC_0009.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/DSC_0020.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/Ruyg87tKobI/AAAAAAAAAas/Q-T_gBY3qgQ/s144/DSC_0020.JPG" width="144" height="96"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/DSC_0012.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuyiMLtKokI/AAAAAAAAAb8/03GfNKZXdDM/s144/DSC_0012.JPG" width="144" height="96" border="0"/></a></li>
<li><a href="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/DSC_0005.JPG?imgmax=800"><img src="http://lh3.google.com/sterling.benjamin/RuykDLtKopI/AAAAAAAAAck/qiuJ2IIr8hk/s144/DSC_0005.JPG" alt="I think I may be getting the upper hand here..." width="144" height="96" border="0"/></a></li>
<li><a href="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/DSC_0007.JPG?imgmax=800"><img src="http://lh6.google.com/sterling.benjamin/RuykE7tKoqI/AAAAAAAAAcs/wJopPFQSGqc/s144/DSC_0007.JPG" alt="I'm being attacked and your taking pictures?" width="144" height="96" border="0"/></a></li>
</ul>
<h3>Downloads</h3>
<p>Download zip with demo and styles: <a href="http://bs-jquery-plugins.googlecode.com/files/jqGalView.2.1.zip" rel="nofollow">http://bs-jquery-plugins.googl.....ew.2.1.zip</a><br />
The jQuery core is available at: <a class="external" href="http://code.google.com/p/jqueryjs/downloads/list" target="_blank" rel="nofollow">http://code.google.com/p/jqueryjs/downloads/list</a>.<br />
The jQuery Easing Plugin v1.1.1 is available at: <a class="external" href="http://gsgd.co.uk/sandbox/jquery.easing.php" target="_blank" rel="nofollow">http://gsgd.co.uk/sandbox/jquery.easing.php</a>.<br />
The jQuery jqModal Plugin v2007.08.17 +r11 is available at: <a class="external" href="http://dev.iceburg.net/jquery/jqModal/" target="_blank" rel="nofollow">http://dev.iceburg.net/jquery/jqModal/</a>.</p>
<p><!--adsense#between_2--></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqgalview-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>jQuery: jqAmungUs (whos.amung.us widget)</title>
		<link>http://benjaminsterling.com/jquery-jqamungus-whosamungus-widget/</link>
		<comments>http://benjaminsterling.com/jquery-jqamungus-whosamungus-widget/#comments</comments>
		<pubDate>Sun, 16 Sep 2007 01:51:35 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/09/15/jquery-jqamungus-whosamungus-widget/</guid>
		<description><![CDATA[The jqAmungUs widget is a jQuery plugin that will aide as an alternative to the <img src="http://whos.amung.us/widget/1cbz6ztl" alt="visitor stats" border="0" height="15" /> icon and will give more detail to who is currently on your site and alternatively whose been on your site and where they came from (as far as country is concerned).]]></description>
			<content:encoded><![CDATA[<h1>Over View</h1>
<p>The jqAmungUs widget is a jQuery plugin that will aide as an alternative to the <img src="http://whos.amung.us/widget/1cbz6ztl" alt="visitor stats" border="0" height="15" /> icon and will give more detail to who is currently on your site and alternatively whose been on your site and where they came from (as far as country is concerned).<br />
<span id="more-12"></span><br />
The set up is pretty simple:</p>
<p>Add some code to the head of your web page:</p>
<div class="igBar"><span id="ljavascript-53"><a href="#" onclick="javascript:showPlainTxt('javascript-53'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-53">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"../common/js/jquery-1.2.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"common/js/jqAmungUs.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#whos"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqAmungUs</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;siteKey:<span style="color: #3366CC;">"1cbz6ztl"</span> &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
And create the div you want to the data to load to:</p>
<div class="igBar"><span id="lhtml-54"><a href="#" onclick="javascript:showPlainTxt('html-54'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-54">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"whos"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And you will get:<br />
<script src="/experiments/common/js/jquery-1.2.js" type="text/javascript"></script><script src="/experiments/jqAmungUs/common/js/jqAmungUs.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
$("#whos").jqAmungUs({siteKey:"1cbz6ztl",pathToServerSide:"/experiments/jqAmungUs/common/js/"});
});
</script></p>
<div id="whos"></div>
<p>Or, you can add the <em>type</em> param and set it to <em>map</em> and get:</p>
<p><script src="/experiments/common/js/jquery-1.2.js" type="text/javascript"></script><script src="/experiments/jqAmungUs/common/js/jqAmungUs.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
$("#map").jqAmungUs({siteKey:"1cbz6ztl",pathToServerSide:"/experiments/jqAmungUs/common/js/",type:"map"});
});
</script></p>
<div id="map"></div>
<h1>Download</h1>
<p>The jqAmungUs Plugin is available at: <a class="external" href="http://www.benjaminsterling.com/experiments/jqAmungUs/common/js/jqAmungUs.js" target="_blank">http://www.benjaminsterling.co.....AmungUs.js</a>.</p>
<p>The jqAmungUs server side is available at:<a class="external" href="http://www.benjaminsterling.com/experiments/jqAmungUs/common/js/jqAmungUs.php_.txt" target="_blank">PHP</a> and <a class="external" href="http://www.benjaminsterling.com/experiments/jqAmungUs/common/js/jqAmungUs.asp.txt" target="_blank">ASP</a>.</p>
<p>The jQuery core is available at: <a class="external" href="http://code.google.com/p/jqueryjs/downloads/list" target="_blank">http://code.google.com/p/jqueryjs/downloads/list</a>.</p>
<h1>Support</h1>
<p>Support for the jqGalView Plugin is available through the <a class="external" href="http://groups.google.com/group/jquery-en/">jQuery Mailing List</a>and the comment section below.</p>
<p>Please post a link to the site you are using this plugin for and a brief desciption so I can see what others are doing with the plugin.</p>
<p>This documentation is maintained by Benjamin Sterling.  Post comments or questions below.</p>
<h1>Code Notes</h1>
<div class="igBar"><span id="ljavascript-55"><a href="#" onclick="javascript:showPlainTxt('javascript-55'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-55">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * jQuery AmungUs Plugin</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * Examples and documentation at: <a href='http://benjaminsterling.com/2007/09/15/jquery-jqamungus-whosamungus-widget/' rel='nofollow'>http://benjaminsterling.com/20.....us-widget/</a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @author: Benjamin Sterling</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @version: 1.0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @requires jQuery v1.1.2 or later</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; 09/15/2007:</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; Initial Release</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @name jqAmungUs</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @example $('#amungus').jqAmungUs(siteKey:&quot;adfadsfasdf&quot;);</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param&nbsp; &nbsp;String siteKey</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; this is the site key you get from <a href='http://whos.amung.us' rel='nofollow'>http://whos.amung.us</a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; and must be set</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param&nbsp; &nbsp;String type</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; two options here, either whos or map, whos will give</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; you who is currently on your site and map with give </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; you the most recents visits and where they are from</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param&nbsp; &nbsp;String pathToServerSide</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; The path to the server side sript you are using to</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; pull in the info.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param&nbsp; &nbsp;Int interval</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; How often should the call be made?</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param&nbsp; &nbsp;String lang</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; This will be the extentsion of the serverside script</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; whether it is asp, php, asp.net and so on, as long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *&nbsp; &nbsp; &nbsp; &nbsp; as the actual page name is jqAmungUs.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> *</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * @param Function callback</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * &nbsp;&nbsp;&nbsp;&nbsp;A callback function for after the data is called in.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> */</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqamungus-whosamungus-widget/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery: jqAlbumParser Plugin, parses out Flickr, Picasa clientside</title>
		<link>http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/</link>
		<comments>http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 03:46:17 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[photo gallery]]></category>
		<category><![CDATA[picasaweb]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/09/13/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/</guid>
		<description><![CDATA[The jQuery jqAlbumParser Plugin takes a link linking to your Flickr or Picasa photo album and parses it into your current layout as is or hook in another plugin like the jqGalView Plugin, the jqGalScroll Plugin, the jqGalViewII Plugin or the jqShuffle Plugin to create your photo gallery on the fly and with very little [...]]]></description>
			<content:encoded><![CDATA[<p>The jQuery jqAlbumParser Plugin takes a link linking to your Flickr or Picasa photo album and parses it into your current layout as is or hook in another plugin like <a href="http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery/">the jqGalView Plugin</a>, <a href="http://benjaminsterling.com/2007/09/09/jquery-jqgalscroll-photo-gallery/">the jqGalScroll Plugin</a>, <a href="http://benjaminsterling.com/2007/10/02/jquery-jqgalviewii-photo-gallery/">the jqGalViewII Plugin</a> or <a href="http://benjaminsterling.com/2007/08/20/jquery-jqshuffle/">the jqShuffle Plugin</a> to create your photo gallery on the fly and with very little coding on your part.</p>
<p>Why jqAlbumParser?  Well, after building a few photo gallery plugins and plans for different variations of flash-like galleries (I am on a convert flash apps to jQuery ran apps kick), I found myself wanting to use other peoples photos, ie. friends and families, but did not want to download them.  So I wanted to be able to bring in Picasa and Flickr photos, but sadly their JSON formats are different, I needed a way to pull them both in on the same page and be able to use them with the same functions and so I figured I'd bring their JSON and parse them to my own object and poof, jqAlbumParser!  Anyway, I am rambling, check out below and if you have any question (since I know my comment and explanations suck) post a comment and I will get back to asap.  Also, if you use this plugin, drop me your url and a brief description of your site and I will be sure to post it to my Plugin Repository page.</p>
<h3>The Basic Demo</h3>
<div class="noNakedEye">
<style media="all">
	@import url("/articles/jqGalViewII/common/css/jqGalViewII.css");
</style>
<p><script type="text/javascript" src="/articles/common/js/jquery-1.2.1.pack.js"></script><br />
<script type="text/javascript" src="/articles/jqAlbumParser/common/js/jqAlbumParser.js"></script><br />
<script type="text/javascript" src="/articles/jqGalViewII/common/js/jqGalViewII.js"></script><br />
<script type="text/javascript">
$(document).ready(function(){
	$(".jqAlbumParser").jqAlbumParser({
		pluginExec : function(){
			$(this).jqGalViewII();
		}
	});
});
</script>
</div>
<p><a href="http://picasaweb.google.com/data/feed/base/user/sterling.benjamin/albumid/5065213814603581825?kind=photo&#038;alt=rss&#038;hl=en_US" class="jqAlbumParser wa:picasa" rel="nofollow">Picasa</a> | <a href="http://api.flickr.com/services/feeds/photos_public.gne?id=11983862@N00&#038;lang=en-us&#038;format=rss_200" class="jqAlbumParser wa:flickr" rel="nofollow">Flickr</a></p>
<h3>The Simple Code</h3>
<blockquote>
<h5>The xhtml</h5>
<div class="igBar"><span id="lhtml-61"><a href="#" onclick="javascript:showPlainTxt('html-61'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-61">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://picasaweb.google.com/data/feed/base/user/sterling.benjamin/albumid/5065213814603581825?kind=photo&amp;amp;alt=rss&amp;amp;hl=en_US"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"jqAlbumParser</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">wa:picasa"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Picasa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">|</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://api.flickr.com/services/feeds/photos_public.gne?ids=11983862@N00"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"jqAlbumParser</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">wa:flickr"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Flickr<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h5>The head stuff</h5>
<div class="igBar"><span id="lcss-62"><a href="#" onclick="javascript:showPlainTxt('css-62'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-62">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style media=<span style="color: #ff0000;">"all"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #a1a100;">@import url(&quot;/articles/jqGalViewII/common/css/jqGalViewII.css&quot;);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/style&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="ljavascript-63"><a href="#" onclick="javascript:showPlainTxt('javascript-63'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-63">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/articles/common/js/jquery-1.2.1.pack.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/articles/jqAlbumParser/common/js/jqAlbumParser.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"/articles/jqGalViewII/common/js/jqGalViewII.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".jqAlbumParser"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqAlbumParser</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pluginExec : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalViewII</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p></blockquote>
<h3>The Small Print</h3>
<p>So you see the set up is somewhat simple; in the example above I used the jqAlbumParser in conjuction with the jqGalViewII plugin so you can see how I envision a person would use this plugin.  You will be able to use the jqAlbumParser with any of my plugin, and any photogallery plugin that works with the same structure that this plugin can put out.</p>
<p>To get the url for your Picasa album, go to your account and then the album you want; go to the bottom right corner and you will find a RSS feed link and either right click and click copy link location or click that link and copy the url from there.</p>
<p>To get the url for you Flickr album, go to the photo section of your account and go to the bottom left and copy the RSS link.</p>
<p>You will also notice that in the demo links that there is a "wa:picasa" and a "wa:flickr," if you are not going to add separate jqAlbumParser calls for different services, ie. Picasa and Flickr, you will need to add one of those to the correct link.</p>
<p>Now you are probably asking yourself, "How do I get this to execute when the page loads?" or "I tried 'load' as the "triggerEvent" but it does not work, how come?"  The answer, do:</p>
<blockquote>
<div class="igBar"><span id="ljavascript-64"><a href="#" onclick="javascript:showPlainTxt('javascript-64'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-64">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'.jqAlbumParser'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqAlbumParser</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pluginExec : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalViewII</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p></blockquote>
<p>or</p>
<blockquote>
<div class="igBar"><span id="ljavascript-65"><a href="#" onclick="javascript:showPlainTxt('javascript-65'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-65">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">".jqAlbumParser"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqAlbumParser</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pluginExec : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalViewII</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">trigger</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"click"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p></blockquote>
<h3>The download</h3>
<p><a href="http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js" target="_blank">http://benjaminsterling.com/ar.....mParser.js</a></p>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>jQuery: jqGalScroll v2.1 (Photo Gallery)</title>
		<link>http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/</link>
		<comments>http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 03:36:16 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Flash Alternatives]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[jqgalscroll]]></category>
		<category><![CDATA[photo gallery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/09/09/jquery-jqgalscroll-photo-gallery/</guid>
		<description><![CDATA[The jQuery jsGalScroll Plugin allows you to take a grouping of images and turn them into an scrolling photo gallery with pagination.]]></description>
			<content:encoded><![CDATA[<p>jQuery Gallery Scroller (jqGalScroll) takes list of images and creates a smooth scrolling photo gallery scrolling vertically, horizontally, or diagonally.  The plugin will also create pagination to allow you to flow through your photos.</p>
<h4>The Head</h4>
<div class="igBar"><span id="ljavascript-66"><a href="#" onclick="javascript:showPlainTxt('javascript-66'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-66">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"jquery.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span> src=<span style="color: #3366CC;">"jqGalScroll.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#demoOne"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">jqGalScroll</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcss-67"><a href="#" onclick="javascript:showPlainTxt('css-67'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-67">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #a1a100;">@import url(&quot;common/css/jqGalScroll.css&quot;);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/style&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h4>The Body</h4>
<div class="igBar"><span id="lhtml-68"><a href="#" onclick="javascript:showPlainTxt('html-68'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-68">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"demoOne"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2139/2038186348_58925c20ca.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2194/2037390693_8acc544048.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2156/2037392621_c64ae1ca81.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2409/2037390277_1097dff9e5.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2403/2134348146_fd6a7d0e74.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2217/2134343276_2fd803b40e.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://farm3.static.flickr.com/2032/2133564381_4a1f66bfbb.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h4>The Outcome</h4>
<ul id="demoOne">
<li><img src="http://farm3.static.flickr.com/2139/2038186348_58925c20ca.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2194/2037390693_8acc544048.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2156/2037392621_c64ae1ca81.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2409/2037390277_1097dff9e5.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2403/2134348146_fd6a7d0e74.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2217/2134343276_2fd803b40e.jpg" border="0"/></li>
<li><img src="http://farm3.static.flickr.com/2032/2133564381_4a1f66bfbb.jpg" border="0"/></li>
</ul>
<h3>Options</h3>
<p>Below are a list of options you can pass to the jqGalScroll plugin.</p>
<div class="igBar"><span id="ljavascript-69"><a href="#" onclick="javascript:showPlainTxt('javascript-69'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-69">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ease: <span style="color: #003366; font-weight: bold;">null</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; speed:<span style="color: #CC0000;color:#800000;">0</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; height: <span style="color: #CC0000;color:#800000;">500</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; width: <span style="color: #CC0000;color:#800000;">500</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; titleOpacity : .<span style="color: #CC0000;color:#800000;">60</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; direction : <span style="color: #3366CC;">'horizontal'</span> <span style="color: #009900; font-style: italic;">// vertical horizontal diagonal </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Styling</h3>
<p>I am in no way a great designer, so the example is very bare, but the follow urls are sites that done a nice job with the plugin:</p>
<ul>
<li><a href="http://www.ryanbrenizer.com/wedding_portrait" rel="nofollow">http://www.ryanbrenizer.com/wedding_portrait</a></li>
</ul>
<h3>Thanks</h3>
<p>Koes put a fire under my butt to improve this plugin and when I took too long he took what I had and added the horizontal scroll and in turn I ripped it from his hands and made it better :) <a href="http://www.koesbong.com/">http://www.koesbong.com/</a></p>
<h3>Download</h3>
<p>The jqGalScroll v2.1 Plugin is available at: <a class="external" href="http://bs-jquery-plugins.googlecode.com/files/jqGalScroll.2.1.zip" target="_blank" rel="nofollow">http://bs-jquery-plugins.googl.....ll.2.1.zip</a>.<br />
The jQuery core is available at: <a class="external" href="http://code.google.com/p/jqueryjs/downloads/list" target="_blank">http://code.google.com/p/jqueryjs/downloads/list</a>.<br />
The jQuery Easing Plugin v1.1.1 is available at: <a class="external" href="http://gsgd.co.uk/sandbox/jquery.easing.php" target="_blank">http://gsgd.co.uk/sandbox/jquery.easing.php</a>.</p>
<p><script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script><br />
<script type="text/javascript" src="http://bs-jquery-plugins.googlecode.com/svn/trunk/jqGalScroll/common/js/jqgalscroll.js"></script><br />
<script type="text/javascript">
$(document).ready(function(){
	$("#demoOne").jqGalScroll({height:500,width:500});
});
</script></p>
<style type="text/css" media="screen">
.jqGSContainer{position:relative;width:502px;clear:both;padding-bottom:10px;}
.jqGSContainer .jqGSImgContainer{}
.jqGSContainer .jqGSImgContainer ul{padding:0;margin:0;position:relative;list-style:none;}
.jqGSContainer .jqGSImgContainer ul li{padding:0;margin:0;position:relative;margin-top:0;margin-bottom:0px;float:left;}
.jqGSContainer .jqGSImgContainer ul li .jqGSLoader{width:100%;height:100%;position:absolute;}
.jqGSContainer .jqGSImgContainer ul li img{}
.jqGSContainer .jqGSImgContainer ul li .jqGSTitle{background:#000;position:absolute;right:0px;top:0px; padding:3px;color:#fff;width:300px}</p>
<p>.jqGSContainer .jqGSPagination{position:relative;width:100%;height:30px;top:5px;padding: 5px 0;}
.jqGSContainer .jqGSPagination ul{padding:0;margin:0;list-style:none;position:relative;float:right;}
.jqGSContainer .jqGSPagination ul li{padding:0;margin-right:5px;float:left;padding-right:1px;text-align:center;padding-bottom:1px;}
.jqGSContainer .jqGSPagination ul li a{padding:2px 0px;background:#000;border:1px solid #fff; color: #fff;text-decoration:none;display:block;width:20px;font:10px Verdana, Arial, Helvetica, sans-serif;}
.jqGSContainer .jqGSPagination ul li a.selected{background:#fff;color:#f03;border: 1px solid #eaeaea;}
.jqGSContainer .jqGSPagination ul li a:hover{background:#fff;color:#000;border:1px solid #fff;}</p>
<p>.jqGSImgContainer{border:1px solid #000;}
</style>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/feed/</wfw:commentRss>
		<slash:comments>137</slash:comments>
		</item>
		<item>
		<title>jQuery: jqShuffle</title>
		<link>http://benjaminsterling.com/jquery-jqshuffle/</link>
		<comments>http://benjaminsterling.com/jquery-jqshuffle/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 21:04:33 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Flash Alternatives]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Plugin]]></category>
		<category><![CDATA[photo gallery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/08/20/jquery-jqshuffle/</guid>
		<description><![CDATA[The jQuery jqShuffle Plugin allows you to take a list/group of photos/paragraphs and shuffle through them. When set, it provides a flash-like photo gallery effect.
The plugin is still in development as far as extras go. Base functionality will take your list and produce a shuffle effect similiar to the way you would shuffle a stack of photos, taking the top most photo, moving it to the left and then repositioning it to the bottom of the stack.]]></description>
			<content:encoded><![CDATA[<h3>Overview</h3>
<p>The jQuery jqShuffle Plugin allows you to take a list/group of  photos/paragraphs and shuffle through them. When set, it provides a  flash-like photo gallery effect.</p>
<p>The plugin is still in development as far as extras go.  Base functionality will take your list and produce a shuffle effect similiar to the way you would shuffle a stack of photos, taking the top most photo, moving it to the left and then repositioning it to the bottom of the stack.</p>
<p><span id="more-5"></span></p>
<div id="main">
<ul id="nav" class="anchors">
<li><a href="#getting-started">Getting Started</a></li>
<li><a href="#api">API</a></li>
<li><a href="#code-samples">Code Samples</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="#download">Download &amp; Support</a></li>
</ul>
<div id="getting-started" class="tabContent">
<h1>Quick Start Guide</h1>
<p>1.  Add a list of images</p>
<div class="igBar"><span id="lhtml-70"><a href="#" onclick="javascript:showPlainTxt('html-70'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-70">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"imageBox"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/clippy3.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/happy.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/mycup.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/clippy3.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/happy.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/experiments/jqShuffle/common/pix/mycup.jpg"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>2. Include jQuery and jqShuffle in the head of your web page</p>
<pre><code class="mix">&lt;script type=&quot;text/javascript&quot;&gt;
		$(document).ready(function(){
				$('.imageBox').jqShuffle();
		});
&lt;/script&gt;</code></pre>
<p>That's it! It will produce the following effect:</p>
<p>
<script src="http://bs-jquery-plugins.googlecode.com/files/jqshuffle.1.0.js" type="text/javascript"></script><br />
<script type="text/javascript"> $(document).ready(function(){jQuery(".imageBox").jqShuffle();});</script></p>
<ul class="imageBox">
<li><span><img src="/experiments/jqShuffle/common/pix/clippy3.jpg"/></span></li>
<li><span><img src="/experiments/jqShuffle/common/pix/happy.jpg"/></span></li>
<li><span><img src="/experiments/jqShuffle/common/pix/mycup.jpg"/></span></li>
<li><span><img src="/experiments/jqShuffle/common/pix/clippy3.jpg"/></span></li>
<li><span><img src="/experiments/jqShuffle/common/pix/happy.jpg"/></span></li>
<li><span><img src="/experiments/jqShuffle/common/pix/mycup.jpg"/></span></li>
</ul>
</p></div>
<div id="api" class="tabContent">
<h1>jqShuffle Plugin API</h1>
<p>    The jqShuffle Plugin API provides several methods that will allow you to add more functionality to the shuffle.</p>
<dl>
<dt><code class="method">$.fn.jqShuffle.shuffleLite</code></dt>
<dd>This is the default method/fx</dd>
</dl></div>
<div id="code-samples" class="tabContent">
<h1>Code Samples</h1>
<p>More examples to come</p>
</p></div>
<div id="faq" class="tabContent">
<h1>Frequently Asked Questions</h1>
<dl>
<dt>What versions of jQuery is the jqShuffle Plugin compatible with?</dt>
<dd>The jqShuffle Plugin is compatible with jQuery v1.1.3.1 and later.</dd>
<dt>Does the jqShuffle Plugin have any dependencies on other plugins?</dt>
<dd>Not really, only if you want to utilize the easing effect. </dd>
</dl></div>
<div id="download" class="tabContent">
<h1>Download</h1>
<p>    The jqShuffle Plugin is available at: <a class="external" href="/wp-content/jqplugins/jqshuffle.js">jqshuffle.js</a> or <a class="external" href="/wp-content/jqplugins/jqshuffle.compress.js">jqshuffle.compress.js</a>.</p>
<p />
<h1>Support</h1>
<p>    Support for the jqShuffle Plugin is available through the <a class="external" href="http://groups.google.com/group/jquery-en/">jQuery Mailing List</a>.<br />
    This is a very active list to which many jQuery developers and users subscribe.</p>
<p />
</div>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqshuffle/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery: jqShuffle (lite)</title>
		<link>http://benjaminsterling.com/jquery-jqshuffle-lite/</link>
		<comments>http://benjaminsterling.com/jquery-jqshuffle-lite/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 02:27:50 +0000</pubDate>
		<dc:creator>Benjamin Sterling</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Flash Alternatives]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://benjaminsterling.com/2007/08/10/jquery-jqshuffle-lite/</guid>
		<description><![CDATA[This version no longer supported Changes have been made and all new updates will be posted at http://benjaminsterling.com/20.....jqshuffle/]]></description>
			<content:encoded><![CDATA[<blockquote><p>
This version no longer supported</p>
<p>Changes have been made and all new updates will be posted at <a href="http://benjaminsterling.com/2007/08/20/jquery-jqshuffle/">http://benjaminsterling.com/20.....jqshuffle/</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://benjaminsterling.com/jquery-jqshuffle-lite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

