<?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>Ashley Ford - Tutorials :: jQuery :: PHP :: CSS :: HTML5 :: Papermashup.com &#187; Design</title>
	<atom:link href="http://papermashup.com/category/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com</link>
	<description>Ashley Ford - Tutorials :: jQuery :: PHP :: CSS :: HTML5 :: Papermashup.com</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:28:50 +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>jQuery Fancy Switch</title>
		<link>http://papermashup.com/jquery-fancy-switch/</link>
		<comments>http://papermashup.com/jquery-fancy-switch/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 23:24:39 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Downloads]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2489</guid>
		<description><![CDATA[I wrote a post a while back on coding an iPhone style switch using jQuery. I&#8217;ve now put together a simple tutorial demonstrating how simple it is to build a switch that triggers two radio buttons in a field set. &#8230; <br/> <a href="http://papermashup.com/jquery-fancy-switch/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I wrote a post a while back on coding an <a href="http://papermashup.com/jquery-iphone-style-ajax-switch/" target="_blank">iPhone style switch</a> using jQuery. I&#8217;ve now put together a simple tutorial demonstrating how simple it is to build a switch that triggers two radio buttons in a field set. It also degrades gracefully if JavaScript is disabled just displaying the two radio buttons with labels. This tutorial is aimed at users just stepping on the jQuery ladder, and hopefully this will demonstrate how simple some techniques are. The design of the switch was done by <a href="http://dribbble.com/shots/166165-Web-Elements" target="_blank">Shegy</a> and you can download the full set of switch designs as a PSD <a href="http://www.psdchest.com/2011/05/09/web-elements/" target="_blank">here</a></p>
<h3>The Code</h3>
<p>Lets run through line by line the JavaScript. The first three lines after the DOM ready function are setup incase the user has JavaScript disabled. So if enabled we display the switch background image and hide the radio buttons as well as indent the text on the labels.</p>
<p>We&#8217;ve then setup a &#8216;change()&#8217; function which means the function is executed each time the user selects either checkbox, we then check the value of the radio button thats been selected and adjust the background position of the sprite image.</p>
<p>Lastly for demo purposes im just displaying the status of the radio buttons in the div with the class &#8216;result&#8217;</p>
<pre class="brush: jscript; title: ;">

$(document).ready(function(){

	$('.switch').css('background', 'url(&quot;switch.png&quot;)');
	$('.on_off').css('display','none');
	$('.on, .off').css('text-indent','-10000px');

    $(&quot;input[name=on_off]&quot;).change(function() {
      var button = $(this).val();

		if(button == 'off'){ $('.switch').css('background-position', 'right'); }
		if(button == 'on'){ $('.switch').css('background-position', 'left'); }	 

		 $('.result span').html(button);
		 $('.result').fadeIn();

   });

});
</pre>
<h3>The HTML</h3>
<p>Here we have a simple form with the two radio buttons in a fieldset.</p>
<pre class="brush: xml; title: ;">

&lt;form action=&quot;&quot; method=&quot;get&quot;&gt;

&lt;fieldset class=&quot;switch&quot;&gt;
    &lt;label class=&quot;off&quot;&gt;Off&lt;input type=&quot;radio&quot; class=&quot;on_off&quot; name=&quot;on_off&quot; value=&quot;off&quot;/&gt;&lt;/label&gt;
    &lt;label class=&quot;on&quot;&gt;On&lt;input type=&quot;radio&quot; class=&quot;on_off&quot; name=&quot;on_off&quot; value=&quot;on&quot;/&gt;&lt;/label&gt;
&lt;/fieldset&gt;

&lt;input type=&quot;submit&quot; value=&quot;Submit&quot;/&gt;

&lt;/form&gt;

&lt;div class=&quot;result&quot;&gt;The button is: &lt;span&gt;on&lt;/span&gt;&lt;/div&gt;
</pre>
<h3>The CSS</h3>
<pre class="brush: css; title: ;">

#container{background:#ebebeb;}

.switch{
	border:none;
	background:left no-repeat;
	width:105px;
	height:46px;
	padding:0;
	margin:0;
}

.on, .off{
	width:50px;
	height:40px;
	display:inline-block;
	cursor:pointer;
}

.result{display:none;}
</pre>
<p><a href="http://papermashup.com/demos/jquery-switch/"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" title="demo" class="alignnone size-full wp-image-23" /></a><a href="http://papermashup.com/demos/jquery-switch/jquery-switch.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="download" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/jquery-fancy-switch/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Build a simple animated progress bar with tooltip</title>
		<link>http://papermashup.com/build-a-simple-animated-progress-bar-with-tooltip/</link>
		<comments>http://papermashup.com/build-a-simple-animated-progress-bar-with-tooltip/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 21:47:37 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2381</guid>
		<description><![CDATA[Here&#8217;s a very basic example of how to code up an animated progress bar with tooltip using the Tipsy tooltip plugin. First I started out in Photoshop and designed the basic progress bar, you can download the PSD file for &#8230; <br/> <a href="http://papermashup.com/build-a-simple-animated-progress-bar-with-tooltip/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a very basic example of how to code up an animated progress bar with tooltip using the <a href="http://onehackoranother.com/projects/jquery/tipsy/" target="_blank">Tipsy tooltip plugin</a>. First I started out in Photoshop and designed the basic progress bar, you can download the PSD file for the progress bar in the download file.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2011/08/progress_psd.jpg" alt="" title="progress_psd" width="583" height="320" class="alignnone size-full wp-image-2384" /></p>
<h3>The Code</h3>
<p>Below we have the two lines of code which read the attribute &#8216;title&#8217; and animate the progress bar. We then activate the tooltip plugin using the <a href="http://onehackoranother.com/projects/jquery/tipsy/" target="_blank">tipsy plugin</a>.</p>
<pre class="brush: jscript; title: ;">

$(&quot;document&quot;).ready(function (){ 

// animate the progress bar onload
var percent = $('.progress_bar').attr('title');
$('.progress_bar').animate({width: percent},1000);

// activate tooltip
	 $('.tip').tipsy({gravity: 's',fade: true});

});
</pre>
<h3>The HTML</h3>
<p>Very simple. Just one line of code with two div elements. Both the tooltip and the animation javascript read the &#8216;title&#8217; attribute.</p>
<pre class="brush: xml; title: ;">

&lt;div class=&quot;progress_container&quot;&gt;&lt;div class=&quot;progress_bar tip&quot; title=&quot;78%&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</pre>
<h3>The CSS</h3>
<pre class="brush: css; title: ;">

body{
	padding:50px;
	font-size:11px;
	font-family:Arial, Helvetica, sans-serif;}

.progress_container{
	padding:1px;
	width:195px;
	height:9px;
	overflow:hidden;
	background:url(progress_container.png);
	}

.progress_bar{
	height:9px;
	width:0px;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	background:url(progress_bar.png);
	}

/*-----------------------------------------------------------------------------------*/
/*Tipsy Tooltip style
/*-----------------------------------------------------------------------------------*/  

  .tipsy { padding: 5px; font-size: 11px; position: absolute; z-index: 100000; }
  .tipsy-inner { padding: 6px 8px 6px 8px; background-color: black; color: white; max-width: 200px; text-align: center; }
  .tipsy-inner { border-radius: 3px; -moz-border-radius:3px; -webkit-border-radius:3px; }
  .tipsy-arrow { position: absolute; background: url('tipsy.gif') no-repeat top left; width: 9px; height: 5px; }
  .tipsy-n .tipsy-arrow { top: 0; left: 50%; margin-left: -4px; }
  .tipsy-nw .tipsy-arrow { top: 0; left: 10px; }
  .tipsy-ne .tipsy-arrow { top: 0; right: 10px; }
  .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -4px; background-position: bottom left; }
  .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; background-position: bottom left; }
  .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; background-position: bottom left; }
  .tipsy-e .tipsy-arrow { top: 50%; margin-top: -4px; right: 0; width: 5px; height: 9px; background-position: top right; }
  .tipsy-w .tipsy-arrow { top: 50%; margin-top: -4px; left: 0; width: 5px; height: 9px; }	
</pre>
<h3>The result</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2011/08/progress1.jpg" alt="" title="progress" width="583" height="209" class="alignnone size-full wp-image-2389" /></p>
<blockquote><p>It&#8217;s worth noting that this technique is only compatible with Firefox and Chrome browsers, and those that allow the border-radius  css class.</p></blockquote>
<p><a href="http://papermashup.com/demos/jquery-progress-bar/"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" title="demo" class="alignnone size-full wp-image-23" /></a> <a href="http://papermashup.com/demos/jquery-progress-bar/jquery-progress-bar.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="download" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/build-a-simple-animated-progress-bar-with-tooltip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery UI Slider</title>
		<link>http://papermashup.com/jquery-ui-slider/</link>
		<comments>http://papermashup.com/jquery-ui-slider/#comments</comments>
		<pubDate>Thu, 19 May 2011 17:03:56 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2309</guid>
		<description><![CDATA[I&#8217;ve been hugely inspired recently by the design work of Orman Clark from Premiumpixels.com and his generous selection of top quality PSD downloads. after seeing this beautiful design of a button and slider set I was eager to code up &#8230; <br/> <a href="http://papermashup.com/jquery-ui-slider/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been hugely inspired recently by the design work of <a href="http://twitter.com/ormanclark">Orman Clark</a> from <a href="http://premiumpixels.com">Premiumpixels.com</a> and his generous selection of top quality PSD downloads. after seeing this beautiful <a href="http://www.premiumpixels.com/freebies/slider-interface-metal-handle-psd/">design of a button and slider</a> set I was eager to code up a working version using jQuery UI. You can grab the <a href="http://www.premiumpixels.com/freebies/slider-interface-metal-handle-psd/">PSD for the design here</a> along with tons of awesome resources.</p>
<h3>The Code</h3>
<p>Most of the code is CSS for this one so lets start here</p>
<pre class="brush: css; title: ;">

body{
background:url(bg.jpg)!important;
padding:100px 50px 0px 50px;
}

/*the slider background*/
.slider {
width:230px;
height:11px;
background:url(slider-bg.png);
position:relative;
margin:0;
padding:0 10px;
}

/*Style for the slider button*/
.ui-slider-handle {
width:24px;
height:24px;
position:absolute;
top:-7px;
margin-left:-12px;
z-index:200;
background:url(slider-button.png);
}

/*Result div where the slider value is displayed*/
#slider-result {
font-size:50px;
height:200px;
font-family:Arial, Helvetica, sans-serif;
color:#fff;
width:250px;
text-align:center;
text-shadow:0 1px 1px #000;
font-weight:700;
padding:20px 0;
}

/*This is the fill bar colour*/
.ui-widget-header {
background:url(fill.png) no-repeat left;
height:8px;
left:1px;
top:1px;
position:absolute;
}

a {
outline:none;
-moz-outline-style:none;
}
</pre>
<h3>The JavaScript</h3>
<p>Using jQuery UI is pretty painless. It&#8217;s very easy to setup you simply add a holder div for your slider, in this case we&#8217;re specifying the div with the class &#8216;.slider&#8217; we then call the slider() method passing the in some values.</p>
<pre class="brush: jscript; title: ;">
 $( &quot;.slider&quot; ).slider({
	        animate: true,
                range: &quot;min&quot;,
                value: 50,
                min: 10,
                max: 100,
				step: 10,

				//this gets a live reading of the value and prints it on the page
                slide: function( event, ui ) {
                    $( &quot;#slider-result&quot; ).html( ui.value );
                },

				//this updates the hidden form field so we can submit the data using a form
                change: function(event, ui) {
                $('#hidden').attr('value', ui.value);
                }

				});
</pre>
<h3>The HTML</h3>
<p>Pretty simple snippet of HTML&#8230;</p>
<pre class="brush: xml; title: ;">
       &lt;div class=&quot;slider&quot;&gt;&lt;/div&gt;
        &lt;div id=&quot;slider-result&quot;&gt;50&lt;/div&gt;
  	&lt;input type=&quot;hidden&quot; id=&quot;hidden&quot;/&gt;
</pre>
<p><a href="http://papermashup.com/demos/jquery-slider-bar/"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" title="demo" class="alignnone size-full wp-image-23" /></a><a href="http://papermashup.com/demos/jquery-slider-bar/jquery-slider-bar.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="download" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/jquery-ui-slider/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Automatically pull in user Gravatar images</title>
		<link>http://papermashup.com/automatically-pull-in-user-gravatar-images/</link>
		<comments>http://papermashup.com/automatically-pull-in-user-gravatar-images/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 17:30:32 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2191</guid>
		<description><![CDATA[I was browsing forrst.com and saw a pretty interesting code snippet from Chris Coyier from CSS-Tricks which is pretty useful for WordPress users and allows the gravatar of a commenter to be dynamically pulled into the comment box as soon &#8230; <br/> <a href="http://papermashup.com/automatically-pull-in-user-gravatar-images/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I was browsing <a href="http://forrst.com">forrst.com</a> and saw a pretty interesting code snippet from Chris Coyier from <a href="http://css-tricks.com/">CSS-Tricks</a> which is pretty useful for WordPress users and allows the gravatar of a commenter to be dynamically pulled into the comment box as soon as the user has clicked out of the email input field.</p>
<h3>The Code</h3>
<p>This code snippet is pretty easy to grasp. We&#8217;re simple replacing the background image of the div #avatar each time the user clicks out of the email input field. you&#8217;ll notice that we&#8217;re also calling the function MD5(). This is because Gravatar uses your email address encoded into an MD5 hash as an id to pull your avatar. You also need to include the function MD5() which is available in the Download.</p>
<pre class="brush: jscript; title: ;">

$(document).ready(function(){

var email = $(&quot;#email&quot;),
avatar = $(&quot;#avatar&quot;);

email.blur(function() {
avatar.css(&quot;background-image&quot;,&quot;url(http://www.gravatar.com/avatar/&quot; + MD5(email.val()) + &quot;)&quot;);

});

});
</pre>
<h3>The HTML</h3>
<pre class="brush: xml; title: ;">
&lt;div id=&quot;avatar&quot;&gt;&lt;img src=&quot;thumb.png&quot; width=&quot;80&quot; height=&quot;80&quot;/&gt;&lt;/div&gt;

&lt;form class=&quot;gravatar&quot;&gt;
&lt;input type=&quot;text&quot; onFocus=&quot;if(this.value=='Email Address') this.value='';&quot; onBlur=&quot;if(this.value=='') this.value='Email Address';&quot; value=&quot;Email Address&quot; name=&quot;s&quot; id=&quot;email&quot; /&gt;
&lt;/form&gt;
</pre>
<p><a href="http://papermashup.com/demos/gravatar-image/"><img class="alignnone size-full wp-image-23" title="demo" src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" /></a><a href="http://papermashup.com/demos/gravatar-image/gravatar-image.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="download" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/automatically-pull-in-user-gravatar-images/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimise your site for mobile devices</title>
		<link>http://papermashup.com/optimise-your-site-for-mobile-devices/</link>
		<comments>http://papermashup.com/optimise-your-site-for-mobile-devices/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 18:15:56 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2141</guid>
		<description><![CDATA[With the advent of smart phones and more powerful handheld devices like the iPad are your mobile users having the best experience? The mobile arena introduces a layer of complexity that can be difficult for designers and developers to accommodate. &#8230; <br/> <a href="http://papermashup.com/optimise-your-site-for-mobile-devices/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>With the advent of smart phones and more powerful handheld devices like the iPad are your mobile users having the best experience?  The mobile arena introduces a layer of complexity that can be difficult for designers and developers to accommodate. Mobile development is more than cross-browser, it should be cross-platform.</p>
<h3>Add a Mobile Stylesheet</h3>
<p>In the code below we&#8217;ve included two stylesheets, the first main.css targets desktop computers and laptops using the &#8216;screen&#8217; media type, while the second mobile.css targets mobile devices. While this would otherwise be an excellent approach, device support is another issue. Older mobile devices tend to support the handheld media type, however they vary in their implementation: some disable the screen stylesheets and only load handheld, whereas others load both.</p>
<pre class="brush: css; title: ;">
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot; media=&quot;screen&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;mobile.css&quot; media=&quot;handheld&quot; /&gt;
</pre>
<h3>Make phone numbers clickable</h3>
<p>It&#8217;s easy to make phone numbers clickable, just like we can use &#8216;mailto:&#8217; to link email addresses through (although this isn&#8217;t advised due to email harvesting) we can add  &#8216;tel:&#8217; followed by the number as shown below. </p>
<pre class="brush: css; title: ;">
&lt;a href=&quot;tel:+44203948578&quot; class=&quot;phone-link&quot;&gt;(+44) 203 94 8578&lt;/a&gt;
</pre>
<h3>Make filling in forms easier</h3>
<p>HTML5 input types allows us to make it easier for users to fill in forms by providing the correct keyboard configuration. this can be achieved by changing the input type to either &#8216;email&#8217; or &#8216;tel&#8217;.</p>
<pre class="brush: css; title: ;">
&lt;input type=&quot;email&quot; name=&quot;email&quot; /&gt;
&lt;input type=&quot;tel&quot; name=&quot;telephone&quot;/&gt;
</pre>
<h3>Take if a step further with JavaScript and jQuery</h3>
<p>jQuery just released the <a href="http://jquerymobile.com/">mobile version</a> of its popular framework that allows you to use Its lightweight code is built with progressive enhancement, which also has a flexible, easily themeable design.</p>
<blockquote><p>jQuery mobile framework takes the &#8220;write less, do more&#8221; mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework will allow you to design a single highly branded and customized web application that will work on all popular smartphone and tablet platforms.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/optimise-your-site-for-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>5 tips to designing better landing pages</title>
		<link>http://papermashup.com/5-tips-to-designing-better-landing-pages/</link>
		<comments>http://papermashup.com/5-tips-to-designing-better-landing-pages/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 12:34:35 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[landing pages]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2096</guid>
		<description><![CDATA[Marketing your site to the right audience and getting your core message across is crucial in order to sell your product or service. There is no single formula to achieve this, only different strategies and tests will lead to a &#8230; <br/> <a href="http://papermashup.com/5-tips-to-designing-better-landing-pages/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Marketing your site to the right audience and getting your core message across is crucial in order to sell your product or service. There is no single formula to achieve this, only different strategies and tests will lead to a landing page that suits your products needs.</p>
<h3>1. Call to action</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2010/10/call-to-actions.jpg" alt="" title="call-to-actions" width="583" height="294" class="alignnone size-full wp-image-2100" /></p>
<p>Users will click on a call to action buttons because they expect to see information that a button says the next page would provide. If your users don&#8217;t quickly recognise the content on the corresponding landing page, they will leave. Therefore, make sure that whatever message your CTA button promotes is the focus of the landing page.</p>
<h3>2. Make forms easy to use</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2010/10/form.jpg" alt="" title="form" width="583" height="340" class="alignnone size-full wp-image-2099" /></p>
<p>Providing the least amount of hoops to jump through for a user means your conversions will be higher. Users hate forms and complicated user flows. if you&#8217;re landing page is designed to push users to signup to your site make the process easy with the least amount of required fields, and keep the form above the page fold to maxamise its exposure.</p>
<h3>3. Clear Messaging</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2010/10/mailchimp.png" alt="mailchimp - Keep it simple and to the point" title="mailchimp - Keep it simple and to the point" width="583" height="281" class="alignnone size-full wp-image-2097" /></p>
<p>You have one shot at convincing a user to buy your product or service. If you&#8217;re offering something free then make it clear what the benefits of signing up are. Make sure that your marketing campaign has continuity when it comes to design and messaging. As a user you don&#8217;t want to click a banner and be greeted by a page that bears no relevance to the message you&#8217;ve just seen</p>
<h3>4. Give a little extra</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2010/10/giveaways.jpg" alt="" title="giveaways" width="583" height="294" class="alignnone size-full wp-image-2107" /></p>
<p>Everyone loves a free lunch. Add value to your product by giving a little more away. Even the opportunity to win a t-shirt is enough to get users interested in your product.</p>
<h3>5. Engage your audience</h3>
<p><img src="http://papermashup.com/wp-content/uploads/2010/10/video.jpg" alt="" title="video" width="583" height="294" class="alignnone size-full wp-image-2109" /></p>
<p>The use of online video viewership, by both businesses and consumers, is at an all time high. The average person watches 180 videos online each month. These are statistics just can&#8217;t be ignored. Video is a great medium to engage your audience and simple informative content can work wonders to drive conversions.</p>
<p>Check out the <a href="http://www.mailchimp.com/v5-3/">Mailchimp landing page</a> to promote their free product as well as their <a href="http://www.mailchimp.com/v5-2/">social tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/5-tips-to-designing-better-landing-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery form titles</title>
		<link>http://papermashup.com/jquery-form-titles/</link>
		<comments>http://papermashup.com/jquery-form-titles/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 09:10:14 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[forms]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1986</guid>
		<description><![CDATA[I thought I&#8217;d share a little technique that I occasionally use when coding forms with a limited amount of space. It&#8217;s a simple effect that allows you to contain the form input or textarea title within the form allowing the &#8230; <br/> <a href="http://papermashup.com/jquery-form-titles/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d share a little technique that I occasionally use when coding forms with a limited amount of space. It&#8217;s a simple effect that allows you to  contain the form input or textarea title within the form allowing the user to click inside the form input to remove it. You often see this used on search fields</p>
<h3>The JavaScript</h3>
<p>firstly we assign a class of &#8216;form-field&#8217; as well as adding the attribute &#8216;defaultVal&#8217; with the text that we want to display in our input field.</p>
<p>The code below simply adjusts the input value attribute depending on if the user click in the field and types text so we have a state of change for &#8216;focus&#8217; and &#8216;blur&#8217;.</p>
<pre class="brush: jscript; title: ;">
$(document).ready(function(){

  $('.form-field').each( function () {
    $(this).val($(this).attr('defaultVal'));
    $(this).css({color:'#ccc'});
      });

  $('.form-field').focus(function(){
    if ( $(this).val() == $(this).attr('defaultVal') ){
      $(this).val('');
      $(this).css({color:'#000'});
    }
    });
  $('.form-field').blur(function(){
    if ($(this).val() == '' ){
      $(this).val($(this).attr('defaultVal'));
      $(this).css({color:'#ccc'});
    }
    });

});
</pre>
<h3>The HTML</h3>
<pre class="brush: xml; title: ;">
 &lt;form method=&quot;post&quot; action=&quot;&quot;&gt;

	    &lt;input type=&quot;text&quot; class=&quot;form-field&quot; name=&quot;Name&quot; defaultVal=&quot;Name&quot; value=&quot;&quot; /&gt;
            &lt;input type=&quot;text&quot; class=&quot;form-field&quot; name=&quot;Phone&quot; defaultVal=&quot;Phone Number&quot; value=&quot;&quot; /&gt;
            &lt;input type=&quot;text&quot; class=&quot;form-field&quot; name=&quot;Email&quot; defaultVal=&quot;Email address&quot; value=&quot;&quot; /&gt;
            &lt;input type=&quot;text&quot; class=&quot;form-field&quot; name=&quot;Url&quot; defaultVal=&quot;Site URL&quot; value=&quot;&quot; /&gt;

	&lt;/form&gt;
</pre>
<p><a href="http://papermashup.com/demos/jquery-form-titles/"><img class="alignnone size-full wp-image-23" title="demo" src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/jquery-form-titles/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Using Cufon font replacement</title>
		<link>http://papermashup.com/using-cufon-font-replacement/</link>
		<comments>http://papermashup.com/using-cufon-font-replacement/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 17:26:42 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cufon]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1974</guid>
		<description><![CDATA[I&#8217;d never used Cufon font replacement until a few weeks ago when I was sifting through some code that another designer had written and noticed that he was using Cufon. Not that many people seem to know about Cufon though. &#8230; <br/> <a href="http://papermashup.com/using-cufon-font-replacement/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d never used Cufon font replacement until a few weeks ago when I was sifting through some code that another designer had written and noticed that he was using Cufon. Not that many people seem to know about Cufon though. Cufon uses a blend of font generator tools and JavaScript to create a custom font renderer in canvas and VML. Here&#8217;s how to use Cufon to render the Junction font for all your headers.</p>
<p><img class="alignnone size-full wp-image-1977" title="cufon" src="http://papermashup.com/wp-content/uploads/2010/07/cufon.jpg" alt="" width="583" height="213" /></p>
<h3>Generate the font</h3>
<p>first of all you&#8217;ll need to head here and convert your font ready for cufon. There are plenty of options to adjust how the font renders, you can include different fonts for weights as well as italic etc.</p>
<h3>Include the JavaScript</h3>
<p>Once you have your font converted in the Cufon format you&#8217;ll need to include the Cufon JavaScript file which you can find <a href="http://cufon.shoqolate.com/js/cufon-yui.js">here</a> as well as the font file that you converted above.</p>
<pre class="brush: jscript; title: ;">
&lt;script type=&quot;text/javascript&quot; src=&quot;cufon.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;junction_400.font.js&quot;&gt;&lt;/script&gt;
</pre>
<h3>Specify your elements</h3>
<pre class="brush: jscript; title: ;">
	Cufon.replace('h1, h2, h3', { fontFamily: 'Junction' });
</pre>
<p><a href="http://papermashup.com/demos/cufon-fonts/"><img class="alignnone size-full wp-image-23" title="demo" src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/using-cufon-font-replacement/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Building an animated 3D poll</title>
		<link>http://papermashup.com/building-an-animated-3d-poll/</link>
		<comments>http://papermashup.com/building-an-animated-3d-poll/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 13:11:22 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[poll]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1939</guid>
		<description><![CDATA[Regular readers of Papermashup will have seen the post that I wrote last week on Easy Poll, the personal project that I launched a few weeks back that allows you to create a simple 2 answer poll that you can &#8230; <br/> <a href="http://papermashup.com/building-an-animated-3d-poll/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>Regular readers of Papermashup will have seen the post that I wrote last week on <a href="http://easypoll.papermashup.com">Easy Poll</a>, the personal project that I launched a few weeks back that allows you to create a simple 2 answer poll that you can share and gather feedback on. You can <a href="http://papermashup.com/easypoll-a-side-project/">read the post</a> about it and check out <a href="http://easypoll.papermashup.com/">easypoll.papermashup here</a> I&#8217;d love to hear your feedback.</p>
<p>I thought i&#8217;d cover how to create a 3d animated poll using jQuery and CSS similar to the polls page on Easy Poll.</p>
<h3>The Code</h3>
<p>I don&#8217;t usually do this but here&#8217;s the complete code snippet so you can see the JavaScript CSS and HTML all in one space. most of the configuration is achieved thought the CSS but you&#8217;ll notice that on page load the bars animate to the correct height using the jQuery animate function which we&#8217;re passing a percentage height into.</p>
<p><img class="alignnone size-full wp-image-1946" title="poll" src="http://papermashup.com/wp-content/uploads/2010/06/poll.jpg" alt="" width="582" height="217" /></p>
<pre class="brush: xml; title: ;">

&lt;head&gt;
&lt;style&gt;
.rating {
float:left;
width:180px;
background-image:url(images/poll-bottom.png);
background-position:bottom left;
background-repeat:no-repeat;
padding-bottom:40px;
}

.graph {
float:left;
margin-top:10px;
position:relative;
height:380px;
padding:0;
}

.graph .bar1, .graph .bar2, .graph .bar3{
display:block;
position:absolute;
background-image:url(images/poll-body.png);
background-position:top left;
color:#fff;
width:159px;
min-height:70px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
line-height:1.9em;
bottom:0;
}

.graph .bar1 span, .graph .bar2 span,  .graph .bar3 span  {
position:absolute;
left:50px;
top:20px;
font-size:33px;
color:#333;
text-shadow:0 1px #fff;
}

&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

  $(document).ready(function(){

  $('.bar1').animate({'height':'22%'},500);
  $('.bar2').animate({'height':'58%'},1000);
  $('.bar3').animate({'height':'88%'},1500);

  });

&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;div class=&quot;polls&quot;&gt;

        &lt;div class=&quot;rating&quot;&gt;
            	&lt;div class=&quot;graph&quot;&gt;
                	&lt;strong class=&quot;bar1&quot;&gt;
                    &lt;span&gt;22%&lt;/span&gt;
                    &lt;/strong&gt;
                &lt;/div&gt;
			&lt;div class=&quot;ans&quot;&gt;Answer 1&lt;/div&gt;
	    &lt;/div&gt;

	     &lt;div class=&quot;rating&quot;&gt;
            	&lt;div class=&quot;graph&quot;&gt;
                	&lt;strong class=&quot;bar2&quot;&gt;
                    &lt;span&gt;58%&lt;/span&gt;
                    &lt;/strong&gt;
                &lt;/div&gt;

		   &lt;div class=&quot;ans&quot;&gt;Answer 2&lt;/div&gt;
	    &lt;/div&gt;

            &lt;div class=&quot;rating&quot;&gt;
            	&lt;div class=&quot;graph&quot;&gt;
                	&lt;strong class=&quot;bar3&quot;&gt;
                    &lt;span&gt;88%&lt;/span&gt;
                    &lt;/strong&gt;
                &lt;/div&gt;

		   &lt;div class=&quot;ans&quot;&gt;Answer 3&lt;/div&gt;
	    &lt;/div&gt;

        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;
</pre>
<p><a href="http://papermashup.com/demos/3d-poll/"><img class="alignnone size-full wp-image-23" title="demo" src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" /></a><a href="http://papermashup.com/demos/3d-poll/3d-poll.zip"><img class="alignnone size-full wp-image-24" title="download" src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/building-an-animated-3d-poll/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Build a jQuery content feature like MailChimp</title>
		<link>http://papermashup.com/build-a-jquery-content-feature-like-mailchimp/</link>
		<comments>http://papermashup.com/build-a-jquery-content-feature-like-mailchimp/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:00:03 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1921</guid>
		<description><![CDATA[I was scouring the internet for inspiration the other day and revisiting some interesting sites and noticed that MailChimp had changed their homepage integrating a slick full page slider. After a little investigation I noticed that they were using the &#8230; <br/> <a href="http://papermashup.com/build-a-jquery-content-feature-like-mailchimp/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I was scouring the internet for inspiration the other day and revisiting some interesting sites  and noticed that <a href="http://mailchimp.com">MailChimp</a> had changed their homepage integrating a slick full page slider. After a little investigation I noticed that they were using the <a href="http://jquery.malsup.com/cycle/">jQuery Cycle plugin</a> which allows you to rotate, paginate or cycle a set of images. I&#8217;ve been looking for a full sized slider for a while now and was about to write a tutorial on building a plugin that does the same job.</p>
<h3>The Code</h3>
<p>Getting started with this plugin is really simple, you first need to include the cycle.js plugin you can find more info about the plugin including all the settings available <a href="http://jquery.malsup.com/cycle/">here</a>. This div structure allows you to assign different background images to each slide. </p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/06/mailchimp.png" alt="" title="mailchimp" width="583" height="300" class="alignnone size-full wp-image-1933" /></p>
<p>You can easily change the effect of the image transitions by replacing fx:&#8217;scrollVert&#8217; with &#8216;fade&#8217; for a simple transifion between frames, or  &#8216;scrollHorz&#8217; for the images to slide in horizontally.</p>
<p>Setup of the cycle plugin is simple with the settings below. you can adjust the speed, the initial timeout for when the page loads that the first frame is seen for and the delay between transitions.</p>
<pre class="brush: jscript; title: ;">
  $(document).ready( function($) {

    $('#slider').cycle({
      fx: 'scrollVert',
      speed: 1000,
      pause: 1,
      timeout: 7000,
      delay: 500,
      prev: '#slider_next',
      next: '#slider_prev'
    });

  });
</pre>
<h3>The HTML</h3>
<pre class="brush: xml; title: ;">
  &lt;div id=&quot;slider&quot;&gt;
    &lt;!-- slider --&gt;
    &lt;div id=&quot;iphone&quot; class=&quot;slider&quot;&gt;
      &lt;a href=&quot;http://papermashup.com&quot; title=&quot;iPhone 4 coming soon&quot; class=&quot;slider_content&quot;&gt;iPhone 4 coming soon&lt;/a&gt;
    &lt;/div&gt;
    &lt;!-- slider --&gt;
    &lt;div id=&quot;macbook&quot; class=&quot;slider&quot;&gt;
      &lt;a href=&quot;http://papermashup.com&quot; title=&quot;Macbook Get One&quot; class=&quot;slider_content&quot;&gt;Macbook Get One&lt;/a&gt;
    &lt;/div&gt;
    &lt;!-- slider --&gt;
    &lt;div id=&quot;ipad&quot; class=&quot;slider&quot;&gt;
      &lt;a href=&quot;http://papermashup.com&quot; title=&quot;The new iPad&quot; class=&quot;slider_content&quot;&gt;The new iPad&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id=&quot;slider_controls&quot;&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot; id=&quot;slider_prev&quot;&gt;Previous&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot; id=&quot;slider_next&quot;&gt;Next&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
</pre>
<h3>The CSS</h3>
<pre class="brush: css; title: ;">
#slider {
	width: 100%;
	overflow: hidden;
	height: 301px;
}
.slider {
	height: 301px;
	width: 100%!important;
}
.slider_content {
	width: 1020px;
	height: 301px;
	margin: 0 auto;
	display: block;
	text-indent: -9999px;
}
#ipad {
	background: url('images/ipad-bg.jpg') repeat-x 50% 0;
        width: 100%;
        height: 301px;
}
#ipad .slider_content {
	background: transparent url('images/ipad.jpg') no-repeat top left;
}
#iphone {
	background: #000000 url('images/bg.jpg') repeat-x 50% 0;
        width: 100%;
        height: 301px;
}
#iphone .slider_content {
	background: transparent url('images/iphone.jpg') no-repeat top left;
}
#macbook {
	background: #000000 url('images/macbook-bg.jpg') repeat-x 50% 0;
        width: 100%;
        height: 301px;
}
#macbook .slider_content {
	background: transparent url('images/macbook.jpg') no-repeat top left;
}

#slider_controls {
	width: 958px;
	position: relative;
	margin: 0 auto;
	height: 1px;
}
#slider_controls ul {
	background: transparent url('images/nav.png') no-repeat bottom center;
	display:block;
	height:32px;
	position:absolute;
	right:0;
	text-indent:-9999px;
	top:-31px;
	width:164px;
	z-index:9998;
}
#slider_controls li {
	float: left;
	width: 82px;
	height: 32px;
}
#slider_controls li a {
	display: block;
	height: 32px;
}
</pre>
<p>This slider is both elegant, simple to maintain and easy to code as well as being lightweight on the browser.</p>
<p><a href="http://papermashup.com/demos/jquery-slideshow/"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" title="demo" class="alignnone size-full wp-image-23" /></a><a href="http://papermashup.com/demos/jquery-slideshow/jquery-slideshow.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/build-a-jquery-content-feature-like-mailchimp/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/37 queries in 0.119 seconds using disk: basic
Object Caching 932/1014 objects using disk: basic

Served from: papermashup.com @ 2012-02-04 03:17:15 -->
