<?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>DevGrow &#187; Freebies</title> <atom:link href="http://devgrow.com/category/freebies/feed/" rel="self" type="application/rss+xml" /><link>http://devgrow.com</link> <description>Tips on web development, web design and online marketing</description> <lastBuildDate>Sun, 05 Sep 2010 02:37:49 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>20 Free Fonts Every Web Designer Should Have</title><link>http://devgrow.com/20-free-fonts-every-web-designer-should-have/</link> <comments>http://devgrow.com/20-free-fonts-every-web-designer-should-have/#comments</comments> <pubDate>Mon, 23 Aug 2010 23:24:02 +0000</pubDate> <dc:creator>Monji</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[design]]></category> <category><![CDATA[fonts]]></category> <category><![CDATA[freebies]]></category> <category><![CDATA[web design]]></category><guid isPermaLink="false">http://devgrow.com/?p=1633</guid> <description><![CDATA[As a web designer I&#8217;m always on the lookout for great-looking free fonts to use in my projects. I&#8217;ve compiled a list of some of my favorite fonts from 3 great sites: DaFont, 1001 Fonts and FontSpace. Check them out and leave a comment if you use them: Bebas Neue Swansea Katy Berry Bradbury Sans [...]<ul><li><a href="http://devgrow.com/free-photoshop-invoice-template/" rel="bookmark">Free Photoshop Invoice Template</a></li><li><a href="http://devgrow.com/iphone-style-switches/" rel="bookmark">iPhone Style Radio and Checkbox Switches using jQuery and CSS</a></li></ul> ]]></description> <content:encoded><![CDATA[<p>As a web designer I&#8217;m always on the lookout for great-looking free fonts to use in my projects.  I&#8217;ve compiled a list of some of my favorite fonts from 3 great sites: <a href="http://www.dafont.com/">DaFont</a>, <a href="http://www.1001fonts.com/">1001 Fonts</a> and <a href="http://www.fontspace.com/">FontSpace</a>.  Check them out and leave a comment if you use them:<span id="more-1633"></span></p><div class="divider"></div><h2><a href="http://www.dafont.com/bebas-neue.font">Bebas Neue</a></h2><p><a href="http://www.dafont.com/bebas-neue.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/bebas-neue.jpg" alt="" title="bebas-neue" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/roger-white/swansea">Swansea</a></h2><p><a href="http://www.fontspace.com/roger-white/swansea"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/swansea.jpg" alt="" title="swansea" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.1001freefonts.com/KatyBerry.php">Katy Berry</a></h2><p><a href="http://www.1001freefonts.com/KatyBerry.php"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/katy-berry.jpg" alt="" title="katy-berry" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/manfred-klein/bradbury-sans-light">Bradbury Sans Light</a></h2><p><a href="http://www.fontspace.com/manfred-klein/bradbury-sans-light"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/bradbury-sans-light.jpg" alt="" title="bradbury-sans-light" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.1001freefonts.com/SFOldRepublic.php">SF Old Republic</a></h2><p><a href="http://www.1001freefonts.com/SFOldRepublic.php"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/sf-old-republic.jpg" alt="" title="sf-old-republic" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/28-days-later.font">28 Days Later</a></h2><p><a href="http://www.dafont.com/28-days-later.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/28-days-later.jpg" alt="" title="28-days-later" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/prismtone/ptf-nordic">PTF Nordic</a></h2><p><a href="http://www.fontspace.com/prismtone/ptf-nordic"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/ptf-nordic.jpg" alt="" title="ptf-nordic" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/que-fontita.font">Que FONTita!</a></h2><p><a href="http://www.dafont.com/que-fontita.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/que-fontita.jpg" alt="" title="que-fontita" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.1001freefonts.com/Grantham.php">Grantham</a></h2><p><a href="http://www.1001freefonts.com/Grantham.php"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/grantham.jpg" alt="" title="grantham" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/bandung-hardcore-gp.font">Bandung Hardcore</a></h2><p><a href="http://www.dafont.com/bandung-hardcore-gp.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/bandung-hardcore.jpg" alt="" title="bandung-hardcore" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/ghettomarquee.font">Ghetto Marquee</a></h2><p><a href="http://www.dafont.com/ghettomarquee.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/ghetto-marquee.jpg" alt="" title="ghetto-marquee" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/manfred-klein/sansumi">Sansumi</a></h2><p><a href="http://www.fontspace.com/manfred-klein/sansumi"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/sansumi.jpg" alt="" title="sansumi" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/times-new-yorker.font">Times New Yorker</a></h2><p><a href="http://www.dafont.com/times-new-yorker.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/times-new-yorker.jpg" alt="" title="times-new-yorker" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/expressway.font">Expressway</a></h2><p><a href="http://www.dafont.com/expressway.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/expressway.jpg" alt="" title="expressway" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/zden%C4%9Bk-gromnica/elementalend">Elementale</a></h2><p><a href="http://www.fontspace.com/zden%C4%9Bk-gromnica/elementalend"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/elementale.jpg" alt="" title="elementale" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/clementine-sketch.font">Clementine Sketch</a></h2><p><a href="http://www.dafont.com/clementine-sketch.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/clementine-sketch.jpg" alt="" title="clementine-sketch" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/nymphont/caviar-dreams">Caviar Dreams</a></h2><p><a href="http://www.fontspace.com/nymphont/caviar-dreams"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/caviar-dreams.jpg" alt="" title="caviar-dreams" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.1001freefonts.com/Boister.php">Boister</a></h2><p><a href="http://www.1001freefonts.com/Boister.php"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/boister.jpg" alt="" title="boister" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.dafont.com/comfortaa.font">Comfortaa</a></h2><p><a href="http://www.dafont.com/comfortaa.font"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/comfortaa.jpg" alt="" title="comfortaa" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2><a href="http://www.fontspace.com/glitch/base">Base</a></h2><p><a href="http://www.fontspace.com/glitch/base"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/base.jpg" alt="" title="base" width="600" height="150" class="aligncenter size-full wp-image-1719" /></a></p><div class="divider"></div><h2>Conclusion</h2><p>Like I said above, if you use any of these fonts, leave a comment or a link so we can check it out.  If you have any other free font suggestions leave those as well, as I&#8217;d love to add them to my collection.</p><p>And as always, please <a href="http://feeds.feedburner.com/devgrow">subscribe to the RSS feed</a> and <a href="http://twitter.com/ThinkDevGrow">follow us on Twitter</a>!</p> <img src="http://devgrow.com/?ak_action=api_record_view&id=1633&type=feed" alt="" /><ul><li><a href="http://devgrow.com/free-photoshop-invoice-template/" rel="bookmark">Free Photoshop Invoice Template</a></li><li><a href="http://devgrow.com/iphone-style-switches/" rel="bookmark">iPhone Style Radio and Checkbox Switches using jQuery and CSS</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://devgrow.com/20-free-fonts-every-web-designer-should-have/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Free Photoshop Invoice Template</title><link>http://devgrow.com/free-photoshop-invoice-template/</link> <comments>http://devgrow.com/free-photoshop-invoice-template/#comments</comments> <pubDate>Mon, 02 Aug 2010 22:14:17 +0000</pubDate> <dc:creator>Monji</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[ballpark]]></category> <category><![CDATA[billing]]></category> <category><![CDATA[blinksale]]></category> <category><![CDATA[free]]></category> <category><![CDATA[freebies]]></category> <category><![CDATA[freshbooks]]></category> <category><![CDATA[invoice]]></category> <category><![CDATA[Resources]]></category><guid isPermaLink="false">http://devgrow.com/?p=1634</guid> <description><![CDATA[I finally got around to redesigning my client invoice template and I&#8217;ve decided to share it with you guys. It&#8217;s in PSD format and you&#8217;re free to use it for whatever you&#8217;d like! Simply open the document in Photoshop, add new items, save it as a PDF and email it to your clients &#8211; a [...]<ul><li><a href="http://devgrow.com/20-free-fonts-every-web-designer-should-have/" rel="bookmark">20 Free Fonts Every Web Designer Should Have</a></li></ul> ]]></description> <content:encoded><![CDATA[<p>I finally got around to redesigning my client invoice template and I&#8217;ve decided to share it with you guys.  It&#8217;s in PSD format and you&#8217;re free to use it for whatever you&#8217;d like!  Simply open the document in Photoshop, add new items, save it as a PDF and email it to your clients &#8211; a few quick steps to a professional invoice.<span id="more-1634"></span></p><h2><span>Invoice Preview</span></h2><p><a href="http://devgrow.com/files/invoice.pdf"><img src="http://cdn.devgrow.com/wp-content/uploads/2010/08/invoice.jpg" alt="" title="Sample Invoice" width="600" height="776" class="aligncenter size-full wp-image-1635" /></a></p><h2><span>Download</span></h2><p>The following is a PSD organized into multiple layers and folders.  Use the invoice template however you&#8217;d like, feel free to change it and redistribute it as you see fit!<br /><center><a href="http://devgrow.com/files/invoice.zip" class="download-button">Download PSD (zip file)</a></center></p><h3><span>Feedback</span></h3><p>The invoice design itself takes a lot of influence from several web apps, including <a href="http://ballparkapp.com/">Ballpark</a>, <a href="http://freshbooks.com/">Freshbooks</a> and <a href="http://blinksale.com/">Blinksale</a>.  I personally don&#8217;t send that many of them so I haven&#8217;t signed up for their services, however if you work with a lot of clients on a monthly basis, be sure to check them out!</p><p>As always, any feedback is highly appreciated!  Also, please be sure to subscribe to the <a href="http://feeds.feedburner.com/devgrow">RSS feed</a> and <a href="http://twitter.com/ThinkDevGrow">follow us</a> on Twitter.</p> <img src="http://devgrow.com/?ak_action=api_record_view&id=1634&type=feed" alt="" /><ul><li><a href="http://devgrow.com/20-free-fonts-every-web-designer-should-have/" rel="bookmark">20 Free Fonts Every Web Designer Should Have</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://devgrow.com/free-photoshop-invoice-template/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Sharebar WordPress Plugin</title><link>http://devgrow.com/sharebar-wordpress-plugin/</link> <comments>http://devgrow.com/sharebar-wordpress-plugin/#comments</comments> <pubDate>Wed, 09 Jun 2010 20:50:14 +0000</pubDate> <dc:creator>Monji</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[plugins]]></category> <category><![CDATA[sharebar]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://devgrow.com/?p=1167</guid> <description><![CDATA[Sharebar adds a dynamic and fully customizable vertical box to the left of a blog post that contains links/buttons to popular social networking sites.  For wide blogs, a vertical bar with popular sharing icons appears on the left of your post.  If the page is resized, the vertical bar disappears and a horizontal sharebar appears under the post title.<ul><li><a href="http://devgrow.com/15-awesome-new-wordpress-plugins/" rel="bookmark">15 Awesome New WordPress Plugins</a></li><li><a href="http://devgrow.com/simple-threaded-comments-with-jcollapsible/" rel="bookmark">Simple Threaded Comments with jCollapsible (new jQuery Plugin)</a></li><li><a href="http://devgrow.com/griddy-overlay/" rel="bookmark">Griddy: Simple Grid Overlay Plugin for jQuery</a></li></ul> ]]></description> <content:encoded><![CDATA[<ul id="sharebar"><li><script type="text/javascript">(function(){var s=document.createElement("SCRIPT"),s1=document.getElementsByTagName("SCRIPT")[0];s.type="text/javascript";s.async=true;s.src="http://widgets.digg.com/buttons.js";s1.parentNode.insertBefore(s,s1);})();</script><a class="DiggThisButton DiggMedium"></a></li><li><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="ThinkDevGrow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li><li><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="normal-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></li><li><a href="mailto:?subject=http://devgrow.com/sharebar-wordpress-plugin/" class="sharebar-button email">Email</a></li><li class="credit"><a href="http://devgrow.com/sharebar" target="_blank">Sharebar</a></li></ul><ul id="sharebarx"><li><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="ThinkDevGrow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li><li><a title="Post to Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></li><li><script type="text/javascript">(function(){var s=document.createElement("SCRIPT"),s1=document.getElementsByTagName("SCRIPT")[0];s.type="text/javascript";s.async=true;s.src="http://widgets.digg.com/buttons.js";s1.parentNode.insertBefore(s,s1);})();</script><a class="DiggThisButton DiggCompact"></a></li><li><a href="mailto:?subject=http://devgrow.com/sharebar-wordpress-plugin/" class="sharebar-button email">Email</a></li></ul><div style="clear:both;"></div><p class="note"><strong>Note:</strong> I&#8217;m moving support for this plugin from the comments to the <a href="http://devgrow.com/discuss/forum/plugins">Discussion Forum</a> in hopes of keeping things more organized.  Please post your support questions and requests there.</p><p>My first ever WordPress plugin! <strong>Sharebar</strong> adds a dynamic and fully customizable vertical box to the left of a blog post that contains links/buttons to popular social networking sites.  For wide blogs, a vertical bar with popular sharing icons appears on the left of your post.  If the page is resized, the vertical bar disappears and a horizontal sharebar appears under the post title.<span id="more-1167"></span></p><p>This Sharebar isn&#8217;t a new idea at all, in fact the plugin is meant to mimic <a href="http://mashable.com/2010/06/08/feather-report/">Mashable&#8217;s bar</a> almost exactly.  I most recently saw the effect on <a href="http://www.inc.com/">Inc. Magazine</a> and after trying to find a plugin for it without success, I decided to make one myself.  As with all of my plugins, I tried to keep things simple but customizable, so some effects were sacrificed for performance gains.</p><h2>Try it Out!</h2><p>I&#8217;ve enabled the plugin on this page so you can try it out &#8211; it should appear to the left of the post.  If you resize the browser to less than 1000px, the sharebar should disappear from the left and a horizontal Sharebar will appear beneath the post title.</p><h2>Download</h2><p>You can view the <a href="http://wordpress.org/extend/plugins/sharebar/">plugin details</a> at <a href="http://www.wordpress.org/">WordPress.org</a> or <a href="http://devgrow.com/plugins/sharebar/r">view a simple demo</a>.<br /><center><a href="http://downloads.wordpress.org/plugin/sharebar.zip" class="download-button">Sharebar WordPress Plugin (zip)</a><a href="http://devgrow.com/plugins/sharebar/" class="download-button" style="margin-left:20px;">View Demo</a></center></p><h2>Usage Instructions</h2><p>WordPress makes the process pretty painless: download the plugin, upload it to your plugins directory and activate it in the WordPress admin panel.  The plugin is enabled automatically when you activate it so that&#8217;s really all there is to it.</p><h2>Settings and Customization</h2><p>You can change nearly everything about the plugin from the Sharebar settings page (in the WordPress admin under Settings).  The main page displays all of the active plugins &#8211; from here you can change their order, edit the button code or delete them.  You can also add new buttons or reset them to the default configuration, which features TweetMeme, Facebook, Google Buzz, Digg and a standard e-mail button.</p><p><img src="http://cdn.devgrow.com/wp-content/uploads/2010/06/settings1.png" alt="" title="Sharebar Main Settings Page" width="600" height="200" class="aligncenter size-full wp-image-1172" /><br /> The Settings page allows you to disable the plugin from automatically adding the sharebars &#8211; this is useful if you&#8217;d like to position them somewhere other than before the post content.  You might need to do this if your template or theme uses the overflow CSS position, as that may sometimes prevent the Sharebar from being visible outside of it&#8217;s container element.  You can also disable the horizontal share bar that appears beneath the post title, change the location of the main vertical Sharebar (left or right) or adjust the offset/margin of the Sharebar element.</p><p><img src="http://cdn.devgrow.com/wp-content/uploads/2010/06/settings2.png" alt="" title="Sharebar Settings Page" width="600" height="120" class="aligncenter size-full wp-image-1170" /><br /> Lastly, you can also change the way the Sharebar element itself looks by modifying the CSS file found in the plugin folder.  The design of the bar is meant to generic, feel free to customize it to fit your needs.</p><h2>Compatability</h2><p>I&#8217;ve tested the plugin on Firefox 3, IE7, Safari, Chrome and Opera &#8211; it seems to work fine in all of them.  How it looks on your blog can depend on your theme and CSS files, however, so check those files first to identify the problem (the overflow:hidden; CSS declaration can hide the bar at times).</p><h2>Final Remarks</h2><p>Since this is my first WordPress plugin, please let me know what you think and if it&#8217;s useful to you.  I&#8217;d love to hear suggestions on how to improve it.  This is my first public foray into WordPress development but I&#8217;ve also been making a lot of progress on my custom themes framework, I think a lot of you will like them once they&#8217;re released as well.  Also, all of the files are on Github, so feel free to fork away!</p><p>As always, please <a href="http://feeds.feedburner.com/devgrow">subscribe to RSS feed</a> or <a href="http://twitter.com/ThinkDevGrow">follow me on Twitter</a> for more posts and goodies like this.</p> <img src="http://devgrow.com/?ak_action=api_record_view&id=1167&type=feed" alt="" /><ul><li><a href="http://devgrow.com/15-awesome-new-wordpress-plugins/" rel="bookmark">15 Awesome New WordPress Plugins</a></li><li><a href="http://devgrow.com/simple-threaded-comments-with-jcollapsible/" rel="bookmark">Simple Threaded Comments with jCollapsible (new jQuery Plugin)</a></li><li><a href="http://devgrow.com/griddy-overlay/" rel="bookmark">Griddy: Simple Grid Overlay Plugin for jQuery</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://devgrow.com/sharebar-wordpress-plugin/feed/</wfw:commentRss> <slash:comments>104</slash:comments> </item> <item><title>iPhone Style Radio and Checkbox Switches using jQuery and CSS</title><link>http://devgrow.com/iphone-style-switches/</link> <comments>http://devgrow.com/iphone-style-switches/#comments</comments> <pubDate>Fri, 26 Mar 2010 18:29:42 +0000</pubDate> <dc:creator>Monji</dc:creator> <category><![CDATA[Freebies]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[css]]></category> <category><![CDATA[design]]></category> <category><![CDATA[forms]]></category> <category><![CDATA[iphone]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[web design]]></category><guid isPermaLink="false">http://devgrow.com/?p=402</guid> <description><![CDATA[For my latest project, I created a great interface for an administration panel, complete with great looking forms and buttons. The one thing that stuck out like a sore thumb, however, were the ugly radio buttons and checkboxes I had to use repeatedly throughout the panel, so I decided to fix them. I found a [...]<ul><li><a href="http://devgrow.com/slidernav/" rel="bookmark">SliderNav: iPhone Style Contact Lists Using jQuery and CSS</a></li><li><a href="http://devgrow.com/slick-animated-menus-using-only-css3/" rel="bookmark">Slick Animated Menus Using Only CSS3</a></li><li><a href="http://devgrow.com/super-simple-css-buttons/" rel="bookmark">Super Simple CSS Buttons</a></li></ul> ]]></description> <content:encoded><![CDATA[<p>For my latest project, I created a great interface for an administration panel, complete with great looking forms and buttons.  The one thing that stuck out like a sore thumb, however, were the ugly radio buttons and checkboxes I had to use repeatedly throughout the panel, so I decided to fix them.<span id="more-402"></span> I found <a href="http://blog.pengoworks.com/index.cfm/2009/9/3/Create-iPhonestyle-buttons-with-the-iButton-jQuery-Plugin">a</a> <a href="http://tdreyno.github.com/iphone-style-checkboxes/">few</a> <a href="http://awardwinningfjords.com/2009/06/16/iphone-style-checkboxes.html">plugins</a> that achieved what I wanted, however they were all pretty hefty in file size.  My version doesn&#8217;t look <em>as</em> cool but makes up for it in file size, weighing less than 3kb and using only one image.</p><div class="dl-wrap"><a href="http://devgrow.com/examples/iphone-style-switches.zip" class="download-button">Download Files Now</a></div><h4>The Effect in Action:</h4><p><iframe width="400" height="100" src="http://devgrow.com/examples/switch.html" style="border:none; margin: 15px 0 5px 150px;"></iframe><br /> This is in an iframe, however you can also <a href="http://devgrow.com/examples/switch.html">view the page</a> itself.  In my example, I left the actual input fields visible, in a real world use you should hide them using CSS.  Feel free to reuse the source code, or follow the steps below:</p><h4>Prerequisites</h4><p>You need just two things for this to work correctly: <a href="http://jquery.com/">JQuery 1.3.2+</a> and the <a href="http://devgrow.com/examples/switch.gif">switch.gif</a> image file used for the backgrounds (both included in the zip file).  After you have those two files, follow the steps below:</p><h3><span>Step 1</span> The HTML</h3><div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;field switch&quot;</span>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio1&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;field&quot;</span> &nbsp;<span style="color: #000066;">checked</span> <span style="color: #66cc66;">/</span>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio2&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;field&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cb-enable selected&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Enable<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio2&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cb-disable&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Disable<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br /> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br /> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;field switch&quot;</span>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cb-enable&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>On<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cb-disable selected&quot;</span>&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span>Off<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;field2&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br /> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span></div></td></tr></tbody></table></div><h3><span>Step 2</span> The Javascript</h3><div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <br /> &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cb-enable&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> parent <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.switch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cb-disable'</span><span style="color: #339933;">,</span>parent<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.checkbox'</span><span style="color: #339933;">,</span>parent<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'checked'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cb-disable&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> parent <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parents</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.switch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cb-enable'</span><span style="color: #339933;">,</span>parent<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.checkbox'</span><span style="color: #339933;">,</span>parent<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'checked'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div><h3><span>Step 3</span> The CSS</h3><div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #6666ff;">.cb-enable</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.cb-disable</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.cb-enable</span> span<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.cb-disable</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">switch.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-enable</span> span<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.cb-disable</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-enable</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-90px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-disable</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-180px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-disable</span><span style="color: #6666ff;">.selected</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-30px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-disable</span><span style="color: #6666ff;">.selected</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #933;">-210px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-enable</span><span style="color: #6666ff;">.selected</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-60px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.cb-enable</span><span style="color: #6666ff;">.selected</span> span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.switch</span> label <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #6666ff;">.switch</span> input <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div><p>Alternatively, you could use a single hidden input field and change the value of it using JQuery.  I used this method mainly to illustrate the effect works, as you can actually see the form values changing (to make sure it works).</p><p>I know it doesn&#8217;t have the fancy animation effects of the alternatives but give it a shot and let me know what you guys think!</p><p><strong>Edit:</strong> If you look back a few posts, I mentioned that the new JQuery UI includes this functionality.  While I considered it for this project, I didn&#8217;t need any of the other features offered by JQuery UI, so I opted to create my own simpler version (and save 30-40kb in file size).</p> <img src="http://devgrow.com/?ak_action=api_record_view&id=402&type=feed" alt="" /><ul><li><a href="http://devgrow.com/slidernav/" rel="bookmark">SliderNav: iPhone Style Contact Lists Using jQuery and CSS</a></li><li><a href="http://devgrow.com/slick-animated-menus-using-only-css3/" rel="bookmark">Slick Animated Menus Using Only CSS3</a></li><li><a href="http://devgrow.com/super-simple-css-buttons/" rel="bookmark">Super Simple CSS Buttons</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://devgrow.com/iphone-style-switches/feed/</wfw:commentRss> <slash:comments>32</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 1254/1334 objects using disk
Content Delivery Network via media1.devgrow.com

Served from: devgrow.com @ 2010-09-06 06:51:02 -->