<?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>Transcendent Design - freelance web developer and web designer Richard Lee - Marietta Georgia - Roswell Georgia - Metro Atlanta &#187; Lighter Box</title>
	<atom:link href="http://www.tdesignonline.com/tag/lighter-box/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tdesignonline.com</link>
	<description>The Portfolio Site of Richard Lee</description>
	<lastBuildDate>Thu, 08 Jul 2010 03:47:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Lighter Box 2</title>
		<link>http://www.tdesignonline.com/lighter-box-2</link>
		<comments>http://www.tdesignonline.com/lighter-box-2#comments</comments>
		<pubDate>Sun, 14 Dec 2008 22:19:43 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Lighter Box]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[light box]]></category>
		<category><![CDATA[Lighter Box 2]]></category>
		<category><![CDATA[lighterbox]]></category>
		<category><![CDATA[LighterBox2]]></category>
		<category><![CDATA[progressive enhancement]]></category>

		<guid isPermaLink="false">http://www.tdesignonline.com/?p=707</guid>
		<description><![CDATA[Functionality: + Fading Transition + Screen Navigation (Next, Previous, Close, or the Actual Image) + Key Board Navigation (Left &#38; Right Arrow, Space, Esc.) + Loop Through Images (after last image goes back to first image vice versa) + Insert Onscreen text descriptions below the image via link title attribute text + Insert title of [...]]]></description>
			<content:encoded><![CDATA[<img style="padding-left:20px;padding-right:20px;" src="lb.png" alt="lighterbox" align="left" />
<ul class="nexttolist">
	<li><strong>Functionality:</strong></li>
	<li>+ Fading Transition</li>
	<li>+ Screen Navigation (Next, Previous, Close, or the Actual Image)</li>
	<li>+ Key Board Navigation (Left &amp; Right Arrow, Space, Esc.)</li>
	<li>+ Loop Through Images (after last image goes back to first image vice versa)</li>
	<li>+ Insert Onscreen text descriptions below the image via link title attribute text</li>
	<li>+ Insert title of the image via thumbnail alt attribute.</li>
	<li>+ Customizable</li>
</ul>
<div class="clear"></div>
<p>I started searching for a light weight light box script that did not rely on a script library or frame work in order to help it function.  I was not able to find one at the time that did not rely on a library&#8230;  So I made my own.  I have an economy host that does not support gzip so any large scripts I use my users will have to download them which can cause multiple seconds of page display delay.</p>

 

<p>The idea was obviously derived from light box2 and it works essentially the same way in all modern browsers ie6, ie7, ie8, safari, chrome, and firefox.  When JavaScript is off it degrades gracefully in that the photo is still accessible the experience just isn&#8217;t enhanced.<br /><br />

<strong>The Light weight File Sizes</strong><br />

8 kb &#8211; lighterbox.js<br />
3.2kb &#8211; load.gif<br />
0.9kb &#8211; lighterbox.css<br />
0.3kb &#8211; overlay.png<br />
0.2kb &#8211; prev.gif<br />
0.2kb &#8211; next.gif<br />
0.2kb &#8211; close.gif<br /><br />

It&#8217;s around <strong>14kb &#8211; total!</strong></p>

<p>The orignal &#8220;light box 2&#8243; with scripts alone is 190kb&#8230;ouch.  Remember your users are downloading multiples scripts on your server and every kb here and there adds up and people start leaving your site/content because your site is the one with the loading bar always half full. lol one script isn&#8217;t that big a deal but several scripts add up.  Then there&#8217;s g-zip that&#8217;s another story.</p><br/>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4662378">
 <input type="image" src="http://www.tdesignonline.com/donate.png" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

<br/>
<p><strong>Here is an example of How Lighter Box2 works.</strong></p>
<p>below you will see the script along with several examples of how you can pick and choose to include or not include titles and descriptions.</p>

<p><a title="My Wife and I had our 4th anniversary on December 13, We went out to an Italian restaurant with really good food, 'Provinos'. (The one in Roswell on Mansell) " rel="lighterbox" href="images/us.jpg"><img src="images/ust.jpg" border="0" /></a>

<a title="My wife had spaghetti" rel="lighterbox" href="images/ann1.jpg"><img src="images/ann1t.jpg" border="0" alt="Spaghetti" /></a>

<a  rel="lighterbox" href="images/ann3.jpg"><img src="images/ann3t.jpg" border="0"  /></a><br />

<a style="text-decoration:underline;" title="Then we had chocolate cake mmm..." rel="lighterbox" href="images/ann2.jpg">Text works too&#8230;</a></p>

<script src="http://www.tdesignonline.com/lighterbox2/lighterbox2.js" type="text/javascript"></script>
 <hr />
<p><strong>1.</strong> The first thing you will do is <a style="text-decoration:underline;color:#F9AB43;" href="http://www.tdesignonline.com/lighterbox2.zip">download LighterBox2</a> and <strong>take the folder</strong> you extract from the zip file <strong>and drop it in the root directory</strong> where the files your users will be browsing are (where your index.html file is or index.php whatever you are using).</p>
 <hr />
<p><strong>2.</strong> Next you will <strong>insert a link to the Style Sheet 
right before the closing head tag</strong> like this</p>


<p class="code"><code><br />

 &lt;link rel=&#34;stylesheet&#34;
 type=&#34;text/css&#34;
 href=&#34;lighterbox2/lighterbox2.css&#34;
 /&gt;


<span style="color:#555">&lt;/head&gt;</span><br /><br />
 </code></p>


 
 <hr />
<p><strong>3.</strong> then you will <strong>insert a link to the script right before the closing body tag</strong> like this. (It doesn&#8217;t have to be exactly before the body tag just make sure it is below the content where you are using the script or else it will not work.)</p>

<p class="code"><code><br />

 &lt;script type=&#34;text/javascript&#34;
 src=&#34;lighterbox2/lighterbox2.js&#34;
&gt;&lt;/script&gt;


<span style="color:#555">&lt;/body&gt;</span><br /><br />
 </code></p>

 
 <hr />
<p><strong>4.</strong> Lastly you will <strong>insert the &#8220;rel&#8221; attribute with a value of &#8220;lighterbox&#8221; on the anchor tags that you want to use lighterbox2 on</strong> and <strong>fill the &#8220;title&#8221; attribute with your descriptions</strong> that are linking to your larger image files like this, and for your thumbnails <strong>use the alt attribute of the thumbnail to store the title of the image.</strong></p>

<p class="code"><code><br />

 &lt;a href=&#34;images/bigPicture.jpg&#34;
 title=&#34;Short description here&#34;
 rel=&#34;lighterbox&#34;
&gt;<br /><br />


&lt;img src=&#34;images/thumbnailPicture.jpg&#34;
 border=&#34;0&#34;
 alt=&#34;us&#34;
/&gt;<br /><br />

&lt;/a&gt;<br /><br />
 </code></p>

 
 <hr />
<p>YAY&#8230;Test it out!<br /><br />
If you find and bugs that I haven&#8217;t caught please let me know.<br /><br />

Blessings,<br />
Richard Lee</p>

 
 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4662378">
 <input type="image" src="http://www.tdesignonline.com/donate.png" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<div class="clear"></div><!--end of clear div-->
<script type="text/javascript"><!--
if(IE6){document.getElementById('post-707').style.marginLeft="10px";}
// --></script>

<script src="http://www.tdesignonline.com/clickheat/js/clickheat.js" type="text/javascript"></script><script type="text/javascript"><!--
clickHeatSite = '';clickHeatGroup = 'lighterbox2';clickHeatServer = 'http://www.tdesignonline.com/clickheat/click.php';initClickHeat();
// --></script>]]></content:encoded>
			<wfw:commentRss>http://www.tdesignonline.com/lighter-box-2/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lighter Box</title>
		<link>http://www.tdesignonline.com/lighter-box</link>
		<comments>http://www.tdesignonline.com/lighter-box#comments</comments>
		<pubDate>Tue, 09 Dec 2008 23:41:49 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Lighter Box]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[light box]]></category>
		<category><![CDATA[lighterbox]]></category>
		<category><![CDATA[lighterbox script]]></category>
		<category><![CDATA[progressive enhancement]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.tdesignonline.com/?p=618</guid>
		<description><![CDATA[You can also download LIGHTER BOX 2! NEW Both onscreen and keyboard navigation for galleries. Descriptions (AS MUCH AS YOU WANT) that will be displayed to the viewer&#8230; check it out. I started searching for a light weight light box script that did not rely on a script library or frame work in order to [...]]]></description>
			<content:encoded><![CDATA[<img style="padding-left:20px;" src="lb1.png" alt="lighterbox" align="left" />
<p style="width: 220px; float: right;">You can also download<br />


<a style="text-decoration:underline;color:#F9AB43;font-size:26px;" href="http://www.tdesignonline.com/lighter-box-2">LIGHTER BOX 2!</a><br />

NEW Both onscreen and keyboard navigation for galleries. Descriptions (AS MUCH AS YOU WANT) that will be displayed to the viewer&#8230; <a style="text-decoration:underline;color:#F9AB43;" href="http://www.tdesignonline.com/lighter-box-2">check it out.</a></p>
<div class="clear"></div>
<p>I started searching for a light weight light box script that did not rely on a script library or frame work in order to help it function.  I was not able to find one at the time that did not rely on a library&#8230;  So I made my own.  I have an economy host that does not support gzip so any large scripts I use my users will have to download them which can cause multiple seconds of page display delay.</p>

<p>The idea was obviously derived from light box and it works essentially the same way in all modern browsers  ie6, ie7, ie8, safari, chrome, and firefox.. When JavaScript is off it degrades gracefully in that the photo is still accessible the experience just isn&#8217;t enhanced.</p>

<p><strong>The Light weight File Sizes</strong><br />

4.4kb &#8211; lighterbox.js<br />
2.4kb &#8211; loader3.gif<br />
0.5kb &#8211; lighterbox.css<br />
0.1kb &#8211; closebutton2.gif<br />
0.3kb &#8211; overlay.png<br />
<strong>7.7kb &#8211; total!</strong></p>

<p>The orignal &#8220;ligh box&#8221; with script and all its friends are 16kb.  So what?  You wont say so what when your users are downloading multiples scripts on your server and every kb here and there adds up and people start leaving your site/content because your site is the one with the loading bar always half full. lol one script isn&#8217;t that big a deal but several scripts add up.  Then there&#8217;s g-zip that&#8217;s another story. (with gzip compression on lighter box is like 1.093kb)</p>

<p><strong>Here is an example of How Lighter Box works.</strong><br />

<a rel="lighterbox" href="images/us.jpg"><img src="images/ust.jpg" border="0" alt="us" /></a>

<a style="text-decoration:underline;" rel="lighterbox" href="images/us.jpg">Text works too&#8230;</a></p>

<script src="http://www.tdesignonline.com/Script/lighterbox.js" type="text/javascript"></script>
 <hr />
<p><strong>1.</strong> The first thing you will do is <a style="text-decoration:underline;color:#F9AB43;" href="http://www.tdesignonline.com/lighterbox.zip">download the files</a> and take the files from the folder you extract and drop them in the root directory. (not the folder but the files in the folder)</p>
 <hr />
<p><strong>2.</strong> then you will insert a link to the script right before the closing body tag like this. (It doesn&#8217;t have to be exactly before the body tag just make sure it is below the content where you are using the script or else it will not work.)</p>

<p class="code"><code><br />

 &lt;script type=&#34;text/javascript&#34; src=&#34;lighterbox.js&#34; &gt;&lt;/script&gt;<br /><br />
 &lt;/body&gt;<br /><br /> </code></p>

 
 <hr />
<p><strong>3.</strong> Next you will insert a link to the Style Sheet 
right before the head tag like this</p>

<p class="code"><code><br />

 &lt;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;lighterbox.css&#34; /&gt;<br /><br />
 &lt;/head&gt;<br /><br /></code></p>

 
 <hr />
<p><strong>4.</strong> Lastly you will insert the &#8220;rel&#8221; attribute with a value of &#8220;lighterbox&#8221; on the anchor tags that are linking to your larger image files.</p>

<p class="code"><code><br />

 &lt;a href=&#34;images/us.jpg&#34; rel=&#34;lighterbox&#34; &gt;<br /><br />
 &lt;img src=&#34;images/ust.jpg&#34; border=&#34;0&#34; alt=&#34;us&#34; /&gt;<br /><br />
 &lt;/a&gt;<br /><br /></code></p>

 
 <hr />
<p>YAY&#8230;Test it out!<br /><br />
If you find and bugs that I haven&#8217;t caught let me know please let me know.<br /><br />
If for some reason you can&#8217;t get it working, download <a style="text-decoration:underline;color:#F9AB43;" href="http://www.tdesignonline.com/lighterboxhelp.zip">these files</a> and there is a test page in there and you can see how it is set up.<br /><br />




Blessings,<br />
 Richard Lee</p>

 
 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="position:relative; top:-40px;">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="4662378">
 <input type="image" src="http://www.tdesignonline.com/donate.png" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<div class="clear"></div><!--end of clear div-->
<script type="text/javascript"><!--
if(IE6){document.getElementById('post-618').style.marginLeft="10px";}
// --></script>

<script src="http://www.tdesignonline.com/clickheat/js/clickheat.js" type="text/javascript"></script><script type="text/javascript"><!--
clickHeatSite = '';clickHeatGroup = 'lighterbox';clickHeatServer = 'http://www.tdesignonline.com/clickheat/click.php';initClickHeat();
// --></script>]]></content:encoded>
			<wfw:commentRss>http://www.tdesignonline.com/lighter-box/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
