<?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>Gabriel de Kadt &#187; jQuery</title>
	<atom:link href="http://www.lazydada.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lazydada.com</link>
	<description>Personal notes on Mac based web development and design.</description>
	<lastBuildDate>Tue, 30 Aug 2011 10:47:39 +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>CSS 3 pseudo-classes and attribute selectors in Internet Explorer</title>
		<link>http://www.lazydada.com/2011-05-27/css-3-pseudo-classes-and-attribute-selectors-in-internet-explorer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-3-pseudo-classes-and-attribute-selectors-in-internet-explorer</link>
		<comments>http://www.lazydada.com/2011-05-27/css-3-pseudo-classes-and-attribute-selectors-in-internet-explorer/#comments</comments>
		<pubDate>Fri, 27 May 2011 09:04:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=922</guid>
		<description><![CDATA[Thanks to my mate Tony I&#8217;ve been introduced to this rather delicious (and very small) jQuery plugin that adds support for, among other things the :nth-child pseudo class. If this had been around a year ago &#8216;d have avoided having to craft this php counting system for a custom WordPress loop. What&#8217;s the link already? [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to my mate <a title="Tony's tweets re his platform for illustrators" rel="colleage friend" href="http://twitter.com/#!/theartfuls" target="_blank">Tony</a> I&#8217;ve been introduced to this rather delicious (and very small) jQuery plugin that adds support for, among other things the <tt>:nth-child</tt> pseudo class. If this had been around a year ago &#8216;d have avoided having to craft this <a title="WordPress loop with x big posts in one column then a grid of y smaller posts in z columns" href="http://www.lazydada.com/2010-06-10/fancy-wordpress-loop-with-main-posts-and-then-grid-of-post-in-rows/">php counting system for a custom WordPress loop</a>.</p>
<h4>What&#8217;s the link already?<br />
Here you go Jack: <a title="pseudo classes for Internet explorer" href="http://selectivizr.com/" target="_blank">Selctivizr</a></h4>
<p>Shout out to our kid Tony and good luck to him and his latest baby &#8211; an online platform for Illustrators: <a title="online platform for Illustrators" rel="contact" href="http://www.theartfuls.com/">the artfuls </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2011-05-27/css-3-pseudo-classes-and-attribute-selectors-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP web forms</title>
		<link>http://www.lazydada.com/2010-09-24/php-web-forms/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-web-forms</link>
		<comments>http://www.lazydada.com/2010-09-24/php-web-forms/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 16:15:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=800</guid>
		<description><![CDATA[Websites are a point of contact &#8211; and a contact form that sends an email is the way to normally handle enquiries. (Of course phone numbers/addresses must first be easy to find!) A contact form requires a web server to actually do something &#8211; ie send you an email &#8211; it&#8217;s not just displaying HTML [...]]]></description>
			<content:encoded><![CDATA[<p>Websites are a point of contact &#8211; and a contact form that sends an email is the way to normally handle enquiries. (Of course phone numbers/addresses must first be easy to find!) A contact form requires a web server to actually do something &#8211; ie send you an email &#8211; it&#8217;s not just displaying HTML code anymore. There&#8217;s options to get by without a script on your server &#8211; the excellent <a title="WuFoo Woo Forms online iFrame forms service" href="http://wufoo.com/" target="_blank">WuFoo</a> online form builder is a great option here &#8211; but if you want a form as part of your page that you can style yourself it ain&#8217;t the ticket. So, knowing a little PHP, a PHP script is sought that:</p>
<ol>
<li>makes sure all input is cleaned and sanitized to avoid nasty things being done on/to your server</li>
<li>checks for errors in the data without discarding the well formed data</li>
<li>uses some form of <a href="http://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA</a> to keep those spam bots at bay</li>
<li>sends email through an authorised SMTP email account (Gmail, for example, will either mark as spam or simply not accept mail that isn&#8217;t)</li>
</ol>
<p>Other nice things to consider would be nice, cross-browser <a title="HTML5 forms placeholder text" href="http://diveintohtml5.org/forms.html#placeholder" target="_blank">(HTML5) placeholder text</a> (that doesn&#8217;t get submitted).</p>
<h2>Finding a PHP web form framework</h2>
<p>Last time I set up a form was a while ago &#8211; I&#8217;ve been doing mostly WordPress sites (or other CMS work) recently and have found the premium <a title="Premium WordPress form plugin" href="http://www.gravityforms.com/" target="_blank">Gravity forms</a> plugin for WordPress to work a treat. Anyway, cut to the chase already&#8230; the old script I had used  failed on points 3 &amp; 4 above I&#8217;d like to say I can lean on <a href="http://pear.php.net/" target="_blank">PEAR PHP</a> (which is already on my webserver) but I&#8217;m really not a programmer. I found a solution in the excellent <a title="PHP form script" href="http://www.dagondesign.com/articles/secure-php-form-mailer-script/" target="_blank">PHP form &#8220;library&#8221; from Dagon Design</a>. I&#8217;d never heard off it but it&#8217;s the first serious result for &#8220;PHP form script&#8221; in Google at the moment &#8211; so it  must at least be popular. More importantly it ticks all the boxes above (plus much more) and is well documented. Go <a title="donationware PHP form script download " href="http://www.dagondesign.com/articles/secure-php-form-mailer-script/#download" target="_blank">get it</a>. The only thing it doesn&#8217;t do is verify numerical input.</p>
<p>There&#8217;s no need for me to go into the setup at all &#8211; it is very well documented &#8211; just spend a half hour or so to read through it.</p>
<h2>Adding placeholder text to the form framework</h2>
<p>All I have to add is that I&#8217;ve edited the script a bit to set default text as HTML5 placeholder text (and remove default text from text inputs). The form is run in conjunction with Daniel Stocks&#8217; <a title="jQuery HTML5 placeholder pugin" href="http://github.com/danielstocks/jQuery-Placeholder" target="_blank">HTML5 Placeholder Plugin</a> for jQuery to make sure that the placeholder text works with IE etc.</p>
<p>To get the placeholder text working I changed the last few lines of the  below (from 754):</p>
<pre class="brush: php; first-line: 742; title: ; notranslate">
function ddfm_gen_text($item) {

	// type=text|class=|label=|fieldname=|max=|req=(TRUEFALSE)|[ver=]|[default=]

	global $form_submitted, $form_input, $show_required;

	$req_text = (($show_required) &amp;&amp; ($item['req'] == 'true')) ? '&lt;span class=&quot;required&quot;&gt;' . DDFM_REQUIREDTAG . '&lt;/span&gt; ' : '';

	$gen = &quot;&quot;;
	$gen .= '&lt;p class=&quot;fieldwrap&quot;&gt;&lt;label for=&quot;' . $item['fieldname'] . '&quot;&gt;' . $req_text . $item['label'] . '&lt;/label&gt;';
	$gen .= '&lt;input class=&quot;' . $item['class'] . '&quot; type=&quot;text&quot; name=&quot;' . $item['fieldname'] . '&quot; id=&quot;' . $item['fieldname'] . '&quot; value=&quot;';

	if ($form_submitted) {
		$gen .= ddfm_bsafe($form_input[$item['fieldname']]);
	} else if (isset($item['default'])) {
		$gen .= ddfm_bsafe($item['default']);
	}

	$gen .= '&quot; /&gt;&lt;/p&gt;' . &quot;\n\n&quot;;

	return $gen;
}
</pre>
<p>to:</p>
<pre class="brush: php; first-line: 754; title: ; notranslate">
	if ($form_submitted) {
		$gen .= ddfm_bsafe($form_input[$item['fieldname']]);
	}

	$gen .= '&quot; placeholder=&quot;' . ddfm_bsafe($item['default']) . '&quot; /&gt;&lt;/p&gt;' . &quot;\n\n&quot;;

	return $gen;
</pre>
<p>So what&#8217;s all the fuss about &#8211; well you can see the version I worked on, in action, as part of  a website for this <a title="Fuengirola hair salon" href="http://besohair.com/make.php" target="_blank">fancy (in the good sense) hair salon in Fuengirola</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2010-09-24/php-web-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress jQuery conflict solved</title>
		<link>http://www.lazydada.com/2010-06-12/wordpress-jquery-conflict-solved/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-jquery-conflict-solved</link>
		<comments>http://www.lazydada.com/2010-06-12/wordpress-jquery-conflict-solved/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 00:01:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=733</guid>
		<description><![CDATA[After several hours of thinking I&#8217;m being a idiot (happens occasionally) I discovered that sometimes you&#8217;ll need to call before any jQuery scripts (or concatenated scripts in my case). It&#8217;s been hours and I couldn&#8217;t figure out why none of the Carousel scripts I was trying today wanted to work &#8211; while all other scripts [...]]]></description>
			<content:encoded><![CDATA[<p>After several hours of thinking I&#8217;m being a idiot (happens occasionally) I discovered that sometimes you&#8217;ll need to call</p>
<pre class="brush: php; title: ; notranslate">&lt;?php wp_head(); ?&gt;</pre>
<p>before any jQuery scripts (or concatenated scripts in my case).</p>
<p>It&#8217;s been hours and I couldn&#8217;t figure out why none of the Carousel scripts I was trying today wanted to work &#8211; while all other scripts and plugins carried on just fine.</p>
<p>And yes &#8211; I am already trying to prevent jQuery conflicts with</p>
<pre class="brush: php; title: ; notranslate">&lt;?php wp_enqueue_script(&quot;jquery&quot;); ?&gt;</pre>
<p>So if your carousel (or other) scripts don&#8217;t want to work &#8211; try shaking up your <code>head</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2010-06-12/wordpress-jquery-conflict-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Rounded Corners</title>
		<link>http://www.lazydada.com/2009-11-27/javascript-rounded-corners/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-rounded-corners</link>
		<comments>http://www.lazydada.com/2009-11-27/javascript-rounded-corners/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 09:40:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=495</guid>
		<description><![CDATA[Rounded corners with CSS and graphics is OK &#8211; but a pain to set up &#8211; requiring custom images and plenty of extra markup. JavaScript &#8211; particularly when helped by jQuery comes to the rescue and makes it fairly trivial. Requiremtents: must work with IE6, IE7, iE8, FF and Safari (note about IE8 below). Main [...]]]></description>
			<content:encoded><![CDATA[<p>Rounded corners with CSS and graphics is OK &#8211; but a pain to set up &#8211; requiring custom images and plenty of extra markup. JavaScript &#8211; particularly when helped by jQuery comes to the rescue and makes it fairly trivial. Requiremtents: must work with IE6, IE7, iE8, FF and Safari (note about IE8 below).</p>
<p>Main contenders:</p>
<ol>
<li>for jQuery: <a href="http://jrc.rctonline.nl/demo/index.html">jquery.corner.js from rc.rctonline.nl</a></li>
<li>for jQuery: <a href="http://www.malsup.com/jquery/corner/">jquery.corner.js from malsup.com</a></li>
<li>for jQuery: <a href="http://www.parkerfox.co.uk/labs/cornerz">cornerz</a></li>
<li>stand alone: <a href="http://www.curvycorners.net/">curvycorners</a></li>
</ol>
<p>Using #1 at the moment. Would like to try them all again in the light of the IE8 workaround below. Gotta say I now think #3 (cornerz) looks most promising in terms of size and ability. Going to have another look to see which ones look to CSS first (for those browsers that are modern &#8211; and not Internet Explorer) before turning to JavaScript.</p>
<p>Problem with most of these is IE8 doesn&#8217;t play nice&#8230; fix seems simply to add the behave like IE7 meta tag: &lt;tt&gt;&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=EmulateIE7&#8243; /&gt;&lt;/tt&gt;</p>
<p>First impressions:</p>
<ol>
<li>good, non-transparent outside corner</li>
<li>good,</li>
<li>throws errors in IE7, non-transparent outside corner</li>
<li>slow in IE,</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-11-27/javascript-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping your sites optimised</title>
		<link>http://www.lazydada.com/2009-06-11/keeping-your-sites-optimised/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=keeping-your-sites-optimised</link>
		<comments>http://www.lazydada.com/2009-06-11/keeping-your-sites-optimised/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:16:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Optimisation]]></category>
		<category><![CDATA[shadowbox]]></category>
		<category><![CDATA[Sprites]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=382</guid>
		<description><![CDATA[The sites I&#8217;ve been working on had been suffering from flab. A JavaScript library here (jQuery of course), a plug-in there, another, another, another&#8230; then a large plug-in that loads it&#8217;s own plug-ins (Shadowbox v3 &#8211; I&#8217;m talking to you). It took a kick from outside (&#8220;your site x sucks HTTP requests and bandwidth&#8221;) to [...]]]></description>
			<content:encoded><![CDATA[<p>The sites I&#8217;ve been working on had been suffering from flab. A JavaScript library here (<a href="http://jquery.com/">jQuery</a> of course), a plug-in there, another, another, another&#8230; then a large plug-in that loads it&#8217;s own plug-ins (<a href="http://www.shadowbox-js.com/">Shadowbox v3</a> &#8211; I&#8217;m talking to <em>you</em>).</p>
<p>It took a kick from outside (&#8220;your site <em>x</em> sucks HTTP requests and bandwidth&#8221;) to realise things were going downhill.</p>
<p>So &#8211; with the help of the good folk at <a href="http://developer.yahoo.com/yslow/">Yahoo YSlow</a> and the new copy-cat-kid on the block (<a href="http://code.google.com/speed/page-speed/">Google Page Speed</a>) with their plug-ins for a plug-in(<a href="http://www.getfirebug.com/">firebug</a>) for Firefox [oh the irony]&#8230; I&#8217;ve started to get things in line again.</p>
<p>Both YSlow and Page Speed have helpful links and information once called &#8211; and now I can pat myself on the back for having improved my YSlow scores from an &#8216;F&#8217; to a &#8216;B&#8217;. Wetware heh.</p>
<p>Main issues I was able were too fix were too many HTTP requests and a lack of explicit caching direction from the web server. Nextly I&#8217;ll be looking at getting interface elements into a sprites for future jobs. (Must take this <a href="http://spritegen.website-performance.org/">sprite/CSS creation tool</a> for a spin. Looks absolutely fab.)</p>
<h3>Reduce HTTP requests</h3>
<p>While combining CSS files is trivial, combining a bunch of disparate JS files into one is not painless &#8211; I&#8217;ve had to drop a jQuery tooltip plug-in as it wouldn&#8217;t play nice when bundled up with its playground compatriots.</p>
<h3>Server side caching and compression</h3>
<p>is achieved the following htaccess rules:</p>
<pre>##Cacheing static components

FileETag none
Header unset Etag

# Far future 1 YEAR
&lt;FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|css|js)$"&gt;
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
&lt;/FilesMatch&gt;
&lt;FilesMatch "scripts.inc.php$"&gt;
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
&lt;/FilesMatch&gt;

# Past last modified
&lt;FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|css|js)$"&gt;
Header set last-modified "Sun, 13 Jul 2008 20:00:00 GMT"
&lt;/FilesMatch&gt;
&lt;FilesMatch "scripts.inc.php$"&gt;
Header set last-modified "Sun, 13 Jul 2008 20:00:00 GMT"
&lt;/FilesMatch&gt;

#Compress
&lt;IfModule mod_deflate.c&gt;
&lt;FilesMatch "\.(js|css)$"&gt;
SetOutputFilter DEFLATE
&lt;/FilesMatch&gt;
&lt;/IfModule&gt;</pre>
<h3>Shadowbox woes</h3>
<p>I now may be on the lookout for a replacement to Shadowbox. Shadowbow v2 was great &#8211; it came with lots of build options and could be explicitly launched by jQuery on Document Ready. v2 wasn&#8217;t IE8 compatible however &#8211; forcing an upgrade to v3 &#8211; still in beta&#8230; Ho hum. This required an updated version of the <a href="http://www.longtailvideo.com/players/jw-flv-player/">JW FLV</a> media player which I&#8217;m not mad keen on &#8211; and that needs a new licence. While Shadowbox is now very clever and can automatically find it&#8217;s own dependencies &#8211; it has many of these &#8211; each one with an HTTP request. While it is easy to combine the whole bundle into a single file its something I&#8217;d rather not have to do/keep track of &#8211; I&#8217;ve already got a rod for my back with the other jQuery plugins&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-06-11/keeping-your-sites-optimised/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery in anger</title>
		<link>http://www.lazydada.com/2009-04-17/jquery-in-anger/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-in-anger</link>
		<comments>http://www.lazydada.com/2009-04-17/jquery-in-anger/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 19:10:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=228</guid>
		<description><![CDATA[[notes to self] Shadowbox Tooltip highlightFade http://jquery.offput.ca/highlightFade/old.php jquery.validate.js Lovely, lightweight carousel: http://www.gmarwaha.com/jquery/jcarousellite/ http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html http://www.jasonbradbury.com/]]></description>
			<content:encoded><![CDATA[<p>[notes to self]<br />
<strong> </strong></p>
<p><strong>Shadowbox</strong><br />
<strong> </strong></p>
<p><strong>Tooltip</strong></p>
<p><strong></strong><strong>highlightFade</strong></p>
<p>http://jquery.offput.ca/highlightFade/old.php</p>
<p><strong>jquery.validate.js</strong></p>
<p><strong>Lovely, lightweight carousel:<br />
<span style="font-weight: normal;">http://www.gmarwaha.com/jquery/jcarousellite/</span></strong></p>
<p>http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html</p>
<p>http://www.jasonbradbury.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2009-04-17/jquery-in-anger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Options for &#8220;hybrid modal&#8221; lightbox display of images</title>
		<link>http://www.lazydada.com/2008-05-29/options-for-hybrid-modal-lightbox-display-of-images/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=options-for-hybrid-modal-lightbox-display-of-images</link>
		<comments>http://www.lazydada.com/2008-05-29/options-for-hybrid-modal-lightbox-display-of-images/#comments</comments>
		<pubDate>Thu, 29 May 2008 16:31:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design & development]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.lazydada.com/?p=33</guid>
		<description><![CDATA[[Update 2009 - OK now I'm not the total newbie anymore and would have to recommend Shadowbox on top of jQuery for it's versatility and power. Slimbox is still great though.] The Contenders Slimbox The true successor to the king (Lightbox). This is the chosen one. Very lightweight, simple instructions, does what it says on [...]]]></description>
			<content:encoded><![CDATA[<p>[Update 2009 - OK now I'm not the total newbie anymore and would have to recommend <a href="#shadowbox">Shadowbox</a> on top of jQuery for it's versatility and power. Slimbox is still great though.]</p>
<hr />
<h2>The Contenders</h2>
<h4><a href="http://www.digitalia.be/software/slimbox">Slimbox</a></h4>
<p>The true successor to the king (Lightbox). This is the chosen one. Very lightweight, simple instructions, does what it says on the tin. Simple instructions for when I&#8217;ve forgotten in two weeks are further <a href="#slimboxwalkthrough">down</a>&#8230;</p>
<h4 id="shadowbox"><a href="http://mjijackson.com/shadowbox/">Shadowbox.js</a></h4>
<p>This one seems to be the current best in breadth of options but too much to read for a low level webdev monkey like me.</p>
<h4><a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox</a></h4>
<p>The original &#8211; but perhaps no longer the beast.</p>
<h4><a href="http://jquery.com/demo/thickbox/">Thickbox</a></h4>
<p>Could have been a contender but I balked at the heavy graphic design.</p>
<h4><a href="http://www.cabel.name/2008/02/fancyzoom-10.html">FancyZoom</a></h4>
<p>The one that started the search thanks to seeing it in action at <a href="http://www.fontshop.com/fontfeed/archives/new-fontfonts-release-44/">this</a> FontFeed article. Great tool &#8211; but as a webdev guerilla [read chimp] the commercial licence stopped me. Need a bit of slack before I can convince anybody to pay&#8230;</p>
<hr />
<h2><a name="slimboxwalkthrough">Slimbox walk-through</a></h2>
<p>Upload css and js files &#8211; add these three lines of code to the head of the HTML:</p>
<pre>&lt;script type="text/javascript" src="js/mootools.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/slimbox.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="css/slimbox.css" type="text/css" media="screen" /&gt;</pre>
<p>(The last slash there may want removing according to your doctype. Are you strict enough for it?)<br />
Then craft the images links like this for single images</p>
<pre>&lt;a href="" rel="lightbox" title=""&gt;&lt;img src="" alt="" /&gt;&lt;/a&gt;</pre>
<p>or, for sets, like this (where the <tt>rel</tt> attribute has the set name&#8217;s suffix)</p>
<pre>&lt;a href="" rel="lightboxset" title=""&gt;&lt;img src="" alt="" /&gt;&lt;/a&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lazydada.com/2008-05-29/options-for-hybrid-modal-lightbox-display-of-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
