<?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>Dev Tips &#124; Become a Better Developer, One Tip at a Time. &#187; Client Side</title>
	<atom:link href="http://dev-tips.com/category/client-side/feed" rel="self" type="application/rss+xml" />
	<link>http://dev-tips.com</link>
	<description>Become a Better Developer, One Tip at a Time.</description>
	<lastBuildDate>Sun, 07 Mar 2010 02:19:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Our Sponsors Rock! A Thank You From Dev-Tips</title>
		<link>http://dev-tips.com/featured/our-sponsors-rock-a-thank-you-from-dev-tips</link>
		<comments>http://dev-tips.com/featured/our-sponsors-rock-a-thank-you-from-dev-tips#comments</comments>
		<pubDate>Sun, 07 Feb 2010 22:50:06 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Giveaways]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=870</guid>
		<description><![CDATA[Our recent giveaway was a gigantic success, and it just would not have been possible without some amazing people. I'd like to take a moment and individually thank every sponsor that made this fun giveaway possible. PHP Reference Book by Mario Lurig “This is a great quick reference book that presents content and examples in [...]]]></description>
			<content:encoded><![CDATA[<p>Our <a href="http://dev-tips.com/featured/dev-tips-turns-1-the-huge-giveaway-bash-begins" title="Dev-Tips Web Developer Giveaway">recent giveaway</a> was a gigantic success, and it just would not have been possible without some amazing people. I'd like to take a moment and individually thank every sponsor that made this fun giveaway possible.</p>
<p><span id="more-870"></span></p>
<h2>PHP Reference Book by Mario Lurig</h2>
<p><a href="http://www.phpreferencebook.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/php-ref-book.png" alt="" title="php-ref-book" width="600" height="300" class="aligncenter size-full wp-image-871" /></a></p>
<blockquote>
<p>“This is a great quick reference book that presents content and examples in a way that it serves both beginners and intermediate users alike. A must buy book!”</p>
<p>- Rak Shekhar, Founder, PHPCatalyst.com</p>
</blockquote>
<p>If you didn't win the book, you can still <a href="http://www.phpreferencebook.com/pdf/" title="Download PDF Free of PHP Reference Book">download a PDF version of it for free on the website</a>!</p>
<h2>BeCreative Magazine</h2>
<p><a href="http://becreativemagazine.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/be-creative-mag.png" alt="" title="be-creative-mag" width="600" height="300" class="aligncenter size-full wp-image-874" /></a></p>
<blockquote><p><a href="http://becreativemagazine.com/" title="BeCreative Magazine">BeCreative Magazine</a> is an online design/social media magazine. It's also a blog for people who want to learn how to design, code and write online. Whether you need to know how to design a website from scratch, start developing themes or maybe even want to learn how to write properly for the web we've got it.</p>
</blockquote>
<h2>HiddenPearls Web Development Services</h2>
<p><a href="http://www.imblog.info/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/free-psd-to-html.png" alt="" title="free-psd-to-html" width="600" height="300" class="aligncenter size-full wp-image-877" /></a></p>
<blockquote><p>HiddenPearls is a web development service who specializes in PSD to HTML conversions. Get in touch with them today!</p>
</blockquote>
<h2>Envato</h2>
<p><a href="http://envato.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/envato-thanks.png" alt="" title="envato-thanks" width="600" height="300" class="aligncenter size-full wp-image-879" /></a></p>
<p>I can't say enough great things about <a href="http://envato.com/" title="Envato">Envato</a>. I owe so much of my success to them. They've provided me with an amazing job, great work environment, and wonderful people who have mentored me over the years. Thank you <a href="http://envato.com/" title="Envato">Envato</a> for all you've given me.</p>
<h2>PacktPub</h2>
<p><a href="http://www.packtpub.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/packt-thanks.png" alt="" title="packt-thanks" width="600" height="300" class="aligncenter size-full wp-image-883" /></a></p>
<blockquote><p>Our books and publications share the experiences of your fellow IT professionals in adapting and customizing today's systems, applications, and frameworks.</p>
</blockquote>
<h2>DigWP</h2>
<p><a href="http://digwp.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/digwp-thanks.png" alt="" title="digwp-thanks" width="600" height="300" class="aligncenter size-full wp-image-884" /></a></p>
<blockquote><p>Written by WordPress veterans Chris Coyier and Jeff Starr, Digging into WordPress is 400+ jam-packed pages of everything you need to get the most out of WordPress. WordPress is great right out of the box, but unless you want an ordinary vanilla blog, it is essential to understand the full potential of WordPress and have the right tools to get the job done.</p>
</blockquote>
<h2>Are My Sites Up?</h2>
<p><a href="http://aremysitesup.com/premium/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/amsu-thanks.png" alt="" title="amsu-thanks" width="600" height="300" class="aligncenter size-full wp-image-885" /></a></p>
<blockquote><p>    Your clients and/or customers don’t care that a hamster chewed through a network cable somewhere in Northern California. They want their website up. You need to find out before they do so you can react fast!</p>
</blockquote>
<h2>Apress Publishing</h2>
<p><a href="http://apress.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/02/apress-thanks.png" alt="" title="apress-thanks" width="600" height="300" class="aligncenter size-full wp-image-886" /></a></p>
<blockquote><p><a href="http://apress.com/">Apress</a> is a technical publisher devoted to meeting the needs of IT professionals, software developers, and programmers, with more than 700 books in print and a continually expanding portfolio of publications. Apress provides high-quality, no-fluff content in print and electronic formats that help serious technology professionals build a comprehensive pathway to career success.</p>
</blockquote>
<p><em>A special thank you to <strong>Simon</strong> of Apress for his extreme kindness and patience with me while I got everything sorted out, you've been amazing Simon!</em></p>
<p>Thanks again to our sponsors!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/our-sponsors-rock-a-thank-you-from-dev-tips/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX and PHP, Building Modern Web Apps &#8211; Book Review</title>
		<link>http://dev-tips.com/featured/ajax-and-php-building-modern-web-apps-book-review</link>
		<comments>http://dev-tips.com/featured/ajax-and-php-building-modern-web-apps-book-review#comments</comments>
		<pubDate>Thu, 28 Jan 2010 21:48:26 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Book Review]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=853</guid>
		<description><![CDATA[As many of you know, I'm a huge fan of reading actual web development books to increase ones skills. Sometimes, you just need to step away from the computer and read an actual physical book. I recently had the pleasure of reading AJAX and PHP: Building Modern Web Applications - Second Edition, and I absolutely [...]]]></description>
			<content:encoded><![CDATA[<p>As many of you know, I'm a huge fan of reading actual web development books to increase ones skills. Sometimes, you just need to step away from the computer and read an actual physical book. I recently had the pleasure of reading <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002' title='AJAX and PHP Book'>AJAX and PHP: Building Modern Web Applications - Second Edition</a>, and I absolutely loved it. I'm going to take some time today to go over the some of <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002'>the book</a>, and what I feel it has to offer the average reader.</p>
<p><span id="more-853"></span><br />
<a href="http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002002"><img src="http://dev-tips.com/wp-content/uploads/2010/01/ajax-php-review.jpg" alt="" title="ajax-php-review" width="605" height="220" class="aligncenter size-full wp-image-866" /></a></p>
<h2>Review Overview</h2>
<ul>
<li>Book Summary</li>
<li>Who is this book for?</li>
<li>Subject Matter</li>
<li> Notable content/features</li>
<li>Final Thoughts</li>
</ul>
<h2>Book Summary</h2>
<p>The main focus of <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002' title='AJAX and PHP: Building Modern Web Apps'>AJAX and PHP: Building Modern Web Apps</a> is to get you up and running using raw Javascript and php to build practical and useful applications. I was happy to see the book mentions Javascript libraries, but really teaches the reader how to do things with plain old Javacript while accounting for all browsers. It was actually fun learning how to create your own AJAX cross browse compatible objects, which is something I never though I'd say.</p>
<p>To quote the books description and give you a better idea of the subject matter:</p>
<p>
<blockquote>This book is a step-by-step, example-driven AJAX tutorial, featuring complete case studies. Each chapter contains a friendly mix of theory and practice, so that your journey through the book will be pleasant, yet efficient. You’ll be coding your first AJAX application at the end of the first chapter, and with each new chapter you’ll develop increasingly complex AJAX applications featuring advanced techniques and coding patterns.</p></blockquote>
<h2>Who is this book for?</h2>
<p>In my opinion this book is great for beginners to web development, intermediate web developers looking to polish their AJAX and php skills, or advanced users who may have not had much experience using raw Javascript in web applications.</p>
<p>Anyone wanting to learn how php and Javascript can integrate asynchronosuly together will probably find this book behooving.</p>
<h2>Subject Matter</h2>
<p>I can't reveal all the details, but there are some seriously awesome applications and tutorials used in this book. </p>
<p>You are first introduced and walked through the basics of everything you'll need to get started, there is also a great primer on Javascript and even OOP style of Javascript, which is a nice bonus.</p>
<p>After that, you jump right in to building example AJAX applications, taking advantage of different web services and API.</p>
<p>Both XML and JSON formats are covered, which is essential.</p>
<h2>Notable Content/Features</h2>
<p>The section dealing with JSON vs XML is just awesome no matter which side of the fence you happen to stand on. Truth is, both data formats are in wide use, so it's helpful to know how to use them both when it relate to AJAX and PHP.</p>
<p>Another feature of <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002'>the book</a> I really enjoyed was the bonus on "Design Patterns" where common JS and PHP design patterns are evaluated and explained, it's very helpful for anyone trying to improve their application workflow.</p>
<p>Lastly, I'm very happy with how thorough of a job the authors did when it came to handling and dealing with cross browser issues. This isn't the most fun thing in the world, but any developer knows it's vital that their app work seamlessly across all common browsers.</p>
<h2>Final Thoughts</h2>
<p>As with nearly every single book from Packt, <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002' title='AJAX and PHP'>AJAX and PHP: Building Modern Web Applications</a> is absolutely worth the price. It's a book to keep on your shelf when you're done reading to resort back to anytime you want to get your hands dirty with AJAX, and want things explained in a clear and precise manner.</p>
<h2>As Always...</h2>
<p>As always, I like to show all of you that I do in fact read all of these books I talk about and review, so here is my wonderfully extremely good looking self rocking the book:</p>
<div id="attachment_859" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002"><img src="http://dev-tips.com/wp-content/uploads/2010/01/AJAXandPHP-Drew-e1264713791250.jpg" alt="" title="AJAXandPHP-Drew" width="500" height="375" class="size-full wp-image-859" /></a><p class="wp-caption-text">Drew approves; he needs a haircut too!</p></div>
<h2>Get It Now!</h2>
<div><a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002'><img src='http://dev-tips.com/wp-content/uploads/2010/01/ajax_php_ss.png' alt='' /></a></div>
<p>You can <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002' title='Get AJAX and PHP the book!'>pick up the book directly from PacktPubs</a> website and get started with AJAX and PHP today <img src='http://dev-tips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/ajax-and-php-building-modern-web-apps-book-review/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dev-Tips Turns 1! The Huge Giveaway Bash Begins!</title>
		<link>http://dev-tips.com/featured/dev-tips-turns-1-the-huge-giveaway-bash-begins</link>
		<comments>http://dev-tips.com/featured/dev-tips-turns-1-the-huge-giveaway-bash-begins#comments</comments>
		<pubDate>Thu, 07 Jan 2010 01:28:09 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=789</guid>
		<description><![CDATA[Recently, we wrote about Dev-Tips turning one year old, and asked for items to be donated for a giveaway bash. I'm thrilled to say the response has been absolutely overwhelming. I have been stunned by everyones kindness and will to donate an item or product. With that said, I published the first post for Dev-Tips [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, <a href='http://dev-tips.com/featured/dev-tips-turning-1-soon-big-giveaway-bash-planned' title='Giveaway Bash Plans'>we wrote about Dev-Tips turning one year old</a>, and asked for items to be donated for a giveaway bash. I'm thrilled to say the response has been absolutely overwhelming. I have been stunned by everyones kindness and will to donate an item or product. With that said, <a href='http://dev-tips.com/featured/jquery-tip-using-xpath-selectors' title='Xpath Selectors in jQuery'>I published the first post for Dev-Tips</a> one year ago today. <strong>We've got 11 amazing items and products to giveaway to some of our readers, let the giveaway begin!</strong></p>
<p><span id="more-789"></span></p>
<h2>UPDATE!</h2>
<p><strong>As of January 14, 2010 I will be picking and emailing the random winners and ensuring those who won are eligible to receive the prize. Please check your inbox and make sure no messages get caught in your spam filter over the next few days. More updates shortly!</strong></p>
<h2>The Giveaway Items/Products</h2>
<p>We have <strong>11</strong> amazing items and products to giveaway to our readers, they are as follows.</p>
<h3><a href='http://www.phpreferencebook.com/'>PHP Reference Book (Print Edition)</a></h3>
<p><em>Courtesy of <a href='http://phpreferencebook.com'>Mario Lurig</a> - Author</em></p>
<p><a href="http://www.phpreferencebook.com"><img src="http://dev-tips.com/wp-content/uploads/2010/01/php_ref_giveaway.png" alt="" title="php_ref_giveaway" width="600" height="200" class="aligncenter size-full wp-image-810" /></a><br />
<a href="http://www.phpreferencebook.com"><img src="http://dev-tips.com/wp-content/uploads/2010/01/php_ref_ss.png" alt="" title="php_ref_ss" width="600" height="300" class="aligncenter size-full wp-image-811" /></a></p>
<p>
<blockquote>A collection of over 250 PHP functions with clear explanations in language anyone can understand, followed with as many examples as it takes to understand what the function does and how it works. One of the best PHP books to keep around as a PHP reference.<br />
This PHP reference includes numerous additional tips, the basics of PHP, MySQL query examples, regular expressions syntax, and two indexes to help you find information faster: a common language index and a function index.</p></blockquote>
<h3><a href='http://spotify.com/'>2 Spotify Invites for the Free to Use Version!</a></h3>
<p><em>Courtesy of <a href='http://becreativemagazine.com/'>BeCreativeMagazine</a></em></p>
<p><a href="http://becreativemagazine.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/spotify_giveaway_text.png" alt="" title="spotify_giveaway_text" width="600" height="200" class="aligncenter size-full wp-image-815" /></a><br />
<a href="http://spotify.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/spotify_ss.png" alt="" title="spotify_ss" width="600" height="300" class="aligncenter size-full wp-image-816" /></a></p>
<p>
<blockquote>Millions of songs - instant and simple<br />
Discover and share music with your friends</p></blockquote>
<p><small>Not available in all countries</small></p>
<h3><a href='http://amazon.com/' title='Amazon'>$25 Amazon Giftcard</a></h3>
<p><em>Courtesy of <a href='http://becreativemagazine.com/'>BeCreativeMagazine</a></em></p>
<p><a href="http://becreativemagazine.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/amazon_giveaway_text.png" alt="" title="amazon_giveaway_text" width="600" height="200" class="aligncenter size-full wp-image-817" /></a><br />
<a href="http://amazon.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/amazon_ss.png" alt="" title="amazon_ss" width="600" height="300" class="aligncenter size-full wp-image-818" /></a></p>
<p>
<blockquote><a href='http://becreativemagazine.com/'>BeCreative Magazine</a> is an online design/social media magazine. It´s also a blog for people who want to learn how to design, code and write online. Whether you need to know how to design a website from scratch, start developing themes or maybe even want to learn how to write properly for the web we´ve got it.</p></blockquote>
<h3><a href='http://www.imblog.info/'>FREE PSD to XHTML Conversion ($123 value)</a></h3>
<p><em>Courtesy of <a href='http://www.imblog.info/'>HiddenPearls</a></em></p>
<p><a href="http://www.imblog.info"><img src="http://dev-tips.com/wp-content/uploads/2010/01/free_psdtohtml_text.png" alt="" title="free_psdtohtml_text" width="600" height="200" class="aligncenter size-full wp-image-819" /></a><br />
<a href="http://www.imblog.info"><img src="http://dev-tips.com/wp-content/uploads/2010/01/hiddenpearls_ss.png" alt="" title="hiddenpearls_ss" width="600" height="300" class="aligncenter size-full wp-image-820" /></a></p>
<p>
<blockquote><a href='http://www.imblog.info/'>HiddenPearls</a> is offering a free PSD to HTML conversion for one homepage and one contact page, a $123 value, absolutely free to one lucky winner! Be sure to <a href='http://twitter.com/hiddenpearls'>follow him on Twitter!</a></p></blockquote>
<h3><a href='http://tutsplus.com/' title='TutsPlus'>FREE 3 Month TUTS+ Subscription</a></h3>
<p>Courtesy of <a href='http://envato.com' title='Envato'>Envato</a></p>
<p><a href="http://tutsplus.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/tutsplus_text.png" alt="" title="tutsplus_text" width="600" height="200" class="aligncenter size-full wp-image-821" /></a><br />
<a href="http://tutsplus.com/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/tutsplus_ss.png" alt="" title="tutsplus_ss" width="600" height="300" class="aligncenter size-full wp-image-822" /></a></p>
<p>
<blockquote>From graphics to web development, audio to video and more, get the skills you want from our family of tutorial and resource sites. Need more? We also offer a <a href='http://tutsplus.com/'>Plus program</a> where you can access source files and bonus tutorials.</p></blockquote>
<h3><a href='http://envato.com/'>$50 Credit to any one of the Envato Marketplace</a></h3>
<p><em>Courtesy of <a href='http://activeden.net/'>ActiveDen</a>, <a href='http://audiojungle.net/'>AudioJungle</a>, <a href='http://themeforest.net/'>ThemeForest</a>, <a href='http://videohive.net/'>VideoHive</a>, <a href='http://graphicriver.net/'>GraphicRiver</a>, <a href='http://3docean.net/'>3dOcean</a>, and/or <a href='http://codecanyon.net/'>CodeCanyon</a>.</em></p>
<p><a href="http://themeforest.net"><img src="http://dev-tips.com/wp-content/uploads/2010/01/marketplace_text.png" alt="" title="marketplace_text" width="600" height="200" class="aligncenter size-full wp-image-823" /></a><br />
<a href="http://themeforest.net"><img src="http://dev-tips.com/wp-content/uploads/2010/01/marketplace_ss.png" alt="" title="marketplace_ss" width="600" height="300" class="aligncenter size-full wp-image-824" /></a></p>
<p>
<blockquote>The Envato Marketplaces allow anyone to buy or sell digital goods like WordPress themes, stock audio, After Effects project files, Flash templates and much more. The marketplaces are home to a thriving community of over 300,000 users, authors and buyers and everyday hundreds of new files are added.</p></blockquote>
<h3><a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002' title='AJAX and PHP Building Modern Web Applications 2nd Edition'>AJAX and PHP: Building Modern Web Applications 2nd Edition (paperback)</a></h3>
<p><em>Courtesy of <a href='http://packtpub.com' title='PacktPub'>PacktPub</a></em></p>
<p><a href="http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002002"><img src="http://dev-tips.com/wp-content/uploads/2010/01/ajax_php_text.png" alt="" title="ajax_php_text" width="600" height="200" class="aligncenter size-full wp-image-825" /></a><br />
<a href="http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_002002"><img src="http://dev-tips.com/wp-content/uploads/2010/01/ajax_php_ss.png" alt="" title="ajax_php_ss" width="600" height="300" class="aligncenter size-full wp-image-826" /></a></p>
<p>
<blockquote>This book is a step-by-step, example-driven AJAX tutorial, featuring complete case studies. Each chapter contains a friendly mix of theory and practice, so that your journey through the book will be pleasant, yet efficient. You’ll be coding your first AJAX application at the end of the first chapter, and with each new chapter you’ll develop increasingly complex AJAX applications featuring advanced techniques and coding patterns.</p></blockquote>
<h3><a href='https://www.e-junkie.com/ecom/gb.php?cl=88539&#038;c=ib&#038;aff=47113' title='Digging into WordPress Book'>Digging Into WordPress the Book (pdf)</a></h3>
<p><em>Courtesy of <a href='http://digwp.com' title='DigWP'>DigWP</a></em></p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?cl=88539&amp;c=ib&amp;aff=47113"><img src="http://dev-tips.com/wp-content/uploads/2010/01/digwp_text.png" alt="" title="digwp_text" width="600" height="200" class="aligncenter size-full wp-image-827" /></a><br />
<a href="https://www.e-junkie.com/ecom/gb.php?cl=88539&amp;c=ib&amp;aff=47113"><img src="http://dev-tips.com/wp-content/uploads/2010/01/digwp_ss.png" alt="" title="digwp_ss" width="600" height="300" class="aligncenter size-full wp-image-828" /></a></p>
<p>
<blockquote>Written by WordPress veterans <a href='http://css-tricks.com/'>Chris Coyier</a> and <a href='http://perishablepress.com/'>Jeff Starr</a>, Digging into WordPress is 400+ jam-packed pages of everything you need to get the most out of WordPress. WordPress is great right out of the box, but unless you want an ordinary vanilla blog, it is essential to understand the full potential of WordPress and have the right tools to get the job done.</p></blockquote>
<h3><a href='http://aremysitesup.com/premium/'>One Standard Premium Account for Are My Sites Up?</a></h3>
<p><em>Courtesy of <a href='http://chriscoyier.net/' title='Chris Coyier'>Chris Coyier</a></em></p>
<p><a href="http://aremysitesup.com/premium/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/amsu_text.png" alt="" title="amsu_text" width="600" height="200" class="aligncenter size-full wp-image-829" /></a><br />
<a href="http://aremysitesup.com/premium/"><img src="http://dev-tips.com/wp-content/uploads/2010/01/amsu_ss.png" alt="" title="amsu_ss" width="600" height="300" class="aligncenter size-full wp-image-830" /></a></p>
<p>
<blockquote>Your clients and/or customers don’t care that a hamster chewed through a network cable somewhere in Northern California. They want their website up. You need to find out before they do so you can react fast!</p></blockquote>
<h3><a href='http://apress.com/book/view/9781430218258'>Beginning Zend Framework (print edition)</a></h3>
<p><em>Courtesy of <a href='http://apress.com' title='Apress Publishing'>Apress Publishing</a></em></p>
<p><a href="http://apress.com/book/view/9781430218258"><img src="http://dev-tips.com/wp-content/uploads/2010/01/zend_text.png" alt="" title="zend_text" width="600" height="200" class="aligncenter size-full wp-image-831" /></a><br />
<a href="http://apress.com/book/view/9781430218258"><img src="http://dev-tips.com/wp-content/uploads/2010/01/zend_ss.png" alt="" title="zend_ss" width="600" height="300" class="aligncenter size-full wp-image-832" /></a></p>
<p>
<blockquote>The Zend Framework is one of today’s most popular PHP–based web application development frameworks. Beginning Zend Framework is a beginner’s guide to learning and using the Zend Framework. It covers everything from the installation to the various features of the framework to get the reader up and running quickly.</p></blockquote>
<h3><a href='http://apress.com/book/view/1590599829' title='Beginning Python from Novice to Professional'>Beginning Python From Novice To Professional, Second Edition (pdf)</a></h3>
<p><em>Courtesy of <a href='http://apress.com' title='Apress Publishing'>Apress Publishing</a></em></p>
<p><a href="http://apress.com/book/view/1590599829"><img src="http://dev-tips.com/wp-content/uploads/2010/01/python_text.png" alt="" title="python_text" width="600" height="200" class="aligncenter size-full wp-image-833" /></a><br />
<a href="http://apress.com/book/view/1590599829"><img src="http://dev-tips.com/wp-content/uploads/2010/01/python_ss.png" alt="" title="python_ss" width="600" height="300" class="aligncenter size-full wp-image-834" /></a></p>
<p>
<blockquote>Gain a fundamental understanding of Python’s syntax and features with the second edition of Beginning Python, an up–to–date introduction and practical reference. Covering a wide array of Python–related programming topics, including addressing language internals, database integration, network programming, and web services, you’ll be guided by sound development principles. Ten accompanying projects will ensure you can get your hands dirty in no time.</p>
<p>Updated to reflect the latest in Python programming paradigms and several of the most crucial features found in the forthcoming Python 3.0 (otherwise known as Python 3000), advanced topics, such as extending Python and packaging/distributing Python applications, are also covered.</p></blockquote>
<h2>How Do I Enter?</h2>
<p>Simple and takes merely seconds! Follow these steps:</p>
<ol>
<li><a href='http://twitter.com/?status="Dev-Tips Huge Web Developer giveaway bash, 11 items up for grab! | http://bit.ly/6kzEwQ"'>Tweet about this post on twitter</a> using any text you like. Nothing fancy. Here is a link you may use <a href='http://bit.ly/6kzEwQ' title='Shortened Giveaway Link'><code>http://bit.ly/6kzEwQ</code></a></li>
<li>Leave a comment below about which items you would like to win. Please list at least three (please add more if you can!) in case your desired item is already taken if you win.</li>
<li>That's it, I told you it was simple!</li>
</ol>
<p><small>As the comments grow larger, you will want to consider requesting choices that haven't been requested as much, to improve your chance of getting your first choice if you win.</small></p>
<h2>How are the winners determined?</h2>
<p>Random. All Random. We will choose random winners when the contest is over and try to give them their first item choice, if available. There will be 11 total winners, so be sure to follow the above steps to enter!</p>
<h2>Please Support Our Sponsors!</h2>
<p>This contest just would not have been possible without some amazing and very generous people and companies. Please take a minute of your time to give one of them a browse when you have the chance. Special thanks to:</p>
<ul>
<li><a href='http://www.phpreferencebook.com/'>Mario Lurig</a></li>
<li><a href='http://becreativemagazine.com/'>BeCreativeMagazine</a></li>
<li><a href='http://www.imblog.info/'>HiddenPearls</a></li>
<li><a href='http://envato.com'>Envato</a></li>
<li><a href='http://www.packtpub.com/'>PacktPub</a></li>
<li><a href='http://digwp.com/'>DigWP</a></li>
<li><a href='http://chriscoyier.net'>Chris Coyier</a></li>
<li><a href='http://aremysitesup.com'>Are My Sites Up?</a></li>
<li><a href='http://apress.com/' title='Apress Publishing'>Apress Publishing</a></li>
</ul>
<p>Once again, please join me in saying a huge "thank you!" to our sponsors!</p>
<h2>Support Dev-Tips</h2>
<p>We've grown a lot in one year, and we're hoping to continue to see that trend in the year 2010. If Dev-Tips has helped you out in anyway in the past year, I ask you to please consider making a small donation to help us offset the cost of hosting and running the site. Any and all donations are very much appreciated.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="10838805">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p>Follow <a href='http://twitter.com/dev_tips'>@Dev_Tips</a> and <a href='http://twitter.com/drewdouglass'>@DrewDouglass</a> on Twitter!</p>
<h2>Enter now!</h2>
<p>Read through the contest steps above, and enter your comment now for a chance to win one of the 11 items!</p>
<h2>When Will the Winners be Picked?</h2>
<p>We will be picking a winner around January 13th. We may extend this a bit to give everyone a fair chance to enter.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/dev-tips-turns-1-the-huge-giveaway-bash-begins/feed</wfw:commentRss>
		<slash:comments>157</slash:comments>
		</item>
		<item>
		<title>Introducing Minerva &#8211; A Creative Portfolio Theme</title>
		<link>http://dev-tips.com/featured/introducing-minerva-a-creative-portfolio-theme</link>
		<comments>http://dev-tips.com/featured/introducing-minerva-a-creative-portfolio-theme#comments</comments>
		<pubDate>Wed, 06 Jan 2010 04:52:43 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=762</guid>
		<description><![CDATA[Recently, I teamed up with very talented designer and personal friend Baz Deas to form a small and fun ThemeForest team. We came up with a name, DesignThirst, and have released our first premium HTML template on ThemeForest. Minerva, the name of the theme, is a premium and very fresh corporate/portfolio theme. Just check out [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I teamed up with very talented designer and personal friend <a href='http://bazdeas.com' title='Baz Deas Portfolio'>Baz Deas</a> to form a small and fun ThemeForest team. We came up with a name, <a href='http://designthirst.net'>DesignThirst</a>, and have released our first premium HTML template on <a href='http://themeforest.net/?ref=designthirst' title='ThemeForest'>ThemeForest</a>. Minerva, the name of the theme, is a <a href='http://themeforest.net/item/minerva-xhtml-theme/75547?ref=designthirst' title='Minerva Premium HTML Theme'>premium and very fresh corporate/portfolio theme</a>. Just check out some the features!</p>
<p><span id="more-762"></span></p>
<h2>Introducing "Minerva"</h2>
<p>
<blockquote>Minerva is a fresh and clean site template that works great as a portfolio, personal, blog, or corporate site. Minerva comes packed with features and is ready to go out of the box. It even comes with a working AJAX &#038; PHP contact form w/ spam protection!</p></blockquote>
<h2>Screenshots</h2>
<p><a href="http://dev-tips.com/wp-content/uploads/2010/01/preview_minerva.jpg"><img src="http://dev-tips.com/wp-content/uploads/2010/01/preview_minerva.jpg" alt="" title="preview_minerva" width="590" height="300" class="aligncenter size-full wp-image-763" /></a></p>
<h3>Home Page</h3>
<p><a href="http://dev-tips.com/wp-content/uploads/2010/01/home_minerva.png"><img src="http://dev-tips.com/wp-content/uploads/2010/01/home_minerva.png" alt="" title="home_minerva" width="600" height="279" class="aligncenter size-full wp-image-764" /></a></p>
<h3>Footer</h3>
<p><a href="http://dev-tips.com/wp-content/uploads/2010/01/footer_minerva.png"><img src="http://dev-tips.com/wp-content/uploads/2010/01/footer_minerva.png" alt="" title="footer_minerva" width="600" height="279" class="aligncenter size-full wp-image-767" /></a></p>
<h3>Contact Page</h3>
<p><a href="http://dev-tips.com/wp-content/uploads/2010/01/contact_minerva.png"><img src="http://dev-tips.com/wp-content/uploads/2010/01/contact_minerva.png" alt="" title="contact_minerva" width="600" height="279" class="aligncenter size-full wp-image-768" /></a></p>
<h3>Blog Comments</h3>
<p><a href="http://dev-tips.com/wp-content/uploads/2010/01/blog_comments_minerva.png"><img src="http://dev-tips.com/wp-content/uploads/2010/01/blog_comments_minerva.png" alt="" title="blog_comments_minerva" width="600" height="279" class="aligncenter size-full wp-image-769" /></a></p>
<h2>Theme Features</h2>
<ul>
<li>Working  AJAX  &#38;  PHP  Contact form.</li>
<li>Nice jQuery effects in the Footer and &#8216;Share This&#8217; section.</li>
<li>Easy to use jQuery Slider in the header.</li>
<li>Custom Font Embedding with Cufon, falls back on awesome font stacks and still looks great.</li>
<li>5 Different page types included.</li>
<li>Supported in all major browsers, including  IE6!</li>
<li>Valid  XHTML </li>
<li>Custom and in depth online and offline documentation and support.</li>
<li>Clean, elegant, and semantic code aids in good  SEO .</li>
<li>Minimal use of images and creative use of sprites to save loading times.</li>
<li>Special attention paid to elements and typography, see demo page.</li>
</ul>
<h2>Demo, Documentation, &#38; Support</h2>
<h3><a href="http://designthirst.net/themes/minerva/"> </a><a href="http://designthirst.net/themes/minerva/">http://designthirst.net/themes/minerva/</a>  &#8211; Live Demo </h3>
<h3><a href="http://designthirst.net/docs/minerva/"> </a><a href="http://designthirst.net/docs/minerva/">http://designthirst.net/docs/minerva/</a>   &#8211; Online Documentation</h3>
<h3><a href="http://twitter.com/DesignThirst"> </a><a href="http://twitter.com/DesignThirst">http://twitter.com/DesignThirst</a>  &#8211; DesignThirst on Twitter</h3>
<h2>Get Minerva now!</h2>
<p>You can <a href='http://themeforest.net/item/minerva-xhtml-theme/75547?ref=designthirst' title='Minerva Premium HTML Theme'>get Minerva right now</a>, available exclusively through <a href='http://themeforest.net/item/minerva-xhtml-theme/75547?ref=designthirst' title='Minerva Premium HTML Theme'>ThemeForest</a>.<br />
<a href="http://themeforest.net/item/minerva-xhtml-theme/75547?ref=designthirst"><img src="http://dev-tips.com/wp-content/uploads/2010/01/get_minerva_button.jpg" alt="" title="get_minerva_button" width="277" height="81" /></a></p>
<h2>Feedback, Updates, and Feature Requests</h2>
<p>If you didn't know, once you buy a theme on ThemeForest, <strong>you can download any updates made to that item for free at anytime!</strong> That said, <strike>we're about to release Minerva version 1.1</strike> version 1.1 has been released!, which comes with some small enhancements, so no matter when you buy it, you'll forever have access to upgrades for free!</p>
<p>I'd love to hear any feedback or feature requests, let me know what you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/introducing-minerva-a-creative-portfolio-theme/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dev-Tips Turning 1 Soon, Big Giveaway Bash Planned!</title>
		<link>http://dev-tips.com/featured/dev-tips-turning-1-soon-big-giveaway-bash-planned</link>
		<comments>http://dev-tips.com/featured/dev-tips-turning-1-soon-big-giveaway-bash-planned#comments</comments>
		<pubDate>Thu, 31 Dec 2009 05:29:33 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Giveaways]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=724</guid>
		<description><![CDATA[On January 6, 2010, Dev-Tips turns one year old. It's hard for me to believe it's been almost a year now that Dev-Tips has been up and running with quality web development articles from numerous authors. There are so many great people and readers that got us this far, that we'd like to plan a [...]]]></description>
			<content:encoded><![CDATA[<p>On January 6, 2010, Dev-Tips turns one year old. It's hard for me to believe it's been almost a year now that <a href='http://dev-tips.com'>Dev-Tips</a> has been up and running with quality web development articles from numerous authors. There are so many great people and readers that got us this far, that we'd like to plan a giant giveaway and need your help! Read on to find out how you can get in on the fun!</p>
<p><span id="more-724"></span></p>
<div><img src='http://dev-tips.com/post_img/current_items.png' alt='' /></div>
<p>Below are the items that have been kindly donated so far.I will update the list below as they (hopefully!) continue to come in.</p>
<ul>
<li><strong><a href='http://www.phpreferencebook.com/'>PHP Reference Book</a></strong> by Mario Lurig (Print Edition).</li>
<li><strong><a href='http://spotify.com/'>Spotify</a> Invites (for the free version, no monthly fees!) and a $25 <a href='http://amazon.com'>Amazon</a> Gift Card.</strong> donated by <a href='http://becreativemagazine.com' title='BeCreativeMagazine'>BeCreativeMagazine</a>.</li>
<li><strong>FREE PSD to XHTML Conversion (Homepage and one contact page!)</strong> a retail price of $123 by <a href='http://www.imblog.info/' title='HiddenPearls'>Hidden Pearls</a>.</li>
<li><strong>3 Month <a href='http://tutsplus.com/' title='TUTSPlus'>TUTS+ Subcription</a></strong> courtesy of <a href='http://envato.com' title='Envato'>Envato</a>.</li>
<li><strong>$50 Credit to any one of the following Envato Marketplaces:</strong> <a href='http://activeden.net/'>ActiveDen</a>, <a href='http://audiojungle.net/'>AudioJungle</a>, <a href='http://themeforest.net/'>ThemeForest</a>, <a href='http://videohive.net/'>VideoHive</a>, <a href='http://graphicriver.net/'>GraphicRiver</a>, <a href='http://3docean.net/'>3dOcean</a>, or <a href='http://codecanyon.net/'>CodeCanyon</a> courtesy of <a href='http://envato.com'>Envato</a>.</li>
<li><strong>Paperback Edition of <a href='http://www.packtpub.com/ajax-and-php-2nd-edition/mid/050110l77db5?utm_source=dev-tips.com&#038;utm_medium=affiliate&#038;utm_content=blog&#038;utm_campaign=mdb_002002'>AJAX and PHP: Building Modern Web Applications 2nd Edition</a></strong> courtesy of <a href=' http://www.packtpub.com'>PacktPub</a></li>
<li><strong>PDF Edition of <a href='https://www.e-junkie.com/ecom/gb.php?cl=88539&#038;c=ib&#038;aff=47113'>Digging into WordPress</a></strong> courtesy of <a href='http://digwp.com/'>DigWP</a></li>
<li><strong>One standard premium account for <a href='http://aremysitesup.com/premium/'>Are My Sites Up?</a></strong> courtesy of <a href='http://chriscoyier.net'>Chris Coyier</a>.</li>
<li><strong>Hard copy of <a href='http://apress.com/book/view/9781430218258' title='Beginning Zend Framework'>Beginning Zend Framework</a></strong> courtesy of <a href='http://apress.com' title='Apress'>Apress Publishing</a>.</li>
<li><strong>PDF Version of <a href='http://apress.com/book/view/1590599829' title='Beginning Python from Novice to Pro'>Beginning Python: From Novice to Professional, Second Edition</a></strong> courtesy of <a href='http://apress.com' title='Apress'>Apress Publishing</a></li>
</ul>
<div><img src="http://dev-tips.com/wp-content/uploads/2009/12/giveaway_cake_one.png" alt="" title="giveaway_cake_one" width="605" height="220" class="aligncenter size-full wp-image-729" /></div>
<h2>Giveaways</h2>
<p>We've had some <a href='http://dev-tips.com/featured/php-for-absolute-beginners-reviewed-giveaway'>amazing success</a> in the past with book and web development related giveaways, and we'd love to do it again this year! We've been contacted by some great people and are planning on having frequent book reviews and giveaways for the next year on Dev-Tips.</p>
<h2>Giveaway Items Needed!</h2>
<div><img src="http://dev-tips.com/wp-content/uploads/2009/12/giveaway_bag.png" alt="" title="giveaway_bag" width="605" height="220" class="aligncenter size-full wp-image-728" /></div>
<p>If you have any kind of web development related product or item that you'd like to contribute to the giveaway, please <a href='http://dev-tips.com/contact'>get in touch with us</a>! We are in desperate need of giveaway items, and we'd love to give you some free traffic, so if you have anything at all <a href='http://dev-tips.com/contact'>let us know</a>!</p>
<p>Some items we are looking for (but not limited to):</p>
<ul>
<li>Web Dev or Design Books</li>
<li>Software or Scripts</li>
<li>Templates or Designs</li>
<li>Discounts to web apps or memberships to programs</li>
</ul>
<p>If Dev-Tips has helped you out in anyway at all, please consider donating an item to the giveaway, or making a donation below. We don't ask often, and donations and a small amount of advertisements are what keeps us going.</p>
<h3>Submit an Item/Product for the giveaway</h3>
<p>To submit an item for the giveaway, please <a href='http://dev-tips.com/contact'>contact us</a> through this form with the subject line of "One Year Giveaway".</p>
<p><strong>All persons who donate an item or product to the giveaway will receive full credit and promotion on Dev-Tips.</strong></p>
<h3>Make a Donation</h3>
<p>To make a donation to Dev-Tips, simply use the donation button below.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="10838805">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p>If you make a donation and don't mind me letting me know, I will be sure to credit and link everyone who does this also, as it's the least I can do. If you'd rather stay anonymous that's fine too.</p>
<h2>A Giant Thank You!</h2>
<p>A big thank you to all of the readers who stuck with us throughout our first year, we've seen solid growth every month and have bigger and better things planned for 2010! Have a wonderful New Year!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/dev-tips-turning-1-soon-big-giveaway-bash-planned/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Winner of PHP Book Giveaway &amp; Future Giveaways Announced!</title>
		<link>http://dev-tips.com/featured/winner-of-php-book-giveaway-future-giveaways-announced</link>
		<comments>http://dev-tips.com/featured/winner-of-php-book-giveaway-future-giveaways-announced#comments</comments>
		<pubDate>Wed, 30 Dec 2009 22:54:47 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Giveaways]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=717</guid>
		<description><![CDATA[We recently had an awesome giveaway on Dev-Tips for a chance to win PHP For Absolute Beginners by Jason Lengstorf. Today we will announce the winner as well ad briefly discuss future giveaways! The Big Winner! Congrats to Montana Flynn, the randomly selected winner for the PHP book giveaway. Montana will be receiving an absolutely [...]]]></description>
			<content:encoded><![CDATA[<p>We recently had an <a href='http://dev-tips.com/featured/php-for-absolute-beginners-reviewed-giveaway'>awesome giveaway</a> on Dev-Tips for a chance to win <a href='http://www.amazon.com/gp/product/1430224738?ie=UTF8&#038;tag=devtips-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430224738'>PHP For Absolute Beginners</a> by <a href='http://ennuidesign.com/'>Jason Lengstorf</a>. Today we will announce the winner as well ad briefly discuss future giveaways!</p>
<p><span id="more-717"></span><br />
<a href="http://dev-tips.com/featured/php-for-absolute-beginners-reviewed-giveaway"><img src="http://dev-tips.com/wp-content/uploads/2009/12/giveaway_bg_text.png" alt="" title="giveaway_bg_text" width="605" height="220" class="aligncenter size-full wp-image-721" /></a></p>
<h2>The Big Winner!</h2>
<p>Congrats to Montana Flynn, the randomly selected winner for the PHP book giveaway. Montana will be receiving an absolutely free copy of the book in the mail shortly. Montana will be using the book to:</p>
<blockquote><p>I want the book because I need to learn how to write better PHP!</p>
</blockquote>
<p>And hey, that's a good enough reason for us.</p>
<p>Congratulation Montana, and thanks to all who entered!</p>
<h2>Future Giveaways</h2>
<p>This giveaway was so successful, I have been contacted by a few publishers and we will be running frequent book reviews and giveaways! Be sure to subscribe to our <a href='http://dev-tips.com/feed'>RSS Feed</a> to be one of the first to enter the next contest!</p>
<p><em>P.S. Dev-Tips turns one year old in January! We'll be posting more about this soon and looking for giveaway sponsors, get in touch with us if you are interested, we'd love to chat!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/winner-of-php-book-giveaway-future-giveaways-announced/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Awesome radio button grouping with jQuery</title>
		<link>http://dev-tips.com/featured/awesome-radio-button-grouping-with-jquery</link>
		<comments>http://dev-tips.com/featured/awesome-radio-button-grouping-with-jquery#comments</comments>
		<pubDate>Sun, 20 Dec 2009 02:21:13 +0000</pubDate>
		<dc:creator>Barry Roodt</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[grouping]]></category>
		<category><![CDATA[radio]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=679</guid>
		<description><![CDATA[I was asked to do something rather interesting with some radio button inputs the other day. I haven't come across this particular problem before and google didn't return anything helpful, so I decided to share what I came up with. Live Demo First, the scenario We have a standard form with 4 radio button groups. [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked to do something rather interesting with some radio button inputs the other day. I haven't come across this particular problem before and google didn't return anything helpful, so I decided to share what I came up with.</p>
<p><span id="more-679"></span></p>
<h2 class='box demo'><a target='_blank' href='http://flexidev.co.za/dev/code/advancedradio/' title='View Demo'>Live Demo</a></h2>
<h2>First, the scenario</h2>
<p>We have a standard form with 4 radio button groups. Each group has 4 radio buttons labeled from<em> "1" </em>to <em>"4"</em>. Now, when the user selects<em> "option 1"</em> in <em>"group 1"</em>, all the remaining <em>"option 1"</em> items need to be disabled. To see an example in action, <a title="Advanced Radio demo" href="http://flexidev.co.za/dev/code/advancedradio/" target="_blank">you can view the demo here</a>.</p>
<h2>The problem</h2>
<p>When I first started, I thought that it's simply a matter of giving each <em>"option"</em> (regardless of group) a common class name - then just disabling all other options with the same class name. That works, to a point, but what if the user changes his mind and selects another option ? Now I had to find all previously disabled options, re-enable them and start all over again.</p>
<h2>The solution</h2>
<p>Essentially what I came up with was a basic nested loop to handle setting and unsetting the relevant <em>"disabled"</em> attributes. To achieve this, first we assign all <em>"option 1"</em> a class of <em>"number1"</em>, <em>"option 2"</em> a class of <em>"number2"</em> and so on.</p>
<p>Next, we run a basic <strong><em>for loop</em></strong>, and go through each <em>"number"</em> class (i.e. number1 to number4). For each class, we call a function. Inside this function is another loop - this time iterating over each radio button assigned the current class name. Using this loop, we remove any <em>"disabled" </em>attributes which may have been assigned previously.</p>
<p>We also find out which item in that group is currently selected (if any) - this is so we can run a second loop to disable all those options not currently selected. Confused ? Now might be a good time to go through the code.</p>
<h2>The code</h2>
<pre class="brush: js">
$(function(){
		// fire our code when a radio button has been selected
		$(&quot;input[type=radio]&quot;).change(function(){
			var name = $(this).attr(&quot;name&quot;); // get the current button&#039;s group name
			$(&quot;input[name=&quot;+name+&quot;]&quot;).removeAttr(&quot;selected&quot;); // first we deselect &quot;all&quot; radio buttons within the same group
			$(this).attr(&quot;selected&quot;,&quot;selected&quot;); // make sure our currently &quot;changed&quot; button is selected
			for(i=1;i&lt;=4;i++){ // go through the 4 radio classes
				processRadio(&quot;.radio&quot;+i);
			}
		});
		/**
			Loops through each item with same &quot;class&quot; name and disables/enables where appropriate
		**/
		function processRadio(myclass){
			var empty;
			var id = &quot;&quot;;
			var buttons = $(myclass); // read all buttons with the specified class name into a jQuery object
			buttons.each(function(){ // loop through each item
				var me = $(this);
				var isSelected = me.attr(&quot;selected&quot;); // bool value, based on whether the &quot;selected&quot; attribute is present or not
				me.removeAttr(&quot;disabled&quot;); // clear the disabled attribute if present
				me.siblings(&quot;label&quot;).removeClass(&quot;disabled&quot;); // same with the associated label element
				if (isSelected != empty &amp;amp;&amp;amp; isSelected != &quot;&quot;){
					id = $(this).attr(&quot;id&quot;); // set our tmp id var to our currently selected item
				}
			});
			// make sure we have an id, otherwise we&#039;ll get an error
			if (id != empty &amp;amp;&amp;amp; id != &quot;&quot;){
				buttons.each(function(){ // loop through each radio button once again
					if ($(this).attr(&quot;id&quot;) != id){ // set the disabled attributes if id attribute doesn&#039;t match our tmp id var
						$(this).attr(&quot;disabled&quot;, &quot;disabled&quot;).siblings(&quot;label&quot;).addClass(&quot;disabled&quot;);
					}
				});
			}
		}

	});
</pre>
<p>I&#39;ve commented as best I could, which hopefully makes more sense than my rambling above. Once again, there is a <a title="Advanced Radio demo" href="http://flexidev.co.za/dev/code/advancedradio/" target="_blank">working demo available</a> for you to play with. Be sure to have a look at the markup as well, might clear up a few questions.</p>
<p>I strongly suspect that there's a more efficient method for achieving the same result - so if you have a better suggestion, tweak or link please let me know - I'd greatly appreciate it.</p>
<h2 class='box demo'><a href='http://flexidev.co.za/dev/code/advancedradio/' title='View Demo'>Live Demo</a></h2>
<h2>Editors Note - PHP Book Giveaway</h2>
<p>I'll be announcing the winner for the <a><em>PHP For Absolute Beginners</em> book giveaway</a> on monday, so now is your last second chance to get your comment in for a chance to win. <a href='http://dev-tips.com/featured/php-for-absolute-beginners-reviewed-giveaway'>See here for more details and to enter.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/awesome-radio-button-grouping-with-jquery/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>5 Advanced CSS Techniques To Increase Your Skill Set</title>
		<link>http://dev-tips.com/featured/5-advanced-css-techniques-to-increase-your-skill-set</link>
		<comments>http://dev-tips.com/featured/5-advanced-css-techniques-to-increase-your-skill-set#comments</comments>
		<pubDate>Fri, 04 Dec 2009 01:15:07 +0000</pubDate>
		<dc:creator>Muhammad Adnan</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=645</guid>
		<description><![CDATA[The number of CSS techniques that can be used to achieve a certain effect is plentiful. As CSS standards progress, so do our options when it comes to working with CSS. Today, we will have a look at 5 advanced CSS techniques that will help to increase your skill set. Tutorial Details Program/Language: CSS Language [...]]]></description>
			<content:encoded><![CDATA[<p>The number of CSS techniques that can be used to achieve a certain effect is plentiful. As CSS standards progress, so do our options when it comes to working with CSS. Today, we will have a look at 5 advanced CSS techniques that will help to increase your skill set.</p>
<p><span id="more-645"></span></p>
<h3>Tutorial Details</h3>
<ul>
<li><b>Program/Language</b>: CSS</li>
<li><b>Language Version</b>: 2.1</li>
<li><b>Difficulty:</b> Beginner/Intermediate</li>
<li><b>Estimated Completion Time:</b> 30 minutes</li>
</ul>
<p>Below you will find a list of the different advanced CSS techniques we will shortly discuss in this article.</p>
<ol>
<li>Scaling the background image to browsers' window size (e.g.Twitter).</li>
<li>Text &#038; image indentation.</li>
<li>Z-index in object elements.</li>
<li>CSS shadows.</li>
<li>CSS user interface enhancements</li>
</ol>
<h3>Scaling the image background to browsers' window size (e.g.Twitter)</h3>
<p>If you take a look at the way Twitter handles user backgrounds, you will notice that there is a sort of scaling effect going on. This helps ensure that the page displays in an aesthetically pleasing way. A few months ago, I had to scale an image to the size of the browser. I tried many solutions, both with and without JavaScript, but they never fit the screen properly. I desired for the background to stay fixed and stretch across the windows size just like Twitter. Finally, I came up with a solution, and I'm going to share that solution with you today.</p>
<p>Let’s begin with the XHTML markup below:</p>
<pre class="brush: html">
		&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
		&lt;head&gt;
			&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
			&lt;title&gt;scaling the background image to browsers window size&lt;/title&gt;
		&lt;/head&gt;
		&lt;body&gt;
			&lt;img src=&quot;images/picture.jpg&quot; id=&quot;background&quot; /&gt;
		&lt;/body&gt;
		&lt;/html&gt;
    </pre>
<p>The above code should be pretty self-explanatory. It is an XHTML document with an inline image in the body, this will serve as the background image for the page.<br />Now, for the content and markup, let's create some DIV elements/sections as seen in the code below:</p>
<pre class="brush: html">
		&lt;div id=&quot;scroller&quot;&gt;
			&lt;div id=&quot;container&quot;&gt;
				&lt;div id=&quot;text-content&quot;&gt;
					&lt;p&gt;
						Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ligula sapien, imperdiet non egestas quis, tristique commodo augue. Nunc vehicula, lacus ac sagittis auctor, sem mauris laoreet neque, sit amet imperdiet enim felis ut enim. Proin vitae ipsum sapien. Donec placerat consequat est, eu dapibus diam vulputate non. Nam ultricies augue in urna aliquam vel posuere nulla tincidunt. Curabitur lectus augue, congue eget sodales vel, elementum eget lectus. Sed eget lobortis elit. Cras vitae rutrum quam. Curabitur eget turpis sit amet ante dignissim auctor ut posuere leo. Vivamus vitae gravida ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non purus urna. Nunc sit amet sem non est lobortis euismod sodales in ante. Phasellus et nunc nisl.
					&lt;/p&gt;&lt;p&gt;
						Nulla porta velit et libero venenatis ornare. Nam adipiscing interdum libero ac commodo. Proin lacinia elementum ornare. Sed sapien lectus, euismod vitae porta in, iaculis non dolor. Morbi vulputate tincidunt sollicitudin. Morbi sit amet fringilla felis. Nulla vitae tortor et massa convallis dictum quis at ipsum. Vivamus a mi vitae justo aliquam volutpat. Nulla sit amet enim libero. Praesent suscipit, erat in consectetur pretium, ipsum urna hendrerit lorem, sit amet placerat nisi lacus pharetra sem. Proin nec felis vitae lectus hendrerit vestibulum. Sed ullamcorper nunc nec turpis molestie ac semper urna accumsan. Pellentesque eget massa arcu. Vivamus vitae quam ut felis vehicula bibendum et vel sapien. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque mollis, sem vitae vulputate pharetra, elit felis aliquet diam, in sagittis enim dui eu justo. Nullam bibendum tincidunt dui eget sollicitudin. Praesent purus orci, suscipit eget sollicitudin in, scelerisque sed sem. Pellentesque et magna neque. Donec vestibulum venenatis arcu, quis pellentesque ipsum laoreet quis.
					&lt;/p&gt;&lt;p&gt;
						Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed malesuada nisi a tellus gravida blandit. Integer id quam ante. Cras non facilisis dui. Phasellus porttitor rhoncus consectetur. Duis nec orci nisi, pulvinar interdum libero. Nulla vel mi volutpat nisi aliquam dapibus sed id velit. Sed commodo pellentesque vulputate. Ut hendrerit orci sit amet mi pellentesque vitae rutrum sapien feugiat. Integer imperdiet quam a massa hendrerit sit amet egestas massa fermentum. Curabitur at massa risus. Mauris aliquet elit id nunc auctor interdum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam lorem magna, dapibus id volutpat id, pretium id tortor. Morbi pharetra elit lectus, quis semper ipsum. Mauris pulvinar consectetur elementum. Nam ullamcorper nisl et est consequat euismod.
					&lt;/p&gt;&lt;p&gt;
						Maecenas lacus massa, malesuada a pulvinar quis, convallis vel lacus. Sed velit lacus, sodales a accumsan nec, convallis nec justo. Donec vitae orci eu ligula semper tincidunt. Pellentesque facilisis urna et nisl tempus porttitor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec ut interdum erat. Pellentesque rutrum justo eu lectus molestie dictum. Pellentesque scelerisque pulvinar metus sit amet sollicitudin. Nullam nisi elit, hendrerit ut tempor id, volutpat et mauris. In hac habitasse platea dictumst. Phasellus elementum pharetra interdum. Phasellus vel velit vel felis vestibulum interdum a ut turpis. Cras facilisis nisl vel elit rutrum in blandit magna pharetra. Integer nec justo in risus fringilla ornare. Praesent ut erat quis orci fermentum placerat sit amet id purus. Proin nec nulla ligula. Ut nibh elit, pulvinar a porttitor sed, pulvinar id justo. Quisque est dui, facilisis non commodo sed, molestie volutpat justo. Nunc ligula purus, tincidunt et varius sit amet, vehicula vel tortor.
					&lt;/p&gt;&lt;p&gt;
						Duis ut ligula ut augue iaculis porta sed id metus. Duis ultricies tempor orci dapibus convallis. In hac habitasse platea dictumst. Aenean at velit magna, ac hendrerit lorem. Nam facilisis leo in nulla ullamcorper tempus. Duis odio orci, fringilla sed suscipit vel, luctus nec lorem. Maecenas convallis sagittis ultricies. Cras consectetur tristique metus nec tristique. Integer ultricies sem velit, et pulvinar odio. Maecenas quis sollicitudin eros. Ut eget justo non velit tincidunt rhoncus ac eget nunc. Proin quis urna turpis. Pellentesque id mauris diam, id aliquam metus. Curabitur vitae semper mauris. Morbi fringilla pharetra lectus. Ut diam nisl, egestas ac lacinia sed, sodales quis felis. Integer ante enim, interdum eu dictum vitae, sagittis vel tortor. Maecenas dignissim, nisl sed scelerisque molestie, tellus justo fermentum ligula, sit amet venenatis quam turpis quis diam.
					&lt;/p&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	</pre>
<p>There are three separate id containers: scroller, container, and text-content. The 'scroller' is used to move everything inside of it. In this case, the divs and content inside it.<br />
<br />See the preview of your code in your favorite browser.</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/1.JPG" border="0" alt="scaling the background image" /></div>
<p>Scroll down and you will see that the text is below your image, as demonstrated below:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/2.JPG" border="0" alt="scaling the background image"  /></div>
<p>We will now add the necessary CSS that will stretch the image to fit the screen. The image will be stationary and the text will move around if needed.</p>
<pre class="brush: css">
&lt;style type=&quot;text/css&quot;&gt;
html, body {
	margin:0;
	padding:0;
	width:100%;
	height:100%;
	overflow:hidden;
}
#background {
	position:absolute;
	z-index:1;
	width:99%;
	height:100%;
}
#scroller {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	overflow:auto;
	z-index:2;
}
#container {
	margin-left:25%;
}
#text-content {
	background-color:#CCC;
	width:600px;
	padding:10px;
	margin-top:60px;
}
&lt;/style&gt;
</pre>
<p>Let’s go through the above CSS code step by step.</p>
<pre class="brush: css">
html, body {
	margin:0;
	padding:0;
	width:100%;
 	height:100%;
	overflow:hidden;
}
</pre>
<p>The margin and padding is set to 0 to overwrite the default browser CSS settings. We set the width and height of the image to <code>100%</code> and set overflow to <code>hidden</code>. After applying this above CSS, your page should look like the following:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/3.JPG" border="0" alt="scaling the background image" /></div>
<p>You will notice that there are no scrollbars at right side and all of the text is hidden; This is because of the use of the overflow:hidden property.</p>
<pre class="brush: css">
#background{
	position:absolute;
	z-index:1;
	width:100%;
	height:100%;
}
</pre>
<p>Now, we set both the width and height of the image to 100% for the background to fully stretch to the size of the screen. We will get to why we are using <code>z-index</code> shortly. Using the above snippet, our page now looks like:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/4.JPG" border="0" alt="scaling the background image"  /></div>
<p>Now our background image is fixed to the screen.</p>
<pre class="brush: css">
#scroller{
	position:absolute;
	width:100%;
	height:100%;
	top:0
	left:0;
	overflow:auto;
	z-index:2;
}
</pre>
<p>Styling the scrolling div is pretty simple, <code>z-index</code> is used to place the scroller on top of the background image - the <code>overflow:auto</code> property makes it scrollable when the contents of the scroller take up more room than provided. In other words, the content will be moving while the background is fixed. Let's take a look at the page now:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/5.JPG" border="0" alt="scaling the background image" /></div>
<pre class="brush: css">
#container{
	margin-left:25%;
}

#text-content
{
	background-color:#CCC;
	width:600px;
	padding:10px;
	margin-top:60px;
}
</pre>
<p>In the CSS code above, I've applied some basic styling to the content. The page will now look like:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/6.PNG" border="0" alt="scaling the background image to browser's size" /></div>
<p>You are free to use any of this code according to your needs. It is a nice example to demonstrate how you can stretch an image to the browser's size.</p>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/scaled-background.html" target="_blank" title="Scaling the image background to browsers' window size (e.g.Twitter)">View Scaled Background Demo</a></h2>
<h3>Images and text-indent</h3>
<p>As web developers, we are very used to using multiple images on our websites to achieve certain effects or outcomes.. If you want a professional CSS style, and improved SEO with images, you should write CSS in a separate file instead of via inline-css. Our HTML file will be smaller and search engines will crawl it faster and recognize them better. Let's see an example of using images with CSS in a better way.</p>
<p>Basic HTML markup:</p>
<pre class="brush: html">
	&lt;div id=&quot;map&quot;&gt;This is the map of Pakistan, indicating my city Sialkot. &lt;/div&gt;
</pre>
<p>Preview of above markup:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/7.jpg" border="0" alt="Images and text-indent" /></div>
<p>First, we shall apply some CSS to the above DIV:</p>
<pre class="brush: css">
#map{
	position:relative;
	background-image:url(images/map.jpg);
	background-repeat:no-repeat;
	width:382px;
	height:296px;
}
</pre>
<p>After applying the CSS style, this is what the page looks like:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/8.jpg" border="0" alt="Images and text-indent" /></div>
<p>There is some text on top of the image, which will be crawled by search engines. We need to hide this from the user, though. You may be thinking about using the display:none; property, but, our purpose is to show the text when search engines crawl our webpage. Here is the updated code:</p>
<pre class="brush: css">
#map{
	position:relative;
	background-image:url(map.jpg);
	background-repeat:no-repeat;
	width:382px;
	height:296px;
	text-indent:-9999px;
}
</pre>
<p><code>text-indent:-9999px;</code> is the property used to move the text away from the screen, rather than removing it completely. Click here to see more details on <strong><a href="http://www.w3.org/TR/CSS2/text.html" title="Text-indent at w3.org">text-indent</a></strong>.<br />
<br />Your page will now look something like this:</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/9.jpg" border="0" alt="Images and text-indent" /></div>
<p>Try the <strong><a href="http://chrispederick.com/work/web-developer/" title="Web Developer Firefox plugin">web developer</a></strong> Firefox plug-in to disable the CSS style and then see your website preview</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/10.jpg" border="0" alt="Images and text-indent" /></div>
<blockquote><p>You may know about CSS sprites, that they improve load times and decreases the number of HTTP requests that are made. But using the text-indent property with sprites makes the navigation even more fascinating for SEO as well. If you don't know about CSS sprites then take a look at some of the links below <br />
<a href="http://net.tutsplus.com/videos/screencasts/exactly-how-to-use-css-sprites/" title="CSS Sprites">http://net.tutsplus.com/videos/screencasts/exactly-how-to-use-css-sprites/</a><br />
<a href="http://css-tricks.com/css-sprites/" title="CSS Sprites">http://css-tricks.com/css-sprites/</a></p></blockquote>
<p>In your CSS, you can set the background images and text-indent accordingly.</p>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/text-indent-and-images.html" target="_blank" title="demo of Images and text-indent">View Text Indent Demo</a></h2>
<h3>Z-index in an object tag.</h3>
<h4>What is z-index?</h4>
<p>Elements have 3 positioning dimensions - X (horizontal), Y(vertical) and Z(depth). z-index is how deep down an element is - an element with a higher z-index is placed above an element with a lower z-index. Z-index must be an integer and can only work on elements that have explicitly been given a position property (absolute or relative).</p>
<p>One of my previous issues was fixing the z-index position in an object tag. The solution was very interesting, so let's it now!</p>
<p>Z-Index doesn't work with the object tag. So, after some research and several attempts, I reached a solution which I'll show you here:</p>
<pre class="brush: html">
&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;
  &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/u1zgFlCw8Aw&amp;rel=1&amp;color1=0x2b405b&amp;
    color2=0x6b8ab6&amp;border=1&amp;fs=1&quot;&gt;&lt;/param&gt;
  &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
  &lt;embed wmode=&quot;transparent&quot; src=&quot;http://www.youtube.com/v/u1zgFlCw8Aw&amp;rel=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1&amp;fs=1&quot;
    type=&quot;application/x-shockwave-flash&quot;
    width=&quot;425&quot; height=&quot;355&quot;
    allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;
	&lt;/object&gt;
</pre>
<p>In the embed tag, you will notice that I used the <b>wmode="transparent"</b> property. This sets the video into transparent mode. For flash files, see the below snippet:</p>
<pre class="brush: html">
&lt;object id=&quot;FlashID&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;660&quot; height=&quot;95&quot;&gt;
    &lt;param name=&quot;movie&quot; value=&quot;Flash-banner.swf&quot;&gt;
    &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
    &lt;param name=&quot;wmode&quot; value=&quot;opaque&quot;&gt;
    &lt;param name=&quot;swfversion&quot; value=&quot;8.0.35.0&quot;&gt;
    &lt;!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --&gt;
    &lt;param name=&quot;expressinstall&quot; value=&quot;Scripts/expressInstall.swf&quot;&gt;
    &lt;!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --&gt;
    &lt;!--[if !IE]&gt;--&gt;
    &lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;Flash-banner.swf&quot; width=&quot;660&quot; height=&quot;95&quot;&gt;
      &lt;!--&lt;![endif]--&gt;
      &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
      &lt;param name=&quot;wmode&quot; value=&quot;opaque&quot;&gt;
      &lt;param name=&quot;swfversion&quot; value=&quot;8.0.35.0&quot;&gt;
      &lt;param name=&quot;expressinstall&quot; value=&quot;Scripts/expressInstall.swf&quot;&gt;
      &lt;!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --&gt;
      &lt;div&gt;
		&lt;h4&gt;Content on this page requires a newer version of Adobe Flash Player.&lt;/h4&gt;
		&lt;p&gt;&lt;a href=&quot;http://www.adobe.com/go/getflashplayer&quot;&gt;&lt;img src=&quot;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&quot; alt=&quot;Get Adobe Flash player&quot; width=&quot;112&quot; height=&quot;33&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;!--[if !IE]&gt;--&gt;
    &lt;/object&gt;
    &lt;!--&lt;![endif]--&gt;
  &lt;/object&gt;
</pre>
<p>This part of the code is quite interesting, so I would suggest that you try viewing the page with and without these tags.</p>
<pre class="brush: html">  &lt;param name=&quot;wmode&quot; value=&quot;opaque&quot;&gt;</pre>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/z-index-objects-tag.html" target="_blank" title="demo of Z-index in an object tag">View Z-Index Object Demo</a></h2>
<h3>CSS Shadows</h3>
<p>If your job is to convert PSD to XHTML/CSS you must be dealing with shadows of images in the PSD that you are going to work on. You must be looking some solution to apply the shadows in CSS instead of taking the images from PSD. Applying shadows to images/text via CSS is a good way to reduce your file size.
</p>
<p></p>
<p>There are two CSS3 properties to give shadows in web pages:</p>
<p>1. Text-shadow</p>
<p>2. Box-shadow</p>
<h4>Text-shadow:</h4>
<p>If you want to give shadow to your Text in webpage then use the text-shadow css3 property.Let's move step by step to achieve this goal.</p>
<p>1. Wrap the text with a DIV, as seen below:</p>
<pre class="brush: html">
            &lt;h2&gt;Text Shadow&lt;/h2&gt;
            &lt;div class=&quot;txt_shadow&quot;&gt;
                            Envato - Nettuts+
            &lt;/div&gt;
</pre>
<p>2. Here is the css style that is used to give shadows to above text:</p>
<pre class="brush: css">
h2{
color:#FF0000;
text-decoration:underline;}
.txt_shadow{
font-size:38px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-shadow:2px 12px #999;  /*x-axis y-axis color*/
}
</pre>
<p>Above css style is pretty simple to follow, text-shadow property is used for styling the text shadows. It takes 2 arguments. 1st is x-axis that scales the shadow to right side. 2nd is the y-axis that scales the shadow to down. If we set the negative value to x-axis it will scale the shadow to left and if we set the y-axis to negative it will scale the shadow to up.After applying the above html/css your text shadow will look alike below: </p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/singletext.jpg" border="0"  width="600" alt="Text Shadow"/></div>
<p>3. Let's make this more attracting by adding the blur to shadow.</p>
<pre class="brush: html">
&lt;h2&gt;Text Shadow with blur&lt;/h2&gt;

&lt;div class=&quot;txt_blur_shadow&quot;&gt;
	Envato - Nettuts+
&lt;/div&gt;
</pre>
<pre class="brush: css">
.txt_blur_shadow{
font-size:38px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-shadow:2px 2px 5px #999;  /*x-axis y-axis blur color*/
}
</pre>
<p>See the text-shadow property clearly. We added 4 arguments now. 3rd one is new that is used to blur the shadow. After applying the above styling the resulting text will be </p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/singletextblur.jpg" border="0"  width="600" alt="Text Shadows with blur"/></div>
<p>Looks pretty clean with blur <img src='http://dev-tips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Isn’t it ? </p>
<p>4. You can add even multiple shadows to your text. Its CSS style will be </p>
<pre class="brush: css">
.txt_multiple_shadow{
font-size:38px;
font-family:Verdana, Arial, Helvetica, sans-serif;
text-shadow:2px 12px #999,5px -5px #999;  /* 1st style[x-axis y-axis color], 2nd style[x-axis y-axis color] */
}
</pre>
<p>See the text-shadow property; we used multiple styles of shadows separated by commas. You can even use blur with it too.  After adding the above style it will look alike this </p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/multipleshadowtext.jpg" border="0"  width="600" alt="CSS Multiple Text Shadows"/></div>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/css-shadows-text.html" target="_blank" title="demo of CSS Text Shadows">Click here to view the demo </a></h2>
<h4>Box-shadow:</h4>
<p>The great way to give a shadow to an image in your webpage is use box-shadow property. Let’s see how to style the image shadows.</p>
<p>1. Take a picture of which you want to apply drop shadow. I selected a picture of my son <img src='http://dev-tips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>2. Wrap the image with a DIV, as seen below:</p>
<pre class="brush: html">
&lt;h2&gt;Image Shadow&lt;/h2&gt;

&lt;div class=&quot;img_blur_shadow&quot;&gt;
	&lt;img src=&quot;http://dev-tips.com/post_img/adnan/11.jpg&quot; alt=&quot;&quot; width=&quot;540&quot; height=&quot;380&quot;   /&gt;
&lt;/div&gt;
</pre>
<p>3. CSS style to apply shadow to above markup </p>
<pre class="brush: css">
.img_blur_shadow{
width:540px;
height:380px;
border:1px solid #000000;
padding:2px;
box-shadow:1px 1px 10px #999;  /*[x-axis y-axis blur color]*/
-moz-box-shadow:1px 1px 10px #999;
-webkit-box-shadow:1px 1px 10px #999;
}
</pre>
<p>Box-shadow property cannot be recognized by every browser. So, we used –moz-box-shadow for Firefox and –webkit-box-shadow property for chrome/web kit engines. Arguments for box-shadow are same like text-shadow.  Output of above html/css markup will be </p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/singleshadowimage.jpg" border="0"  width="587" alt="My Son and Me in CSS Image Shadows"/></div>
<p>4. Even, you can drop multiple shadows, like we have seen previously for text, for images also.HTML/CSS will be </p>
<pre class="brush: html">
&lt;h2&gt;Multiple Image Shadows&lt;/h2&gt;

&lt;div class=&quot;img_multiple_shadow&quot;&gt;
	&lt;img src=&quot;images/174955.jpg&quot; alt=&quot;&quot; width=&quot;540&quot; height=&quot;380&quot;   /&gt;
&lt;/div&gt;
</pre>
<pre class="brush: css">
.img_multiple_shadow{
width:540px;
height:380px;
border:1px solid #000000;
padding:2px;
box-shadow:1px 1px 10px #999,1px 1px 10px red;  /*[x-axis y-axis blur color]*/
-moz-box-shadow:1px 1px 10px #999,1px 1px 10px red;
-webkit-box-shadow:1px 1px 10px #999,1px 1px 10px red;
}
</pre>
<p>The above code is pretty easy to understand if you have followed how to multiple shadows with text. It has same number of arguments and you can use number of multiple shadows separated by commas.</p>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/css-shadows_image.html" target="_blank" title="demo of CSS Image Shadows">View CSS Shadows Demo</a></h2>
<h3>CSS UI Enhancements</h3>
<p>While working on my latest project, I had a few strange issues I was running into. First of all, when I try to select the text in Firefox it didn't turn blue like in IE Browsers. Secondly, when the user clicks on a link, an dotted outline appears around the link. This was especially annoying because I was using text-indent with the links.</p>
<h4>Text Selection Highlight Color</h4>
<p>To create a highlight color when text is selected, I use the following code:</p>
<pre class="brush: css">
/*Mozilla browser selection*/
::-moz-selection{
	background: #69f;
	color:#fff;
}
/*Other browsers selection except IE */
::selection {
	background:#69F;
	color:#fff;
}
</pre>
<h4>Remove Border Outline around links</h4>
<p>I went over some popular websites and was shocked when I saw they had the same problem - an outline appears around the link. A few of the popular websites are listed below with their screen shots.</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/13.PNG" border="0" alt="sitepoint outline issue" /></div>
<p>Even the BBC website is facing this issue.</p>
<div class="tutorial_image"><img src="http://dev-tips.com/post_img/adnan/14.PNG" border="0" alt="BBC outline issue" /></div>
<p>So the solution for removing this outline is:</p>
<pre class="brush: css">
a:link, a:hover, a:visited{
	outline:none;
}
</pre>
<h4>Attribute-Specific Icons</h4>
<p>Do you want to have file icons next to your links? Add PDF icons next to your .PDF links, MS WORD icons next to your .doc links, so on and so forth. This is a great way to make links describe what they're pointing to.<br />The code for specifying the attribute icons is:</p>
<pre class="brush: css">
a[href$=&#039;.pdf&#039;]{
	padding:0 20px 0 0;
	background-image:url(images/Print.ico);
	background-position:right;
	background-repeat:no-repeat;
}
a[href$=&#039;.doc&#039;]{
	padding:0 20px 0 0;
	background-image:url(images/docs.ico);
	background-position:right;
	background-repeat:no-repeat;
}
</pre>
<h2 class='box demo'><a href="http://dev-tips.com/demo/5advancedCSS/ui.html" target="_blank" title="demo of CSS user interface enhancements">View UI Demo</a></h2>
<h3>Conclusion</h3>
<p>In this tutorial, we have learned the advanced techniques of CSS that can solve some tricky issues. Luckily, most if not all of these techniques are easy to understand and implement. If you know of any other techniques to solve these problems, please share them with the world and post them in the comments area.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/5-advanced-css-techniques-to-increase-your-skill-set/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Link Nudge jQuery Plugin</title>
		<link>http://dev-tips.com/featured/link-nudge-jquery-plugin</link>
		<comments>http://dev-tips.com/featured/link-nudge-jquery-plugin#comments</comments>
		<pubDate>Wed, 05 Aug 2009 21:06:02 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=499</guid>
		<description><![CDATA[I think it was David Walsh who first showed me the idea of link nudging using jQuery. You can see on the sidebar we also use this technique. I haven't seen a plugin made to do this yet (as it is really simple) so I figured this would be perfect for a quick jQuery plugin [...]]]></description>
			<content:encoded><![CDATA[<p>I think it was <a href='http://davidwalsh.name/jquery-link-nudging'>David Walsh who first showed me</a> the idea of link nudging using jQuery. You can see on the sidebar we also use this technique. I haven't seen a plugin made to do this yet (as it is really simple) so I figured this would be perfect for a quick jQuery plugin tutorial. You can download the plugin and/or view the demo below.</p>
<p><span id="more-499"></span></p>
<h2 class='box demo'><a href='http://dev-tips.com/demo/link_nudge.html' title='Link Nudge Demo'>View Demo</a></h2>
<div class='download_orange'><a class="downloadlink" href="http://dev-tips.com/wp-content/plugins/download-monitor/download.php?id=3" title="Version 1.0 downloaded 772 times" >jQuery Link Nudge Plugin (772) - 19.9 KB</a></div>
<p><strong>Authors Note:</strong><em>This plugin has now been given the name of NudgeIt and has had a lot of new features added! Please see the two updates at the bottom of this page for more information.</em></p>
<h2>The Plugin Javascript</h2>
<p>Creating the plugin is simple and is as easy as creating any other jQuery plugin. I'll try to comment the source code some so you can get an idea of how it all works.</p>
<p></p><p><strong><a href='http://snipplr.com/view/17929/jquery-link-nudge-plugin'>jQuery Link Nudge Plugin</a></strong><br/><small>Posted by <a href='http://snipplr.com/users/DrewDouglass'>DrewDouglass</a> on August 5th, 2009</small><br/><small>Plugin Source.</small></p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Define the plugin, named 'linkNudge' </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.<span style="color: #006600;">fn</span>.<span style="color: #006600;">linkNudge</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>params<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//set default parameters </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params = $.<span style="color: #006600;">extend</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding: <span style="color: #CC0000;">20</span>, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elapseTime: <span style="color: #CC0000;">300</span>, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnPadding: <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#125;</span>, params<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Traverse every node passed </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Define this as a single object </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> $t = $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Proceed to nudge on hover </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $t.<span style="color: #006600;">hover</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $t.<span style="color: #000066;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">css</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'cursor'</span>, <span style="color: #3366CC;">'pointer'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">animate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>paddingLeft: params.<span style="color: #006600;">padding</span><span style="color: #66cc66;">&#125;</span>, params.<span style="color: #006600;">elapseTime</span><span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>, <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $t.<span style="color: #000066;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">animate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>paddingLeft: params.<span style="color: #006600;">returnPadding</span><span style="color: #66cc66;">&#125;</span>, params.<span style="color: #006600;">elapseTime</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>;<span style="color: #009900; font-style: italic;">//Allow for chaining.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#40;</span>jQuery<span style="color: #66cc66;">&#41;</span>;</div><p></p>
<h2>Usage</h2>
<pre class="brush: js">
$(function(){
		$(&#039;ul li:even&#039;).linkNudge({
			elapseTime: 500
		}).css(&#039;list-style-type&#039;, &#039;circle&#039;);//Plugin allows for chaining, as seen with the css call.
	});
</pre>
<h2>Documentation</h2>
<p>To use the plugin, simply include the plugin and jQuery library on your page and make a call to the <code>linkNudge</code> function. You can include three optional parameters, as discussed below.</p>
<ol>
<li><strong>padding</strong> - Allows you to set how far the link should be nudged. Defaults to 20px.</li>
<li><strong>elapseTime</strong> - The time, in milliseconds, over which the nudge should occur. Default to 300.</li>
<li><strong>returnPadding</strong> - Optional padding to return to when the element is no longer being hovered. Defaults to 0.</li>
<h2>Terms of Use</h2>
<p>You can't sell it. Otherwise, use it how you would like in your projects, a credit to this page in the notes or documentation would be appreciated. Donations even more so.</p>
<h2 class='box demo'><a href='http://dev-tips.com/demo/link_nudge.html' title='Link Nudge Demo'>View Demo</a></h2>
<div class='download_orange'><a class="downloadlink" href="http://dev-tips.com/wp-content/plugins/download-monitor/download.php?id=3" title="Version 1.0 downloaded 772 times" >jQuery Link Nudge Plugin (772) - 19.9 KB</a></div>
<h2>Feed Me</h2>
<p>If you have used or enjoy this plugin, I urge you to consider making a small donation so I can buy some Chinese food.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="7298669">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<h2><strong>Update:</strong></h2>
<p>David Walsh has modified the flexibility of the plugin in a <a href='http://davidwalsh.name/jquery-link-nudge'>new post on his blog</a>. I encourage all of you to give it a look and download and see how they differ. You can find <a href='http://davidwalsh.name/jquery-link-nudge'>Davids plugin on his website</a>. Thanks for adding on to and improving the plugin David!</p>
<h2><strong>Update Two!</strong></h2>
<p>David and I have decided to collaborate on this plugin and host it on a <a href='http://github.com/DrewDouglass/NudgeIt'>GitHub</a> so everyone can easily keep track of any updates or changes. We are now also calling the plugin, quite appropriately, <strong>NudgeIt</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/link-nudge-jquery-plugin/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Showing Code on WordPress Posts with Snipplr!</title>
		<link>http://dev-tips.com/featured/showing-code-on-wordpress-posts-with-snipplr</link>
		<comments>http://dev-tips.com/featured/showing-code-on-wordpress-posts-with-snipplr#comments</comments>
		<pubDate>Sun, 12 Jul 2009 05:03:31 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Client Side]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dev-tips.com/?p=471</guid>
		<description><![CDATA[If you haven't used Snipplr yet, or are unsure what Snipplr is, it is basically a code pasting/sharing site on the surface. I recently signed up for an account, after looking at a lot of different places to store small snippets (bigger projects get stored GitHub) and found Snipplr to be a really excellent application. [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven't used <a href='http://snipplr.com' title='Snipplr Home Page'>Snipplr</a> yet, or are unsure what Snipplr is, it is basically a code pasting/sharing site on the surface. I recently signed up for an account, after looking at a lot of different places to store small snippets (bigger projects get stored GitHub) and found Snipplr to be a really excellent application. Today, I'm going to go over how to display code on your WordPress site using a Snipplr plugin and a snippet of your choice, I'll also be talking about some of the cooler features of Snipplr. </p>
<p><span id="more-471"></span></p>
<h2>A Quick Note</h2>
<p>Before I continue, I want to note that I am in no way shape or form in business with or getting paid at all by snipplr or anyone else for this post. I just found Snipplr to be a cool application and decided to share some things with you all <img src='http://dev-tips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  /end disclaimer</p>
<h2>What does Snipplr do?</h2>
<div><img src='http://dev-tips.com/post_img/snipplr_home.jpg' alt='Snipplr Home Page Screenshot' /></div>
<p>A simple look at the about page will answer that question for you:</p>
<p>
<blockquote>With Snipplr you can keep all of your frequently used code snippets in one place that's accessible from any computer. You can share your code with other visitors and use what they post, too. Did we mention that Snipplr works with TextMate? Yeah, we rock.</p></blockquote>
<h2>Notable Features</h2>
<ul>
<li>Tons of programming languages to choose from, all with slightly different syntax highlighting.</li>
<li>The ability to add the original URL you found the snippet (if one exsists), you can also add the original author and any comments about the source code. Giving credit where it's due FTW!</li>
<li>Ability to tag and favorite any snippet you wish for easy organization.</li>
<li>Features integrate into TextMate. Furthermore, there are quite a few applications Snipplr integrates with.</li>
<li>Ability to download a backup copy of all of your snippets. I thought this was an especially cool feature.</li>
<li>Add others to your 'watchlist', which is other peoples snippets that interest you (much like Twitter, if you find someones snippets to be awesome, you can follow and keep track of them). By the way, <a href='http://snipplr.com/users/DrewDouglass/' title='Watch me on Snipplr'>you guys can follow me on snipplr anytime</a> <img src='http://dev-tips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </li>
<li>An API key and available API. In addition, a Snipplr WordPress plugin that we will be using later in this article</li>
</ul>
<p>Hopefully, the above features will convince you to give Snipplr a look. Let's move on and get to displaying code snippets on our blog using the Snipplr plugin.</p>
<h2>Download the plugin</h2>
<div><img src='http://dev-tips.com/post_img/snipplr_plugin.jpg' alt='Snipplr Plugin Page' /></div>
<p>The first thing you will need to do is <a href='http://snipplr.com/developer/wordpress/' title='Download the Snipplr Plugin'>download the WordPress Snipplr plugin</a>, which will allow you to display any snippet you want, anywhere on your blog using WordPress short codes.</p>
<h2>Grab your API key</h2>
<div><img src='http://dev-tips.com/post_img/settings.jpg' alt='Settings Page' /></div>
<p>Next, you will need to grab your API key on the settings page. You will need to register an account to receive an API key, which should take all of 3 seconds or so. Navigate to the bottom of the settings page and copy your API key to your clipboard.</p>
<h2>Add a snippet</h2>
<p>Add whatever code it is you are wanting to display on your blog by clicking new snippet. Fill in the appropriate fields and click 'Post'. Now you can forever go back to that snippet if you need quick access to it or have any issues with your blog. Moving on...</p>
<h2>Activate the plugin</h2>
<p>After installing the plugin, activate the plugin and go to the Snipplr configuration page in your admin panel. Paste in your API key and set your Snipplr preferences.</p>
<h2>Using the shortcode</h2>
<p>We're nearly there. Now when you go to write a new post, use the snipplr shortcode <code>[ snippet = id ]</code> without spaces and replace id with the snippets ID number. You can find the snippet ID number in the URL of the snippet you wish to share.</p>
<h2>Example below</h2>
<p>Below you will find an example of the Snipplr plugin in use. The snippet is getting pulled from my Snipplr account and displayed according to the settings I have set for the plugin.</p>
<p></p><p><strong><a href='http://snipplr.com/view/16892/gpc-magic-quotes-runtime-stripping'>GPC Magic Quotes Runtime Stripping</a></strong><br/><small>Posted by <a href='http://snipplr.com/users/DrewDouglass'>DrewDouglass</a> on July 11th, 2009</small><br/><small>All credit for this code goes to the all mighty Fou-Lou of codingforums.com (link given).</small></p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #000066;">function_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'get_magic_quotes_gpc'</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <a href="http://www.php.net/get_magic_quotes_gpc"><span style="color: #000066;">get_magic_quotes_gpc</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arr</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arr</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arr</span> <span style="color: #b1b100;">AS</span> <span style="color: #0000ff;">$arrKey</span> =&gt; <span style="color: #0000ff;">$arrVal</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$arr</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$arrKey</span><span style="color: #66cc66;">&#93;</span> = GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arrVal</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_string"><span style="color: #000066;">is_string</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arr</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$arr</span> = <a href="http://www.php.net/stripslashes"><span style="color: #000066;">stripslashes</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$arr</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$arr</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">$_GET</span> = GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_GET</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">$_POST</span> = GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">$_COOKIE</span> = GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_COOKIE</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_FILES</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_FILES</span> <span style="color: #b1b100;">AS</span> <span style="color: #0000ff;">$key</span> =&gt; <span style="color: #0000ff;">$val</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$_FILES</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'tmp_name'</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>, <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\\</span>'</span>, <span style="color: #0000ff;">$val</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'tmp_name'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">$_FILES</span> = GPCStrip<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_FILES</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #000066;">function_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'set_magic_quotes_runtime'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/set_magic_quotes_runtime"><span style="color: #000066;">set_magic_quotes_runtime</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div><p></p>
<h2>Check out the functions links!</h2>
<p>I didn't even notice this until I was previewing this post, but if you hover over the functions in the above code, you will see that they all link to the functions in the php manual! That's a very user friendly feature of this plugin.</p>
<h2>Follow me on Snipplr!</h2>
<p>Feel free to <a href='http://snipplr.com/users/DrewDouglass/'>follow me on Snipplr</a>. If you're already on, leave your Snipplr link in the comments and I'll try to keep you on my watch list if I find it interesting. Have fun and use it responsibly, always give credit where it is due!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev-tips.com/featured/showing-code-on-wordpress-posts-with-snipplr/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

