<?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; lighterbox script</title>
	<atom:link href="http://www.tdesignonline.com/tag/lighterbox-script/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</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>
