<?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>Productivedreams.com &#187; jQuery</title>
	<atom:link href="http://www.productivedreams.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.productivedreams.com</link>
	<description>A blog to keep you updated on the latest design trends.</description>
	<lastBuildDate>Wed, 04 Jan 2012 17:45:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>3 common requirements and the corresponding Jquery solutions for your next web project</title>
		<link>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/</link>
		<comments>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 11:30:10 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.productivedreams.comreams/?p=1756</guid>
		<description><![CDATA[Another post to boost your productivity Recently, while working on some client projects, I noticed a few requirements(I know there are many) that were common. I strongly feel, this will be useful for your next web project. 1. Empty form &#8230; <a href="http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Another post to boost your productivity <span> <img src='http://www.productivedreams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span>
<p>Recently, while working on some client projects, I noticed a few requirements(I know there are many) that were common. I strongly feel, this will be useful for your next web project.</p>
<h1>1. Empty form field value on focus/click</h1>
<p><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/form-focus.jpg" alt="form-focus" title="form-focus" width="508" height="209" class="alignnone size-full wp-image-1808" /><span id="more-1756"></span><br />
<strong>The requirement/issue:</strong></p>
<p>This is a very common requirement. You would have noticed form fields that have a value by default which disappears when you click/focus on them. When you click outside, the value appears again.</p>
<p><strong>Solution:</strong><br />
<a href="http://www.madewithlove.be/talk/the-jquery-emptyonclick-plugin">The jQuery emptyonclick Plugin</a> works like a charm. All you need to do is download this plugin to your project directory and include the following code within the head tags.</p>
<p><code lang="javascript"><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript">
</script></p>
<p><script charset="utf-8" type="text/javascript" src="jquery.emptyonclick.js"></script></p>
<p><script type="text/javascript">
$(document).ready(function(){
    $('.emptyonclick').emptyonclick();
});
</script><br />
</code></p>
<p>Now add the class &#8220;emptyonclick&#8221; to all form fields that you would like to empty onclick.</p>
<p>You can find more about the usage <a href="http://www.madewithlove.be/talk/the-jquery-emptyonclick-plugin">here</a></p>
<h1>2. Truncate lengthy text with either a &#8220;more&#8221; button or 3 dots at the end</h1>
<p><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/truncate-with-dots.jpg" alt="truncate-with-dots" title="truncate-with-dots" width="508" height="209" class="alignnone size-full wp-image-1809" /><br />
<strong>The requirement/issue:</strong></p>
<p>I am sure that most of you would already have faced this issue, especially with lengthy breadcrumbs. You don&#8217;t have to run behind and bother a programmer anymore for a solution.</p>
<p><strong>Solution:</strong></p>
<p><a href="http://www.reindel.com/truncate">Truncate</a> is an awesome jQuery plugin that helps you achieve this in seconds. Download the plugin and include the following code within the head tags</p>
<p><code lang="javascript"><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript">
</script></p>
<p><script charset="utf-8" type="text/javascript" src="jquery.truncate-2.3.js"></script></p>
<p><script language="javascript" type="text/javascript">
$(function() {
    $(".classname").truncate( 60 );
});
</script></p>
<p></code></p>
<p>Replace the .classname with the class name of your HTML element that contains the text. Also, the number 60 in the code above is the maximum number of characters you would like to allow before truncating. Replace that with your value.</p>
<p>Adding a &#8220;more&#8221; link at the end of the text is another cool usage. You can find more about the usage <a href="http://www.reindel.com/truncate/">here</a>.</p>
<h1>3. Adding classes to the first and last list items</h1>
<p><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/first-last-class-li.jpg" alt="first-last-class-li" title="first-last-class-li" width="508" height="209" class="alignnone size-full wp-image-1810" /><br />
<strong>The requirement/issue:</strong></p>
<p>I don&#8217;t think there will be a HTML/CSS developer who haven&#8217;t abused wordpress for not adding first and last classes for their lists</p>
<p>Just imagine a menu that needs a different background for the first and last list item. You&#8217;ll find this handy when creating themes for a CMS like wordpress where you have no control over the HTML code.</p>
<p><strong>Solution:</strong></p>
<p>After spending a few minutes on google, I found <a href="http://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li/">this snippet</a></p>
<p><code lang="javascript"><br />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript">
</script><br />
<script type="text/javascript">
$(function(){
  $("li:first-child").addClass("first_item");
  $("li:last-child").addClass("last_item");
});
</script><br />
</code></p>
<p>This can also be achieved using the :first-child and :last-child CSS pseudo-classes.</p>
<div class="sponad">We offer best quality <a href="http://www.actualtests.com/exam-HP0-S27.htm">HP0-S27</a> training program to help you pass <a href="http://www.testkingsite.com/microsoft/70-290.html">70-290</a> exam. Sign up for <a href="http://www.certkiller.com/exam-642-975.htm">642-975</a> online course to get best jquery solutions for your web design project!<br/><br />
Get your <a href="http://www.test-king.com/cert-A-plus.htm">a+ certification</a> to support your It career. No matter you want to get <a href="http://www.test-king.com/cert-MCTS.htm">mcts</a> or <a href="http://www.test-king.com/cert-CCNP.htm">ccnp</a> certification, having one of the latest certification on your credential is essential top be successful in this high tech world.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/' rel='bookmark' title='10 CSS properties that &#8216;were&#8217; impossible to implement in IE6'>10 CSS properties that &#8216;were&#8217; impossible to implement in IE6</a></li>
<li><a href='http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/' rel='bookmark' title='IE CSS hack without using any hacks!'>IE CSS hack without using any hacks!</a></li>
<li><a href='http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/' rel='bookmark' title='IE not interpreting text-indent on submit buttons ?'>IE not interpreting text-indent on submit buttons ?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Everything you need to know about Parallax</title>
		<link>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/</link>
		<comments>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 18:50:04 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Trends]]></category>

		<guid isPermaLink="false">http://www.productivedreams.comreams/?p=1374</guid>
		<description><![CDATA[1. What is parallax? If you are looking for a definition of parallax, here it goes. As far as the web (especially design) industry is concerned, parallax is the arrangement/animation of images in a way that lets you feel the &#8230; <a href="http://www.productivedreams.com/everything-you-need-to-know-about-parallax/">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>1. What is parallax?</h1>
<p>If you are looking for a definition of parallax, <a href="http://en.wikipedia.org/wiki/Parallax">here it goes</a>. As far as the web (especially design) industry is concerned, <strong>parallax is the arrangement/animation of images in a way that lets you feel the distance between them</strong>. </p>
<p><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/parallax_post.jpg" alt="Everything about parallax" title="Everything about parallax" width="508" height="201" class="alignnone size-full wp-image-1446" />
<p>For example, imagine that you are looking through the window of a moving vehicle. You will see the objects closer to you moving faster compared to the distant ones. The sun stays still while the trees, buildings and other objects move.</p>
<p>In this post I would like to walk you through different posts, examples and tutorials that would help you achieve this effect. </p>
<p>This technique was initially used in 2d video games and now mostly seen in single page portfolio websites and website headers.</p>
<p><span id="more-1374"></span></p>
<h1>2. Parallax in use</h1>
<p>I would like to show you a few hand-picked websites that uses parallax before I proceed.</p>
<p><strong>Eric J</strong> &#8211; This is one of my favorite websites using Parallax in the way it should be. The motion of the wheel and the smoke that comes out of the silencer as the scooter moves  adds up to the parallax feel.</p>
<p><a href="http://ericj.se/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/ericj.jpg" alt="ericj" title="Ericj - javascript parallax" width="508" height="264" class="alignnone size-full wp-image-1386" /></a></p>
<p><strong>Markus Neidel</strong> &#8211; This is an awesome 3d vertical parallax (flash).</p>
<p><a href="http://www.markus-neidel.de/wayofthesheep.htm"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/markus-neidel.jpg" alt="Markus Neidel - Flash" title="markus-neidel" width="508" height="264" class="alignnone size-full wp-image-1388" /></a></p>
<p><strong>Silverback</strong> &#8211; To see the effect in this site, you would have to resize your browser window and notice the header region.</p>
<p><a href="http://www.silverbackapp.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/silverback.jpg" alt="Silverback - CSS Background parallax" title="silverback" width="508" height="264" class="alignnone size-full wp-image-1389" /></a></p>
<p><strong>Umaghet Zeggen</strong> &#8211; All you need to do is move your mouse (towards any direction).</p>
<p><a href="http://www.umaghetzeggen.nl"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/umaghetzeggen.jpg" alt="http://www.umaghetzeggen.nl/" title="umaghetzeggen" width="508" height="264" class="size-full wp-image-1391" /></a></p>
<p><strong>Squaredeye</strong> &#8211; Resize your browser window and notice the movement of clouds in the header. A css based parallax.</p>
<p><a href="http://squaredeye.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/squaredeye.jpg" alt="Squaredeye Header" title="Squaredeye Header" width="508" height="264" class="alignnone size-full wp-image-1394" /></a></p>
<p><strong>Dezignus</strong> &#8211; Move your mouse over the header region (towards any direction).</p>
<p><a href="http://dezignus.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/designus.jpg" alt="designus" title="designus" width="508" height="264" class="alignnone size-full wp-image-1397" /></a></p>
<h1>3. Now, how do I create Parallax?</h1>
<p>Let&#8217;s see how to create this effect using javascript, flash and other frameworks.</p>
<h1>Using JQuery</h1>
<p>You&#8217;d probably be aware, I am  a JQuery fan and for that reason I would like to first list down the methods using JQuery to achieve the Parallax effect.</p>
<p>These tutorials use <strong>jparallax</strong> &#8211; a jQuery plugin to create parallax</p>
<p><a href="http://webdev.stephband.info/parallax.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/jparallax.jpg" alt="jParallax - A jQuery Parallax Plugin" title="jParallax - A jQuery Parallax Plugin" width="508" height="264" class="alignnone size-full wp-image-1402" /></a></p>
<p>Create a Parallax Website Header</p>
<p><a href="http://progtuts.info/186/create-a-parallax-website-header/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/progtuts.jpg" alt="progtuts - jParallax header" title="progtuts - jParallax header" width="508" height="264" class="alignnone size-full wp-image-1411" /></a></p>
<h1>Using Mootools</h1>
<p>Not familiar with JQuery huh? Here goes a tutorial that uses mParallax a mootools adaptation similar to jParallax.</p>
<p><a href="http://www.piksite.com/mParallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/piksite.jpg" alt="piksite mParallax" title="piksite" width="508" height="264" class="alignnone size-full wp-image-1415" /></a></p>
<p>Another demo using Mootools</p>
<p><a href="http://www.csslab.cl/ejemplos/parallax_mootools/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/csslab.jpg" alt="csslab - Mootools" title="csslab - Mootools" width="508" height="264" class="alignnone size-full wp-image-1417" /></a></p>
<h1>Using Scriptaculous</h1>
<p>This one uses scriptaculous another popular javascript framework.</p>
<p><a href="http://offtheline.net/2008/2/28/parallax-animation-with-css-js"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/offtheline.jpg" alt="offtheline - Scriptaculous" title="offtheline - Scriptaculous" width="508" height="264" class="alignnone size-full wp-image-1419" /></a></p>
<h1>Using Javascript &#8211; A Vertical Parallax</h1>
<p>A vertical parallax based on javascript.<br />
<a href="http://inner.geek.nz/javascript/parallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/innergeek.jpg" alt="innergeek" title="innergeek" width="508" height="264" class="alignnone size-full wp-image-1424" /></a></p>
<h1>Using pure CSS</h1>
<p>Unlike the ones above, this would work only when the user re-sizes the browser window. This is achieved using css positioning. </p>
<p>A tutorial on how to create the <a href="http://www.silverbackapp.com/">Silverback Parallax</a> (shown above) using CSS.</p>
<p><a href="http://carsonified.com/blog/design/how-to-recreate-silverbacks-parallax-effect/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/carsonified.jpg" alt="carsonified" title="carsonified" width="508" height="264" class="alignnone size-full wp-image-1426" /></a></p>
<p>Examples of and How to Create the CSS Parallax Effect</p>
<p><a href="http://forthelose.org/examples-of-and-how-to-do-the-css-parallax-effect"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/forthelose.jpg" alt="forthelose" title="forthelose" width="508" height="264" class="alignnone size-full wp-image-1429" /></a></p>
<p>This is a really interesting one! A parallax illusion with CSS</p>
<p><a href="http://www.marcofolio.net/css/a_parallax_illusion_with_css_the_horse_in_motion.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/marcofolio.jpg" alt="marcofolio - Parallax Illusion" title="marcofolio - Parallax Illusion" width="508" height="264" class="alignnone size-full wp-image-1431" /></a></p>
<h1>Parallax using Flash</h1>
<p>A step by step tutorial by webdesignerwall.</p>
<p><a href="http://www.webdesignerwall.com/tutorials/parallax-gallery/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/webdesignerwall.jpg" alt="webdesignerwall" title="webdesignerwall" width="508" height="264" class="alignnone size-full wp-image-1434" /></a></p>
<p> Creating parallax with flash cs4</p>
<p><a href="http://www.webdesign.org/web/flash-&#038;-swish/flash-tutorials/create-a-classic-3d-effect--parallax--with-flash-cs4.17899.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/webdesignorg.jpg" alt="webdesignorg" title="webdesignorg" width="508" height="264" class="alignnone size-full wp-image-1436" /></a></p>
<h1>Are you an AfterEffects freak?</h1>
<p>If so, this tutorial is for you. Create a Realistic Camera Move with Parallax.</p>
<p><a href="http://ae.tutsplus.com/tutorials/vfx/create-a-realistic-camera-move-with-parallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/tutplus.jpg" alt="tutplus - Aftereffects Parallax" title="tutplus - Aftereffects Parallax" width="508" height="264" class="alignnone size-full wp-image-1439" /></a></p>
<p>So, that&#8217;s all about Parallax. I hope this post was informative</p>
<div class="sponad">With our <a href="http://www.testkingsite.com/microsoft/70-291.html">70-291</a> web design course you&#8217;ll learn how to design a website from start to end. Download <a href="http://www.actualtests.com/exam-156-215-70.htm">156-215.70</a> tutorial and <a href="http://www.certkiller.com/exam-1Y0-456.htm">1Y0-456</a> guide to become expert in web designing.<br/><br />
We offer guaranteed success for <a href="http://www.test-king.com/cert-MCDST.htm">mcdst</a> and <a href="http://www.test-king.com/cert-MCPD.htm">mcpd</a> exam with our online course.  Sign up for <a href="http://www.test-king.com/cert-CCNA-Security.htm">ccna security</a> training and pass your certification exam on first try.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/min-width-issue-in-ie6/' rel='bookmark' title='Min-width issue in IE6'>Min-width issue in IE6</a></li>
<li><a href='http://www.productivedreams.com/productivedreams-reloaded/' rel='bookmark' title='ProductiveDreams Reloaded'>ProductiveDreams Reloaded</a></li>
<li><a href='http://www.productivedreams.com/trend-review-coffee-stains-webdesign/' rel='bookmark' title='Trend Review: Coffee Stains in Web Design'>Trend Review: Coffee Stains in Web Design</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>

