<?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; scripts</title>
	<atom:link href="http://www.tdesignonline.com/category/scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tdesignonline.com</link>
	<description>The Portfolio Site of Richard Lee</description>
	<lastBuildDate>Mon, 19 Dec 2011 23:36:49 +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>Optimizaion, jsperf, and thoughts &#8211; JS in the nude</title>
		<link>http://www.tdesignonline.com/optimizaion-jsperf-and-thoughts-js-in-the-nude</link>
		<comments>http://www.tdesignonline.com/optimizaion-jsperf-and-thoughts-js-in-the-nude#comments</comments>
		<pubDate>Fri, 02 Sep 2011 20:35:42 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.tdesignonline.com/?p=1471</guid>
		<description><![CDATA[I ran into jsperf and it has totally blown my mind seeing how fast things run. I don&#8217;t use chrome and I love it after seeing how fast it was. I ran a test of some simple replacing of text using jquery. my initial test was to see if pre-defining your jquery elements was quicker [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into jsperf and it has totally blown my mind seeing how fast things run.  I don&#8217;t use chrome and I love it after seeing how fast it was. I ran a test of some simple replacing of text using jquery.  my initial test was to see if pre-defining your jquery elements was quicker then making a brand new call every time you wanted to manipulate them. the best of the test can be seen here: <a href="http://jsperf.com/predefined-vs-new-query/2">http://jsperf.com/predefined-vs-new-query/2</a>.<p> <br/>

<p>What I suspected occurred but after adding some more tests to the line up I was amazed to find plain ol&#8217; javascript (the stuff that jQuery is built on) ran about 40-50X faster in some browsers depending on what browser you were testing in.  This really makes me question about how heavily dependent we are all on jquery and other libraries for some tasks.</p>

<p>Here are some pros and cons I could boil it down to.</p>

<p><strong>jQuery Pros</strong><br/>
<ul>
	<li>It is easier to write and you don&#8217;t have to know that much to learn how to use it.</li>
	<li>It is consistent across all browsers for the most part.</li>
	<li>After the initial jq script download your js files stay pretty small in weight and in length</li>
</ul>
</p>

<p><strong>jQuery Cons</strong><br/>
<ul>
	<li>heavy library initial file download (I know most gzip it so it compress 20k or so)</li>
	<li>It chugs compared to plain javascript.</li>
	<li>some time work arounds have to be in place and you can become lazy and dependent.</li>
<li>It&#8217;s Well documented and tested.</li>
<li>the quickest way to type a command isn&#8217;t always the fastest speed wise for example <a href="http://jsperf.com/jquery-selector-perf-right-to-left/59">http://jsperf.com/jquery-selector-perf-right-to-left/59</a></li>
</ul>
</p>

<p><strong>javascript in nude Pros</strong><br/>

<ul>
	<li>No middle man so your talking straight to the browser or server.</li>
	<li>A lot quicker then jQuery</li>
	<li>You understand more whats actually going on (as a developer)</li>
</ul>

</p>


<p><strong>javascript in nude Cons</strong><br/>

<ul>
	<li>Lengthy to write and heavy in file size.</li>
	<li>browser support inconsistencies for different parts of js. (end up killing 1 bird with 3 stones type of deal&#8230; jQ does this for you)</li>
	<li>Tons of research from many sources.</li>
<li>super lengthy production time due to buggy-ness of multiple browser support.</li>
</ul>

</p>

<p>That being said you could mix the two but that gets kind of messy.  Especially when you are making HUGE scripts or applications. But is it worth the pay off? maybe.  User experience wise. Yes! Development Time. Not so much!  So really it comes down to your resources..  </p>

<p>1. How much time&#8230; sometimes money do you have. <br/><br/>
2. How knowledgeable or willing to research is/are the developer(s) building your script there are many things that make a script chug not just a library.<br/><br/>
3. are you ready for a long term relationship because maintenance is going to be crazy if you go the js nude route.</p>

<p>it&#8217;s kind of a hard choice because 1 developer&#8217;s preference vs 10,000,000+ users experience can really make a huge impact on the whole product.  makes you wonder how fast your heavily dependent js app would run if you went with js in the nude as opposed to your library of choice.</p>




]]></content:encoded>
			<wfw:commentRss>http://www.tdesignonline.com/optimizaion-jsperf-and-thoughts-js-in-the-nude/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>myTip v.1 &#8211; with jQuery 1.4.1 &amp; JSON</title>
		<link>http://www.tdesignonline.com/mytip-v-1-with-jquery-1-4-clean-version-using-json</link>
		<comments>http://www.tdesignonline.com/mytip-v-1-with-jquery-1-4-clean-version-using-json#comments</comments>
		<pubDate>Thu, 21 Jan 2010 22:09:54 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.tdesignonline.com/?p=1287</guid>
		<description><![CDATA[I wanted to experiment with jquery 1.4.1 so I started building a tool tip and just kept going with it. A few things before we get started. DOWNLOAD THE DEMO AND FILES Uses the wonderful jQuery 1.4.1 It does not use code in the bottom of your content hoverIntent (not the jquery plugin) NEW can [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" ></script>
<script type="text/javascript" src="http://www.tdesignonline.com/myTip/tips.js"></script>
<script type="text/javascript" src="http://www.tdesignonline.com/myTip/myTip.js"></script>
<p>I wanted to experiment with jquery 1.4.1 so I started building a tool tip and just kept going with it. A few things before we get started. 
</p>

<p><strong><a href="http://www.tdesignonline.com/myTipDemo.zip">DOWNLOAD THE DEMO AND FILES</a></strong></p>

<ul>
<li>Uses the wonderful jQuery 1.4.1</li>
	<li>It does not use code in the bottom of your content</li>
	<li>hoverIntent (not the jquery plugin) <strong>NEW</strong></li>
<li>can set feature to stay open</li>
<li>Can utilize JSON to insert code snippets for fancy tips <strong>NEW</strong></li>
<li>It use the rel and <a href="#" rel="mytip" rev="This text is in the rev attribute it is a w3c valid attribute ( ;">rev</a> attributes</li>
<li>works in all the popular browers (even ie6) <strong>NEW</strong></li>
<li>Can add plain text to the rev attribute.</li>
<li>It&#8217;s w3c valid</li>
<li>It&#8217;s SUPER easy!</li>

</ul>
<br/>

<p><strong>Here are some examples:</strong></p>

<p>

<a href="#" rel="mytip [top left]" rev="just in case you want more control.">Top Left</a><br/>

<a href="#" rel="mytip [top right]" rev="make it show up anywhere you want.">Top Right</a><br/>


<a href="#" rel="mytip [bottom left]" rev="Bottom left is good for text too close to the right side of the browser.">Bottom Left</a><br/>

<a href="#" rel="mytip [bottom right]" rev="Bottom Right is the DEFAULT.">Bottom Right</a><br/>
<a href="#" rel="mytip [center right]" rev="good for movies.">Center Right</a><br/>
<a href="#" rel="mytip [center left]" rev="good for movies on a Hebrew website.">Center Left</a><br/>

</p>

<p><strong>OMG WAIT&#8230;</strong></p>
<p>I forgot to tell you&#8230; You can put just about anything you can code into this tool tip (I tried an iframe and it worked great!) It is pretty powerful for a tool tip eh?</p>
<p>
<a href="http://www.w3schools.com/" target="_blank" rel="mytip [center]" rev="if you click it will go somewhere">Live Links</a><br/>
<a href="#" rel="mytip [center]" rev="if you click it won't go anywhere... nope not to the top of the page either">Or Dead Links</a><br/>
<a href="#" id="tip3" rel="mytip [center get leaveopen width:275px;]" >Here is an img</a><br/>
<a id="tip2" href="http://www.youtube.com/watch?v=4pDiBno4ZfQ&#038;feature=player_embedded" rel="mytip [center right width:425px; leaveopen get]"  >Here is a vid</a><br/>
(you can link images to a tool tip too)
</p>

<p><strong><a href="http://www.tdesignonline.com/myTipDemo.zip">DOWNLOAD THE DEMO AND FILES</a></strong></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>The Tricks</strong></p>

<p><strong>Basic Use</strong></p>
<ul>
        <li>add rel=&#8221;mytip&#8221; to any link you want the tip to work on.</li>
	<li>Just add your text/code to the rev attribute.</li>
</ul><br/><br/>

<p><strong>Advanced Use</strong></p>
<ul>
        <li>to set the width and location would look like this you can set all, some, or only one of these values: rel=&#8221;mytip [width:500px; height:300px; center right leaveopen get]&#8221; <a id="tip1" href="#" rel="mytip center leaveopen get" 
 ">possible values here</a></li>
<li>using get will cancel out the rev tag so make sure your id=&#8221;tip1&#8243; has the same value as your JSON object ie &#8216;tip1&#8242;.</li>
        <li>to leave the tab open and insert a .closebutton just add <em>leaveopen</em> in the brackets</li>
        <li>you can add classes and attributes like you would in normal code.</li>
<li>You can change the offset from the mouse in the JS</li>
<li>You can modify the span wrapper to auto include something more if you want to do something <em>fawn-cay.</em></li>
<li>You can change the css on the .mytip class</li>
</ul>
<p><br/></p>

<p>experiment&#8230; what can you not do? Let me know your feedback or if you find some bugs. PLEASE because I don&#8217;t want to pollute the web.</p>

<p>Blessings,<br/>
Richard Lee</p>

<p><strong><a href="http://www.tdesignonline.com/myTipDemo.zip">DOWNLOAD THE DEMO AND FILES</a></strong></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>

<div class="clear"></div><!-- END OF clear -->]]></content:encoded>
			<wfw:commentRss>http://www.tdesignonline.com/mytip-v-1-with-jquery-1-4-clean-version-using-json/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning jQuery: myTip .3 Beta</title>
		<link>http://www.tdesignonline.com/learning-jquery-custom-tool-tip-beta</link>
		<comments>http://www.tdesignonline.com/learning-jquery-custom-tool-tip-beta#comments</comments>
		<pubDate>Fri, 15 Jan 2010 20:30:47 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.tdesignonline.com/?p=1136</guid>
		<description><![CDATA[You can read this if you want but the real v.1 is here I decided to try and create a custom tool tip and it worked out pretty well. I had to utilize a funny attribute to make it work (the rev attribute&#8230; WHAT??? that&#8217;s what I said. go ahead check w3c ( ; )&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tdesignonline.com/mytip-v-1">You can read this if you want but the real v.1 is here</a></p>

<p>I decided to try and create a custom tool tip and it worked out pretty well.  I had to utilize a funny attribute to make it work (the rev attribute&#8230; WHAT??? that&#8217;s what I said. go ahead check w3c ( ;  )&#8230; But it Does.  I just need to work on customizing the positioning. so if the browser isn&#8217;t wide enough or to pop out to the left instead of the right etc.</p>

<p>I am using a Google hosted jQuery 1.4 take a look below.</p>

<p><a href="http://www.tdesignonline.com" target="_blank" rel="mytip" rev="Nice customizable built in tool tip. (None of that 'putting junk in another div at the bottom of your markup' stuff.)  That's right all this stuff is inline and you don't get the annoying tool tip thingies in IE. because we're not using title or alt... but rather 'rev'">This is some Anchor Text Hover over it</a></p>

<p>you can make the link do nothing too! <a href="#" rel="mytip" rev="looky there! it worked... now click it... Muwahahaaaaa!!! nothing...">but I have a tip!</a> just set the href to #</p>

<p><a href="#" rel="mytip" rev="The script inserts a span with the class='mytip' and then appends the text of the rev attribute to the span and the span to the end of the anchor text.  (Caution on using this script with spans if you already have a span in your anchor IT WILL REMOVE IT)">This is out it works</a></p>

<p>You must be careful with quotes &#8221; &#8221; you must make sure you use &#8216; &#8216; instead of &#8221; &#8221; use the opposite of what you are using for your attributes.</p>

<p>It works in all the browsers as far as I know&#8230; (I haven&#8217;t tested in chrome or opera though)</p>

<div class="pull">While researching other custom tool tips they all require you to add a chunk of code to the bottom of your content who has time for that???</div>

<p>With this solution all you have to do is set the rel=&#8221;mytip&#8221;  and then put whatever you want in the rev=&#8221;"  attribute for your tip.  It requires jquery 1.4, the code I wrote to make it happen, and then a .mytip class for css</p>

<p>you can view the source below this sentence to cut and paste the .js and .css (all of it i&#8217;m linking to googles jquery)</p>

<p>Blessings,<br/>
Richard Lee</p>

<!--  START OF CUT / PASTE SECTION  ______________________________________________________________________-->


<style type="text/css"><!--
*{outline:none}
.mytip {
		position : absolute;
		background-color : #FCA632;
		z-index : 9999!important;
		padding : 2px 6px;
		border : solid 1px #ccc;
		font-size : 11px;
		color : #333;
		width : 150px;
		border-radius:2px;
		-moz-border-radius:2px;
		-webkit-border-radius:2px;
		text-decoration:none;
                line-height:1.4em;
		
}
-->
</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" ></script>
<script type="text/javascript" >
$(document).ready(function(){
						   
	var mytipOpenTags = '<span class="mytip">'
	var mytipCloseTags = '</span>'
	var mytipXoffset = 0;
	var mytipYoffset = 17; 
							   
	$("a[rel*='mytip']").each(function(){
		if($(this).css('position') == 'static'){
			$(this).css('position','relative');
			}
	});
		
	$("a[rel*='mytip']").each(function(){var mytip; $(this).bind({
			click: function(){
				if($(this).attr('href')=='#'){ return false; }	
			},
		 mouseover: function(){
 			$(this).append(mytipOpenTags+$(this).attr("rev")+mytipCloseTags);
			var myindex = $("*[rel*='mytip']").index(this);
			var mytotal = $("*[rel*='mytip']").length;
			var newtotal;
			newtotal=(mytotal-myindex)+9000;
			$(this).css('z-index', newtotal);
      		$(this).mousemove(function(e){
				var x = e.pageX - $(this).offset().left;
				var y = e.pageY - $(this).offset().top;
				$(this).find('span').css('left',x+mytipXoffset+'px');
				$(this).find('span').css('top',y+mytipYoffset+'px');

			});
		},
		mouseout: function(){
			$(this).find('span').remove()
		}

 }); }); });
</script>

<!--  END OF CUT / PASTE SECTION  ______________________________________________________________________-->


]]></content:encoded>
			<wfw:commentRss>http://www.tdesignonline.com/learning-jquery-custom-tool-tip-beta/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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[(This script is no longer being maintained as of 06/29/2011 May not function properly in updated browsers) 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) [...]]]></description>
			<content:encoded><![CDATA[<img style="padding-left:20px;padding-right:20px;" src="lb.png" alt="lighterbox" align="left" />
<strong>(This script is no longer being maintained as of 06/29/2011 May not function properly in updated browsers)</strong>
<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>
        <li>+ <a href="#optimized">NEW OPTIMIZED VERSION</a> &#8211; brought to you by <a href="http://www.viadeo.com/fr/profile/frederic.madsen" target="_blank" >Frédéric MADSEN</a>
</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 Original</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>
<p id="optimized">Also Try out the <a href="http://www.tdesignonline.com/wp-content/uploads/2008/12/lighterbox2OPTIMIZED.zip">NEW even MORE OPTIMIZED version LighterBox2</a> brought to by <a href="http://www.viadeo.com/fr/profile/frederic.madsen" target="_blank" >Frédéric MADSEN</a> (Succesfully tested on Chrome 5/6, Firefox 3, IE 7/8/9, Opera 10 and Safari 4/5)     <br/><br/>
    *  4 files instead of 7 (-40%)<br/>
    * 6.03Ko instead of 12.3Ko (-50%)<br/>
    * JavaScript file less than 100 lines, 94 lines instead of 195 (-50%)
<br/><br/>Also feel free to check out his other links <a href="http://w3c.html5.free.fr/" target="_blank" >w3c.html5.free.fr</a> and <a href="http://mytooltip.free.fr/mytooltip/mytooltip.html" target="_blank" >My Tool Tip JS</a></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[(This script is no longer being maintained as of 06/29/2011 May not function properly in updated browsers) 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 [...]]]></description>
			<content:encoded><![CDATA[<img style="padding-left:20px;" src="lb1.png" alt="lighterbox" align="left" />
<strong style="width: 220px; float: right;">(This script is no longer being maintained as of 06/29/2011 May not function properly in updated browsers)</strong>
<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>

