<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Gilbert Pellegrom</title>
	
	<link>http://www.gilbertpellegrom.co.uk</link>
	<description>Software Engineer and Web Developer</description>
	<lastBuildDate>Tue, 10 Nov 2009 22:50:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Gilbitron" type="application/rss+xml" /><feedburner:emailServiceId>Gilbitron</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>PHP AJAX Form Producer</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/TYy0VlryIuE/</link>
		<comments>http://www.gilbertpellegrom.co.uk/php-ajax-form-producer/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 22:50:55 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=501</guid>
		<description><![CDATA[As a small side project I recently created the PHP AJAX Form Producer. Based on the idea that forms are really annoying to make and even more annoying to “ajaxify” I’ve made a PHP script to take away all of that hassle. The demo only took 16 lines of PHP code to create. Easy.

For more [...]]]></description>
			<content:encoded><![CDATA[<p>As a small side project I recently created the PHP AJAX Form Producer. Based on the idea that forms are really annoying to make and even more annoying to “ajaxify” I’ve made a PHP script to take away all of that hassle. The demo only took 16 lines of PHP code to create. Easy.</p>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/11/1_main.jpg" alt="PHP AJAX Form Producer" title="PHP AJAX Form Producer" width="490" height="249" class="aligncenter size-full wp-image-493" /></p>
<p>For more information, demo and documentation visit the Form Producer demo site.</p>
<p><a class="button blue" target="_blank" href="http://demo.gilbertpellegrom.co.uk/formproducer/">Visit Demo Site</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=11" title="PHP AJAX Form Producer" class="button blue">Download Now!</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=TYy0VlryIuE:ITUF8rFaqic:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=TYy0VlryIuE:ITUF8rFaqic:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=TYy0VlryIuE:ITUF8rFaqic:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=TYy0VlryIuE:ITUF8rFaqic:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=TYy0VlryIuE:ITUF8rFaqic:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=TYy0VlryIuE:ITUF8rFaqic:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=TYy0VlryIuE:ITUF8rFaqic:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/TYy0VlryIuE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/php-ajax-form-producer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/php-ajax-form-producer/</feedburner:origLink></item>
		<item>
		<title>Ultimate jQuery Slider</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/FuqpcySxB8o/</link>
		<comments>http://www.gilbertpellegrom.co.uk/ultimate-jquery-slider/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:10:58 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=463</guid>
		<description><![CDATA[
Today I&#8217;m going to show you how to create the Ultimate jQuery Slider which is really more like a website template than just a slider. I first wrote this code for my portfolio website dev7studios so you can see an example of it being used in real life there. Although the jQuery itseld is a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/10/ujs.jpg" alt="Ultimate jQuery Slider" title="Ultimate jQuery Slider" width="490" height="150" class="aligncenter size-full wp-image-464" /><br />
Today I&#8217;m going to show you how to create the Ultimate jQuery Slider which is really more like a website template than just a slider. I first wrote this code for my portfolio website <a href="http://dev7studios.com/">dev7studios</a> so you can see an example of it being used in real life there. Although the jQuery itseld is a wee bit complex overall it&#8217;s not as hard an effect to achieve as you might think.</p>
<p><center><a target="_blank" class="button blue" href="http://www.gilbertpellegrom.co.uk/tutorials/UltimatejQuerySlider/">View Demo</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=10" title="Ultimate jQuery Slider 1.0" class="button blue">Download Source</a></center><br />
<span id="more-463"></span></p>
<h3>The HTML</h3>
<p>Ok so let&#8217;s start off with the easy part, the HTML. I&#8217;m not going to show the whole HTML here but just the structure. To see the whole HTML you can download the source later.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wrapper&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;top&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;feature&quot;</span>&gt;</span>
&nbsp;
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Ultimate jQuery Slider<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cycle&quot;</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image1.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Title 1&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slide1&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image2.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Title 2&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slide2&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image3.png&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Title 3&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slide3&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;next-arrow&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Next<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;body&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span>
&nbsp;
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;product_slide1&quot;</span>&gt;</span>
                <span style="color: #808080; font-style: italic;">&lt;!-- Content here... --&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;product_slide2&quot;</span>&gt;</span>
                <span style="color: #808080; font-style: italic;">&lt;!-- Content here... --&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;product_slide3&quot;</span>&gt;</span>
                <span style="color: #808080; font-style: italic;">&lt;!-- Content here... --&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>As you can see here the structure of the HTML is fairly simple. The most important part&#8217;s to note is the <code>cycle</code> div with the images inside. We are going to be using the <a href="http://malsup.com/jquery/cycle/">jQuery Cycle plugin</a> for our scroller but I&#8217;ll explain more about that later on. Note that these images require an id attribute. This id will be how we reference the page hash and also how we know which content div to show (prefixed with <code>product_</code>).</p>
<p>There is also a <code>next-arrow</code> link and an empty <code>nav</code> div. These are required for the navigation to work and their functionality will be added when we set up the Cycle plugin.</p>
<h3>The CSS</h3>
<p>Ok now for some CSS. Again I am not including all of the CSS here (it is included in the source code download) rather I&#8217;m just showing the relevant parts of the CSS.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#top</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/background.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">900px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/feature_back.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> h1 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">350px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/header.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> a<span style="color: #cc00cc;">#next-arrow</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/next.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;"><span style="color: #cc66cc;">200</span>%</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">480px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#feature</span> a<span style="color: #cc00cc;">#next-arrow</span> span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/next.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">-<span style="color: #cc66cc;">220</span>%</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">99</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#cycle</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#cycle</span> img <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">586px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">450px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/loading.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/bullet.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #3333ff;">:inline-</span>block<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> a<span style="color: #6666ff;">.activeSlide</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/bullet_active.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #cc00cc;">#body</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/body.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#content</span> div <span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/* Initially hidden */</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ok there is quite a lot in there but take your time to go through it. Part&#8217;s to notice are:</p>
<ul>
<li>#feature has position set to relative to that we can absolutely position the #next-arrow.</li>
<li>The #next-arrow span definition is for the fancy fade effect we will implement in the javascript. It&#8217;s outside of the scope of this article to explain how this works but it&#8217;s safe to say it&#8217;s not required and you could just use <code>:hover</code> here.</li>
<li>The #nav width is set manually. This is not very elegant and needs to be changed depending on how many links (bullets) you have if you want it to remain centred.</li>
<li>A lot of the elements we have are initially hidden. This is so we can have our fancy fade-in effects when the page loads.</li>
<li>We are using opacity here. Most modern browsers support pure CSS opacity but some (cough&#8230; IE cough&#8230;) don&#8217;t. Although this has been tested in modern browsers I&#8217;ve not made much effort to make it backwards compatible due to the fact we are using several techniques that won&#8217;t work in older browsers.</li>
</ul>
<p>And that is us for the CSS. The rest is either fairly self explanatory or outside the scope of this article. However if you do have any questions about the CSS then please leave a comment and I will try and answer it.</p>
<h3>The Javascript</h3>
<p>Now for the fun part. The javascript.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//find starting index based on hash</span>
	<span style="color: #003366; font-weight: bold;">var</span> start <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#product_'</span> <span style="color: #339933;">+</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/#/</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> id <span style="color: #339933;">=</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> afterCount <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>id <span style="color: #339933;">+</span> <span style="color: #3366CC;">' ~ img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			start <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cycle img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> afterCount<span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//set up jQuery Cycle</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cycle'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">cycle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		fx<span style="color: #339933;">:</span><span style="color: #3366CC;">'fade'</span><span style="color: #339933;">,</span> 
		speed<span style="color: #339933;">:</span><span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span>
	      timeout<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
		pager<span style="color: #339933;">:</span><span style="color: #3366CC;">'#nav'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//populate the bullet navigation</span>
		next<span style="color: #339933;">:</span><span style="color: #3366CC;">'#next-arrow'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//next arrow link</span>
		before<span style="color: #339933;">:</span>onBefore<span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//our onBefore callback</span>
		startingSlide<span style="color: #339933;">:</span>start <span style="color: #006600; font-style: italic;">//set the starting slide</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">function</span> onBefore<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//don't do if initial load</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content div:visible'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">size</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> img <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span>
			window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span>img.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>
			<span style="color: #006600; font-style: italic;">//Dynamically set window title. Not SEO friendly.</span>
			document.<span style="color: #660066;">title</span> <span style="color: #339933;">=</span> img.<span style="color: #660066;">alt</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">' | Ultimate jQuery Slider'</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content div:visible'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content #product_'</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">id</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//initial load</span>
	<span style="color: #003366; font-weight: bold;">var</span> img <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cycle img:eq('</span><span style="color: #339933;">+</span> start <span style="color: #339933;">+</span><span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span>img.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//set inital hash</span>
	<span style="color: #006600; font-style: italic;">//Dynamically set window title. Not SEO friendly.</span>
	document.<span style="color: #660066;">title</span> <span style="color: #339933;">=</span> img.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'alt'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">' | Ultimate jQuery Slider'</span><span style="color: #339933;">;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cycle'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">800</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#nav'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content div:eq('</span><span style="color: #339933;">+</span> start <span style="color: #339933;">+</span><span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#footer'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//next arrow fade</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#feature'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#next-arrow'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#next-arrow'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//next arrow hover</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#next-arrow'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'span'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'span'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//IE compatibility</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>jQuery.<span style="color: #660066;">support</span>.<span style="color: #660066;">opacity</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#next-arrow span'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>So what is happening here? Well let&#8217;s go through it step by step:</p>
<ul>
<li>First of all, if you haven&#8217;t already, download the <a href="http://malsup.com/jquery/cycle/">jQuery Cycle plugin</a> and include it in your HTML. I&#8217;m not going to explain here how this plugin works but the <a href="http://malsup.com/jquery/cycle/">jQuery Cycle</a> website has plenty of good documentation.</li>
<li>The first thing we are doing here is finding what the index of the starting slide should be. On our site we are using hashes as permalinks for the pages. Although this is very SEO un-friendly it does mean that people can link to specific pages (or slides) on the site.<br />
As for the code we are saying &#8220;if there is a hash and a corresponding content div (prefixed with product_), count the number of siblings after this one and subtract this from the total number of children to get the starting index&#8221;.</li>
<li>Next we are setting up the Cycle plugin. There are just default values for fading and time and setting timeout to zero to stop the slides automatically progressing. We also link up the #next-arrow and #nav elements that we made earlier. We also set our before callback so we can do things before the slides change.</li>
<li>Next we have the definition of our onBefore callback function. This function changes the window hash and title and handles the fading and sliding animation of the slide transitions.</li>
<li>Then we have some code which happens only when the page first loads. This is basically the same as the onBefore function but with some small differences to the animation (e.g. everything fades in at different times rather than sliding up and down).</li>
<li>The next bit of code makes the #next-arrow fade in only when you are hovering over the #feature div. Fairly simple. Note the use of opacity.</li>
<li>The next bit of code is what I talked about earlier that defines the fancy hover-fade effect for the #next-arrow. This is out of the scope of this article but again it is safe to say this is not required if you just used #next-arrow:hover in the CSS.</li>
<li>Finally we just have a small bit of compatibility code to make sure the #next-arrow span is hidden. As I discovered jQuery opacity seems to different from CSS opacity so this works even though it is only called on browsers that don&#8217;t support CSS opacity.</li>
</ul>
<p>And that is the javascript. I would read through this a couple of times as it is not a simple piece of javascript but hopefully it will all make sense eventually.</p>
<h3>Conclusion</h3>
<p>So there you have it. The Ultimate jQuery Slider. Please feel free to tell me what you think of this code and let me know if you find any bugs. I&#8217;d especially love to know if you use this code anywhere so don&#8217;t be shy and let me know.</p>
<p><a target="_blank" class="button blue" href="http://www.gilbertpellegrom.co.uk/tutorials/UltimatejQuerySlider/">View Demo</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=10" title="Ultimate jQuery Slider 1.0" class="button blue">Download Source</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=FuqpcySxB8o:sNFtGWWKEW8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=FuqpcySxB8o:sNFtGWWKEW8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=FuqpcySxB8o:sNFtGWWKEW8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=FuqpcySxB8o:sNFtGWWKEW8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=FuqpcySxB8o:sNFtGWWKEW8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=FuqpcySxB8o:sNFtGWWKEW8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=FuqpcySxB8o:sNFtGWWKEW8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/FuqpcySxB8o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/ultimate-jquery-slider/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/ultimate-jquery-slider/</feedburner:origLink></item>
		<item>
		<title>Wordpress Theme Framework Launch</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/KeicZqzeO14/</link>
		<comments>http://www.gilbertpellegrom.co.uk/wordpress-theme-framework-launch/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:23:13 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=457</guid>
		<description><![CDATA[I&#8217;ve been busy over the last wee while creating yet another helpful product. This time it&#8217;s to help Wordpress theme developers. It&#8217;s called the Wordpress Theme Framework (or WTF for short).

The first thing I should say is WTF is not a theme. It is a theme framework. It&#8217;s designed to easily add all the extra [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been busy over the last wee while creating yet another helpful product. This time it&#8217;s to help Wordpress theme developers. It&#8217;s called the <a href="http://wtf.dev7studios.com/">Wordpress Theme Framework</a> (or WTF for short).</p>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/10/wtf.png" alt="Wordpress Theme Framework" title="Wordpress Theme Framework" width="490" height="400" class="aligncenter size-full wp-image-458" /></p>
<p>The first thing I should say is WTF is <strong>not a theme</strong>. It is a theme <em>framework</em>. It&#8217;s designed to easily add all the extra theme functionality you get in all the latest themes without having to code it all by hand. I&#8217;m not going to say much more about it here other than go and <a href="http://wtf.dev7studios.com/">check it out</a>. Oh and let me know what you think.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=KeicZqzeO14:UMTmdyTk62w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=KeicZqzeO14:UMTmdyTk62w:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=KeicZqzeO14:UMTmdyTk62w:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=KeicZqzeO14:UMTmdyTk62w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=KeicZqzeO14:UMTmdyTk62w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=KeicZqzeO14:UMTmdyTk62w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=KeicZqzeO14:UMTmdyTk62w:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/KeicZqzeO14" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/wordpress-theme-framework-launch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/wordpress-theme-framework-launch/</feedburner:origLink></item>
		<item>
		<title>Help the Environment While Using Your PC – Blog Action Day 09</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/XdFRd_GicPs/</link>
		<comments>http://www.gilbertpellegrom.co.uk/help-the-environment-while-using-your-pc-blog-action-day-09/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 10:00:52 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=451</guid>
		<description><![CDATA[The theme for Blog Action Day 2009 is Climate Change. Although I don&#8217;t believe global warming is going to kill us all, I do believe that we should be looking after the world we live in. So in aid of trying to get the world to help out (as helping the environment is down to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blogactionday.org"><img src="http://www.blogactionday.org/imgs/badges/bad-125-125.jpg" border="0" class="alignright" /></a>The theme for <a href="http://www.blogactionday.org/">Blog Action Day 2009</a> is <strong>Climate Change</strong>. Although I don&#8217;t believe global warming is going to kill us all, I do believe that we should be looking after the world we live in. So in aid of trying to get the world to help out (as helping the environment is down to us as human beings) here are some things you could think about while using your PC:</p>
<ul>
<li>Head over to the <a href="http://www.blogactionday.org/">Blog Action Day</a> website, find out what is going on and, if you have a blog, join in.</li>
<li>Turn down your screen brightness and save some power.</li>
<li>If your going on holiday, un-plug your PC (and other devices) from the wall.</li>
<li>Don&#8217;t use sleep mode. Instead turn off your PC completely.</li>
<li>Use power saving settings on your PC (in Vista go to Control Panel &gt; Power Options and pick the &#8220;Power Saver&#8221; option).</li>
<li>If your building a PC, check what power is needed and try and limit the Watts in your power supply (ask yourself &#8220;do I really need a 900W PSU?&#8221;).</li>
<li>Do lot&#8217;s of printing? Check you carbon footprint with the <a href="http://www.hp.com/large/ipg/ecological-printing-solutions/carbon-footprint-calc.html">HP Carbon Footprint Calculator for printing</a>.</li>
<li>Just incase anyone is actually still using CRT monitors, don&#8217;t! LCD&#8217;s provide up to 70% power savings and up to twice the lifespan.</li>
<li>Turn off you PC and go for a walk. Get out and enjoy the environment. Don&#8217;t take it for granted.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=XdFRd_GicPs:5DqzM1BMPYg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=XdFRd_GicPs:5DqzM1BMPYg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=XdFRd_GicPs:5DqzM1BMPYg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=XdFRd_GicPs:5DqzM1BMPYg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=XdFRd_GicPs:5DqzM1BMPYg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=XdFRd_GicPs:5DqzM1BMPYg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=XdFRd_GicPs:5DqzM1BMPYg:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/XdFRd_GicPs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/help-the-environment-while-using-your-pc-blog-action-day-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/help-the-environment-while-using-your-pc-blog-action-day-09/</feedburner:origLink></item>
		<item>
		<title>Mini Profile – Free HTML/CSS Website Theme</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/-k2WLWhXrEs/</link>
		<comments>http://www.gilbertpellegrom.co.uk/mini-profile-free-htmlcss-website-theme/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 19:31:17 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[My Projects]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=448</guid>
		<description><![CDATA[I&#8217;m pleased to offer a free, simple HTML/CSS website template based on the popular website design by Tim Van Damme. Mini Profile is a stylish and flexible way to show people who you are, where they can find you and how you can be contacted. Mini Profile features the following:

jQuery Coda Slider functionality
3 different colour [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pleased to offer a free, simple HTML/CSS website template based on the popular website design by <a href="http://timvandamme.com/" target="_blank">Tim Van Damme</a>. Mini Profile is a stylish and flexible way to show people who you are, where they can find you and how you can be contacted. Mini Profile features the following:</p>
<ul>
<li>jQuery Coda Slider functionality</li>
<li>3 different colour schemes (easily extendable) including PSD’s</li>
<li>CSS3 Progressive Enhancement</li>
<li>Easy installation and maintenanace (only 1 HTML file)</li>
<li>Compatible with all major browsers</li>
<li>Full documentation</li>
<li>Makes use of the 960 grid system</li>
<li>Under 1mb of files</li>
</ul>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/10/MiniProfile.jpg" alt="Mini Profile Website Template" title="Mini Profile Website Template" width="480" height="422" class="aligncenter size-full wp-image-444" /></p>
<p><center><a target="_blank" href="http://demo.gilbertpellegrom.co.uk/miniprofile/" class="button blue">View Demo</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=8" title="Mini Profile Website Template" class="button blue">Download Now!</a></center></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-k2WLWhXrEs:eAP-jav-iPw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-k2WLWhXrEs:eAP-jav-iPw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-k2WLWhXrEs:eAP-jav-iPw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-k2WLWhXrEs:eAP-jav-iPw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-k2WLWhXrEs:eAP-jav-iPw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-k2WLWhXrEs:eAP-jav-iPw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-k2WLWhXrEs:eAP-jav-iPw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/-k2WLWhXrEs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/mini-profile-free-htmlcss-website-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/mini-profile-free-htmlcss-website-theme/</feedburner:origLink></item>
		<item>
		<title>dev7studios</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/Nn-2XC4aZn4/</link>
		<comments>http://www.gilbertpellegrom.co.uk/dev7studios/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 23:33:06 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=438</guid>
		<description><![CDATA[I&#8217;m pleased to announce the launch of my new portfolio website dev7studios. I hope you like the site and as always I would love any feedback people have of the site. It was very much an experiment of technical ability (a single page site with a lot of javascript) and an attempt at a re-brand [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pleased to announce the launch of my new portfolio website <a href="http://dev7studios.com/">dev7studios</a>. I hope you like the site and as always I would love any feedback people have of the site. It was very much an experiment of technical ability (a single page site with a lot of javascript) and an attempt at a re-brand (explained below).</p>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/10/dev7studios.jpg" alt="dev7studios" title="dev7studios" width="490" height="300" class="aligncenter size-full wp-image-439" /><br />
<span id="more-438"></span><br />
I seem to be going through a sort of reshuffle of structure when it comes to my website(s). Basically what&#8217;s happened is I have split up my <a href="http://about.gilbertpellegrom.co.uk/">personal about site</a>, <a href="http://dev7studios.com/">portfolio</a> and this blog in an attempt at re-branding myself and my work. So I now have a network of sites which represent the different parts of my online presence. I hope this makes it easier for people get an idea of <a href="http://about.gilbertpellegrom.co.uk/">who I am</a> while having a more <a href="http://dev7studios.com/">professional approach</a> to my work. This blog will still be the hub of my online activity where I hope to continue to publish web/software development/design posts and tutorials. </p>
<p>As always I am interested on your views of what I have done. Do you think this is a wise move? Has it been successful? Am I a total idiot? Let me know.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=Nn-2XC4aZn4:dno05fRzZeE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=Nn-2XC4aZn4:dno05fRzZeE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=Nn-2XC4aZn4:dno05fRzZeE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=Nn-2XC4aZn4:dno05fRzZeE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=Nn-2XC4aZn4:dno05fRzZeE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=Nn-2XC4aZn4:dno05fRzZeE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=Nn-2XC4aZn4:dno05fRzZeE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/Nn-2XC4aZn4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/dev7studios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/dev7studios/</feedburner:origLink></item>
		<item>
		<title>CSS3 Techniques You Should Use Today</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/L8VAP62ek-E/</link>
		<comments>http://www.gilbertpellegrom.co.uk/css3-techniques-you-should-use-today/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 14:26:37 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=410</guid>
		<description><![CDATA[Following the principles of progressive enhancement I am going to show you some CSS3 techniques which I have been using in my sites recently and which I would encourage you to start using as well. 
&#8220;But not all browsers support CSS3 techniques yet!&#8221; I hear you say. Yes this is true. However, these are techniques [...]]]></description>
			<content:encoded><![CDATA[<p>Following the principles of <a href="http://en.wikipedia.org/wiki/Progressive_enhancement">progressive enhancement</a> I am going to show you some CSS3 techniques which I have been using in my sites recently and which I would encourage you to start using as well. </p>
<p>&#8220;But not all browsers support CSS3 techniques yet!&#8221; I hear you say. Yes this is true. However, these are techniques which you should use only to <strong>enhance</strong> the experience for a user. They should not be fundamental for your web site/app to function. After all if we designers and developers don&#8217;t start to use them how will they ever get adopted in the mainstream.</p>
<p><center><a href="http://www.gilbertpellegrom.co.uk/tutorials/css3techniques/" class="button blue" target="_blank">View Demo</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=7" title="CSS3 Techniques 1" class="button blue">Download Source</a></center><br />
<span id="more-410"></span></p>
<h3>Rounded Corners</h3>
<p>Here is probably the most used technique of CSS3 so far and for good reason. It makes rounder corners of elements so much simpler than it used to be.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> 
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<h3>Text Shadow</h3>
<p>This is probably going to become one of the most over used CSS3 techniques but it is quite cool.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span></pre></div></div>

<h3>Opacity</h3>
<p>This is another really useful technique which isn&#8217;t too hard to replicate with png&#8217;s. This is simpler however.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">opacity<span style="color: #00AA00;">:</span> .7<span style="color: #00AA00;">;</span></pre></div></div>

<h3>Box Shadow</h3>
<p>Another cool one that makes adding shadows to objects super simple.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span></pre></div></div>

<h3>Font Face</h3>
<p>There are many javascript/flash way&#8217;s to achive this technique. However this is a simple unobtrusive way to add cool font&#8217;s to your sites.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
    <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'Rough'</span><span style="color: #00AA00;">;</span>
    src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'fonts/roughdraft.ttf'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
p<span style="color: #6666ff;">.font</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Rough<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>Conclusion</h3>
<p>All of the above techniques (excluding font-face) are used in this blog design. See how a few small tweaks can really add that extra pop to a design. Even if only a certain percentage of users can see them. Remember I encourage you to start using these techniques when you can <strong>but</strong> only to enhance the users experience. If your not sure when you can use them check out the <a href="http://en.wikipedia.org/wiki/Progressive_enhancement#Core_principles">core principles of progressive enhancement</a>.</p>
<p><center><a href="http://www.gilbertpellegrom.co.uk/tutorials/css3techniques/" class="button blue" target="_blank">View Demo</a> <a href="http://www.gilbertpellegrom.co.uk/wp-content/plugins/download-monitor/download.php?id=7" title="CSS3 Techniques 1" class="button blue">Download Source</a></center></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=L8VAP62ek-E:NXMPYwte5ZQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=L8VAP62ek-E:NXMPYwte5ZQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=L8VAP62ek-E:NXMPYwte5ZQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=L8VAP62ek-E:NXMPYwte5ZQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=L8VAP62ek-E:NXMPYwte5ZQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=L8VAP62ek-E:NXMPYwte5ZQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=L8VAP62ek-E:NXMPYwte5ZQ:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/L8VAP62ek-E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/css3-techniques-you-should-use-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/css3-techniques-you-should-use-today/</feedburner:origLink></item>
		<item>
		<title>Use more than one H1 tag per Page?</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/-ZAOwCP67dU/</link>
		<comments>http://www.gilbertpellegrom.co.uk/use-more-than-one-h1-tag-per-page/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 12:35:00 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=407</guid>
		<description><![CDATA[Here is a quick question for you. There seems to be some concern with my latest ThemeForest theme regarding the fact that the post heading tags are &#60;H1&#62;.
So the question is: Does having more than one &#60;H1&#62; tag per page on your site affect your page rank/SEO score?
]]></description>
			<content:encoded><![CDATA[<p>Here is a quick question for you. There seems to be some concern with my <a href="http://themeforest.net/item/luna-theme/58072?ref=gilbitron">latest ThemeForest theme</a> regarding the fact that the post heading tags are &lt;H1&gt;.</p>
<p>So the question is: Does having more than one &lt;H1&gt; tag per page on your site affect your page rank/SEO score?</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-ZAOwCP67dU:tXLUmy3yXgI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-ZAOwCP67dU:tXLUmy3yXgI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-ZAOwCP67dU:tXLUmy3yXgI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-ZAOwCP67dU:tXLUmy3yXgI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-ZAOwCP67dU:tXLUmy3yXgI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=-ZAOwCP67dU:tXLUmy3yXgI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=-ZAOwCP67dU:tXLUmy3yXgI:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/-ZAOwCP67dU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/use-more-than-one-h1-tag-per-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/use-more-than-one-h1-tag-per-page/</feedburner:origLink></item>
		<item>
		<title>Top Web Apps To Help You Track Your Time</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/RpXcmAGsUJE/</link>
		<comments>http://www.gilbertpellegrom.co.uk/top-web-apps-to-help-you-track-your-time/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 11:09:52 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=391</guid>
		<description><![CDATA[
If your a freelancer you know how important it can be to track your time. Let&#8217;s face it, keeping track of your time properly decides how much you get paid. So with this in mind lets look at some web apps that have been designed to help you take control of this important issue.

MakeSomeTime

MakeSomeTime is [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/stopwatch.jpg" alt="stopwatch" title="" width="490" height="150" class="aligncenter size-full wp-image-392" /></p>
<p>If your a freelancer you know how important it can be to track your time. Let&#8217;s face it, keeping track of your time properly decides how much you get paid. So with this in mind lets look at some web apps that have been designed to help you take control of this important issue.<br />
<span id="more-391"></span></p>
<h3>MakeSomeTime</h3>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/ttwe1.jpg" alt="MakeSomeTime" title="MakeSomeTime" width="490" height="200" class="alignleft size-full wp-image-393" /></p>
<p>MakeSomeTime is a free service that focuses on having a super simple interface so that you don&#8217;t have to fuss with anything else. Just keep track of your time and keep your times organized.<br />
<a href="http://makesometime.com/" class="button blue" target="_blank">Visit Site</a></p>
<h3>Subernova</h3>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/ttwe2.jpg" alt="Subernova" title="Subernova" width="490" height="200" class="alignleft size-full wp-image-396" /></p>
<p>Subernova is a fully fledged project management app with iPhone and Air apps. It does a lot of things with a nice looking interface but it also lets you time your tasks.<br />
<a href="http://www.subernova.com/" class="button blue" target="_blank">Visit Site</a></p>
<h3>Basecamp</h3>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/ttwe3.jpg" alt="Basecamp" title="Basecamp" width="490" height="200" class="alignleft size-full wp-image-399" /></p>
<p>Basecamp is another fully fledged project management app with loads of features and is considered an industry leader. It also lets you track your time but without an actual timer (you can only assign time to tasks). Understandably Basecamp is not free but it has a 30 day free trial.<br />
<a href="http://basecamphq.com/" class="button blue" target="_blank">Visit Site</a></p>
<h3>Toggl</h3>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/ttwe4.jpg" alt="Toggl" title="Toggl" width="490" height="200" class="alignleft size-full wp-image-400" /></p>
<p>Toggl is a time tracking app with cross platform desktop apps and focuses on team based project time tracking. Toggle has a free plan for 20 users but has several paid plans available.<br />
<a href="http://www.toggl.com/" class="button blue" target="_blank">Visit Site</a></p>
<h3>Paymo</h3>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/ttwe5.jpg" alt="Paymo" title="Paymo" width="490" height="200" class="alignleft size-full wp-image-402" /></p>
<p>Paymo is a time tracking app with a nice interface and quite a few features. It has a free plan for up to 3 users or $3.99/user/month plan as well as an invoicing add-on for $10/month.<br />
<a href="http://paymo.biz/" class="button blue" target="_blank">Visit Site</a></p>
<h3>Over to You</h3>
<p>If you have any experience of any of these apps or you know of any that I have missed then please let me know.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=RpXcmAGsUJE:F8A27Wz8Beo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=RpXcmAGsUJE:F8A27Wz8Beo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=RpXcmAGsUJE:F8A27Wz8Beo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=RpXcmAGsUJE:F8A27Wz8Beo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=RpXcmAGsUJE:F8A27Wz8Beo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=RpXcmAGsUJE:F8A27Wz8Beo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=RpXcmAGsUJE:F8A27Wz8Beo:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/RpXcmAGsUJE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/top-web-apps-to-help-you-track-your-time/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/top-web-apps-to-help-you-track-your-time/</feedburner:origLink></item>
		<item>
		<title>My New About Page</title>
		<link>http://feedproxy.google.com/~r/Gilbitron/~3/JnbW400wfv8/</link>
		<comments>http://www.gilbertpellegrom.co.uk/my-new-about-page/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 10:27:18 +0000</pubDate>
		<dc:creator>Gilbert</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.gilbertpellegrom.co.uk/?p=386</guid>
		<description><![CDATA[For a while now I have been wanting to do my own version of Tim Van Damme&#8217;s personal information site. From the moment I saw it I thought it was very cool and there have been some great revisions from other designers (as well as some bad ones). So this was my attempt at a [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now I have been wanting to do my own version of <a href="http://timvandamme.com/">Tim Van Damme&#8217;s</a> personal information site. From the moment I saw it I thought it was very cool and there have been some <a href="http://timvandamme.com/wall-of-fame">great revisions</a> from <a href="http://rogieking.com/">other designers</a> (as well as some <a href="http://timvandamme.com/wall-of-shame">bad ones</a>). So this was my attempt at a <a href="http://about.gilbertpellegrom.co.uk/">new about page</a>.</p>
<p><img src="http://www.gilbertpellegrom.co.uk/wp-content/uploads/2009/09/AboutGilbert.jpg" alt="About Gilbert Pellegrom" title="About Gilbert Pellegrom" width="490" height="417" class="aligncenter size-full wp-image-387" /></p>
<p>There is quite a mix of cool jQuery and quirky CSS techniques used in there. One of the things I&#8217;m most impressed with is that the site works in every browser (yes even including IE6) and even the fading animations work. So head on over and <a href="http://about.gilbertpellegrom.co.uk/">check it out</a> and let me know what you think.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Gilbitron?a=JnbW400wfv8:X_kt6baUCjE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Gilbitron?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=JnbW400wfv8:X_kt6baUCjE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=JnbW400wfv8:X_kt6baUCjE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=JnbW400wfv8:X_kt6baUCjE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=JnbW400wfv8:X_kt6baUCjE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Gilbitron?a=JnbW400wfv8:X_kt6baUCjE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Gilbitron?i=JnbW400wfv8:X_kt6baUCjE:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Gilbitron/~4/JnbW400wfv8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.gilbertpellegrom.co.uk/my-new-about-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.gilbertpellegrom.co.uk/my-new-about-page/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 2.199 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-11-11 20:16:43 -->
