<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="wordpress/2.3.3" --><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>DeDestruct</title>
	<link>http://www.dedestruct.com</link>
	<description>Providing Web Design &amp; Web Development Resources - A Multi-Author Web Journal</description>
	<pubDate>Mon, 08 Dec 2008 11:55:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Dedestruct" type="application/rss+xml" /><feedburner:emailServiceId>Dedestruct</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FDedestruct" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FDedestruct" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FDedestruct" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FDedestruct" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FDedestruct" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>Thanks for Subscribing to the DeDestruct.com Feed. If you are new to rss or need help subscribing to your reader/email drop me a line at info@dedestruct.com</feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Javascript Image Zoom Effect</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/5pul0coescc/</link>
		<comments>http://www.dedestruct.com/2008/08/07/javascript-image-zoom-effect/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 15:00:08 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Resources]]></category>

		<category><![CDATA[effect]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/08/07/javascript-image-zoom-effect/</guid>
		<description><![CDATA[
Simple Image Zoom Effects
Asked by Gina  a design student

how do i write code in javascript or html.. for..when i click on the image , the image shoud enlarge


Fancy Zoom
Cabel has released his in-page javascript zoom effect library, as seen on the Panic website.
How to Use:
1. Download the FancyZoom package from Cabel&#8217;s Blog http://www.cabel.name/2008/02/fancyzoom-10.html
2.Add the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3179/2740891189_ae137f1c6e_o.jpg" alt="Javascript Fanc Zoom"  class="screenshot_large border" height="219" width="473"></p>
<h2>Simple Image Zoom Effects</h2>
<p><strong>Asked by Gina  a design student</strong></p>
<blockquote><p>
how do i write code in javascript or html.. for..when i click on the image , the image shoud enlarge
</p></blockquote>
<p><span id="more-186"></span><br />
<strong>Fancy Zoom</strong></p>
<p>Cabel has released his in-page javascript zoom effect library, as seen on the <a href="http://www.panic.com">Panic website</a>.</p>
<p><strong>How to Use:</strong></p>
<p>1. Download the FancyZoom package from Cabel&#8217;s Blog <a href="http://www.cabel.name/2008/02/fancyzoom-10.html">http://www.cabel.name/2008/02/fancyzoom-10.html</a></p>
<p>2.Add the following two lines of code to the <head> section at the top of your web page(s):</p>
<blockquote class="code"><p>
&lt;script src=&#8221;/js-global/FancyZoom.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;/js-global/FancyZoomHTML.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;
</p></blockquote>
<p>3.Add onload=&#8221;setupZoom()&#8221; inside your page&#8217;s existing <body> tag. For example:</p>
<blockquote class="code"><p>
&lt;body id=&#8221;whatever&#8221; [&#8230;] onload=&#8221;setupZoom()&#8221;&gt;
</p></blockquote>
<p>4. Done! links to images in your page will automatically zoom the images when clicked.</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/resources/" title="View all posts in Resources" rel="category tag">Resources</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/effect/" rel="tag">effect</a> | <a href="http://www.dedestruct.com/tag/javascript/" rel="tag">javascript</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2007/12/21/how-to-debug-javascript-in-ie-6-ask-a-question/" rel="bookmark" title="December 21, 2007">How-To: Debug JavaScript in IE 6 [Ask a Question]</a></li>
<li><a href="http://www.dedestruct.com/2008/02/09/hide-referer-external-website/" rel="bookmark" title="February 9, 2008">How-To: Hide Website Referer from External Websites</a></li>
<li><a href="http://www.dedestruct.com/2007/12/21/how-to-private-variables-in-javascript-objects/" rel="bookmark" title="December 21, 2007">How-To: Create Private Variables in Javascript Objects</a></li>
<li><a href="http://www.dedestruct.com/2007/12/22/how-to-embed-flash-swfs-with-valid-code/" rel="bookmark" title="December 22, 2007">How-To: Embed Flash / SWFs With Valid Code</a></li>
<li><a href="http://www.dedestruct.com/2008/02/17/how-to-optimize-loading-of-hover-images/" rel="bookmark" title="February 17, 2008">How-To: Optimize Loading of Hover Images</a></li>
</ul><!-- Similar Posts took 21.133 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/5pul0coescc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/08/07/javascript-image-zoom-effect/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/08/07/javascript-image-zoom-effect/</feedburner:origLink></item>
		<item>
		<title>Easy to Learn resources for Web Design beginners</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/kJJ7kT2ORlo/</link>
		<comments>http://www.dedestruct.com/2008/08/07/easy-to-learn-resources-for-web-design-beginners/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:07:09 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Resources]]></category>

		<category><![CDATA[books]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/08/07/easy-to-learn-resources-for-web-design-beginners/</guid>
		<description><![CDATA[Asked by Shaheel.S working in design from India
 Of all the vast resources available in learning the XHTML and CSS, which one is easier for beginners to learn from. 
There are a lot of web design resources for beginners, But lets focus on just 3 kinds.
Paid
If you can afford them Lynda.com offers some great online [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Asked by Shaheel.S working in design from India</strong></p>
<blockquote><p> <strong>Of all the vast resources available in learning the XHTML and CSS, which one is easier for beginners to learn from. </strong></p></blockquote>
<p>There are a lot of web design resources for beginners, But lets focus on just 3 kinds.</p>
<p><strong>Paid</strong><br />
If you can afford them <a href="http://www.lynda.com">Lynda.com</a> offers some great online tutorials that beginners can take at their own pace. These are interactive video tutorials and require a monthly subscription of approx $25/month.</p>
<p><strong>Free</strong><br />
A free alternative is the popular <a href="http://www.w3schools.com/">W3Schools</a> Online tutorials and reference website.</p>
<p><strong>Paper</strong><br />
There is a wealth of well-written and easy to follow HTML and CSS Books,  I recommended buying this one after you finish the online tutorials.<a href="http://www.amazon.com/gp/product/0321509021?ie=UTF8&amp;tag=dedestruct-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321509021">Bulletproof Web Design</a> by <em>Dan Cederholm</em>. This books takes examples of websites that are not coded well and then shows you how to make it better.</p>
<p><strong>Other beginners and semi-professionals, where did you look to start learning HTML and CSS ?</strong></p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/resources/" title="View all posts in Resources" rel="category tag">Resources</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/books/" rel="tag">books</a> | <a href="http://www.dedestruct.com/tag/css/" rel="tag">css</a> | <a href="http://www.dedestruct.com/tag/html/" rel="tag">html</a> | <a href="http://www.dedestruct.com/tag/tutorials/" rel="tag">Tutorials</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/02/06/how-to-using-php-to-change-the-color-of-urls/" rel="bookmark" title="February 6, 2008">How-To: Using PHP to change the color of URLs</a></li>
<li><a href="http://www.dedestruct.com/2007/12/16/the-krushers-top-5-tips-for-beginners/" rel="bookmark" title="December 16, 2007">The krushers top 5 tips for beginners</a></li>
<li><a href="http://www.dedestruct.com/2008/05/25/web-20-design-traits/" rel="bookmark" title="May 25, 2008">Web 2.0 Design Traits</a></li>
<li><a href="http://www.dedestruct.com/2008/03/12/how-to-extract-people-and-objects-in-photoshop/" rel="bookmark" title="March 12, 2008">How-To: Extract People and Objects in Photoshop</a></li>
<li><a href="http://www.dedestruct.com/2008/02/22/creating-view-cart-links-for-paypal-based-shopping-carts/" rel="bookmark" title="February 22, 2008">Creating &#8216;View Cart&#8217; Links for PayPal shopping carts.</a></li>
</ul><!-- Similar Posts took 329.056 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/kJJ7kT2ORlo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/08/07/easy-to-learn-resources-for-web-design-beginners/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/08/07/easy-to-learn-resources-for-web-design-beginners/</feedburner:origLink></item>
		<item>
		<title>Omoplata setup</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/BnFG5hCyZKE/</link>
		<comments>http://www.dedestruct.com/2008/06/26/omaplata-setup/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 16:40:36 +0000</pubDate>
		<dc:creator>Kris Crousore</dc:creator>
		
		<category><![CDATA[News &#38; Events]]></category>

		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/06/26/omaplata-setup/</guid>
		<description><![CDATA[how do you set up an omoplata from bottom half guard?
Asked by Otto lai, a pretty cool guy from San Diego
Thanks for the random question of the month otto. For those few that are not into MMA or Brazilian Jiu-Jitsu (BJJ) an omoplata is a shoulder lock applied with your legs. And half guard is [...]]]></description>
			<content:encoded><![CDATA[<h2>how do you set up an omoplata from bottom half guard?</h2>
<p><strong>Asked by Otto lai, a pretty cool guy from San Diego</strong></p>
<p>Thanks for the random question of the month otto. For those few that are not into <a href="http://en.wikipedia.org/wiki/Mixed_martial_arts" target="_blank">MMA</a> or <a href="http://en.wikipedia.org/wiki/Brazilian_Jiu-Jitsu" target="_blank">Brazilian Jiu-Jitsu (BJJ)</a> an <a href="http://en.wikipedia.org/wiki/Omoplata#Omoplata_.28Ashi-garami.2Fsankaku-garami.2Fude-garami.29" target="_blank">omoplata</a> is a shoulder lock applied with your legs. And half guard is the position between full guard and side mount or full mount when the fighter on the bottom has control of one leg. Enjoy.</p>
<p><object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/izOKqOptQxA&#038;hl=en"></param><embed src="http://www.youtube.com/v/izOKqOptQxA&#038;hl=en" type="application/x-shockwave-flash" width="425" height="344"></embed></object></p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/news-events/" title="View all posts in News &#38; Events" rel="category tag">News &#38; Events</a>,  <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a>,  <a href="http://www.dedestruct.com/category/tutorials/" title="View all posts in Tutorials" rel="category tag">Tutorials</a><br />
					
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/03/06/how-to-cross-browser-css-transparent-divs-with-opaque-content/" rel="bookmark" title="March 6, 2008">Cross-Browser CSS Transparency with Opaque Content</a></li>
<li><a href="http://www.dedestruct.com/2008/02/26/interactive-shopping-carts-with-shopify/" rel="bookmark" title="February 26, 2008">Interactive Shopping Carts With Shopify</a></li>
<li><a href="http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/" rel="bookmark" title="March 22, 2008">HowTo: Cross-Browser Cursor Position in Textareas</a></li>
<li><a href="http://www.dedestruct.com/2008/02/14/save-for-web-with-adobe-photoshop/" rel="bookmark" title="February 14, 2008">Save for web with Adobe Photoshop</a></li>
<li><a href="http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/" rel="bookmark" title="June 24, 2008">Designing for Internet Exploder 6</a></li>
</ul><!-- Similar Posts took 92.576 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/BnFG5hCyZKE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/06/26/omaplata-setup/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/06/26/omaplata-setup/</feedburner:origLink></item>
		<item>
		<title>Designing for Internet Exploder 6</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/Ut9crYzbytY/</link>
		<comments>http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 11:40:16 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/</guid>
		<description><![CDATA[Is there a definitive checklist for IE6 testing?
Asked by Jay Stonch a design student from San Diego
 What conventional considerations are there for IE when designing a website?
I understand that there are box model differences, but is there, like, a &#8220;definitive checklist&#8221;
of things you need to adjust for when designing across browsers?
We dont have a [...]]]></description>
			<content:encoded><![CDATA[<h2>Is there a definitive checklist for IE6 testing?</h2>
<p><strong>Asked by Jay Stonch a design student from San Diego</strong></p>
<blockquote><p> <strong>What conventional considerations are there for IE when designing a website?</strong><br />
I understand that there are box model differences, but is there, like, a <em>&#8220;definitive checklist&#8221;</em><br />
of things you need to adjust for when designing across browsers?</p></blockquote>
<p><strong>We dont have a <em>&#8220;definitive checklist&#8221;</em> for Internet Explorer and tend to squash bugs as we go</strong></p>
<p><strong>BUT</strong> before you even tackle the problems of IE6, remember to code using web standards and test early and often. Ensure you have valid code, javascript included. Also make sure you have a full, valid doctype.</p>
<p><strong>But a checklist is probably a good idea so lets start building one.</strong></p>
<p><span id="more-184"></span></p>
<p><strong>1. The PNG Issue</strong></p>
<p>Internet Explorer does not support transparent PNGs by default and you have to load them through the AlphaImageLoader or use the htc method. Both are explained in detail by Kris Crousore here: <a href="http://www.dedestruct.com/2008/01/13/cross-browser-transparency-with-png/">Cross Browser Transparency with PNG</a>.</p>
<p><strong>2. The min-width issue</strong></p>
<p>Internet Explorer does not support the CSS min-width and min-height properties. Some people use the IE Dynamic Expression to set the width. Ive had mixed success with this method and recommend designing around it instead of using the hack.</p>
<blockquote class="code"><p>/* Dynamic Expression */<br />
width: expression(document.body.clientWidth &lt; 910 ? &#8220;900px&#8221; : &#8220;100%&#8221; );<br />
}</p>
<p><a href="http://www.javascriptkit.com/dhtmltutors/dynproperty.shtml">learn more about Dynamic Expressions here.</a></p></blockquote>
<p><strong>3. The double margin bug</strong></p>
<p>Internet Explorer doubles margins on floated elements when the margin is on the same side as the float. These floated elements need to be display:inline.</p>
<p><strong>4. Clearing Floats</strong></p>
<p>Clearing floats in IE is challenging. Some people clear floats by adding an empty div or a horizontal rule with the clear:both property. Most of the time the problem is the parent div.</p>
<blockquote><p> <a href="http://jasoncypret.com/2008/05/09/my-css-techniques-for-working-with-browser-bugs/"><br />
Jason says: </a> When ever you float an element add an overflow:hidden property to it. Suddenly that div is now seeing the floating div. Also adding a hard width and height can fix this as well, but who works in absolutes (pun intended).</p></blockquote>
<p><strong>5. Ordered Lists</strong></p>
<p>Sometimes IE6 doesn&#8217;t display the padding when you add background images to a numbered list. I havent seen this consistently and switch to using a un-ordered list if this happens.</p>
<p><strong>6. Can Has Layout ?</strong></p>
<p><a href="http://www.satzansatz.de/cssd/onhavinglayout.html">satzansatz.de explains hasLayout as:</a></p>
<blockquote><p>     Layout is an IE/Win proprietary concept that determines how elements draw and bound their content, interact with and relate to other elements, and react on and transmit application/user events.</p>
<p>This quality can be irreversibly triggered by some CSS properties. Some HTML elements have &#8220;layout&#8221; by default.</p>
<p>Microsoft developers decided that elements should be able to acquire a &#8220;property&#8221; (in an object-oriented programming sense) they referred to as hasLayout, which is set to true when this rendering concept takes effect.</p></blockquote>
<p>hasLayout can cause some strange effects with some elements especially margin issues where some block elements seem to behave as inline ones. An easy way to spot hasLayout issues is the <a href="http://www.google.co.uk/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3Ffamilyid%3De59c3964-672d-4511-bb3e-2d5e1db91038&amp;ei=49dgSMv4CJmSwQGn46WCDA&amp;usg=AFQjCNEFCIZRv-rL_JZ9pmEOWIrgTNCy8A&amp;sig2=39-OLEX1_jz0A7og5wbnqg">IE Developers Toolbar.</a></p>
<p>A simple hasLayout Fix is to apply a width or height usually by using the star hack to apply a small height to IE6 and below only. Since IE6 treats any height as a min-height it will therefore resize itself accordingly.</p>
<blockquote class="code"><p> * html #container {<br />
height: 1%;<br />
}</p></blockquote>
<p><strong>7. Small Height Bug</strong></p>
<p>IE6 wont collapse to a smaller height than the base font-size. So it makes the boxes atleast as tall as the base font size.</p>
<p>This can be fixed with a font-size: 0; or overflow:hidden;</p>
<p><strong>8. Pseudo Hover States on Elements</strong></p>
<p>There are none. Except on links and there is no simple CSS Fix. You can use javascript to add the onMouseOver trigger but make sure it degrades gracefully.</p>
<p><strong>9. The Box-Model</strong></p>
<p>Last but not least we have the king of all annoyances itself. The box-model bug. Internet Explorer adds the margin and padding differently from other modern browsers.</p>
<p><img src="http://upload.wikimedia.org/wikipedia/en/7/7b/Box-model-bug.png" class="screenshot" alt="box model" /></p>
<p>The trick is to avoid padding on the container and add it to the child elements instead.</p>
<p><strong>10. ???? </strong><br />
Im sure we have missed some more bugs, anyone care to add them to the comments and I will include them in the post.</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a><br />
					
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2007/12/16/the-krushers-top-5-tips-for-beginners/" rel="bookmark" title="December 16, 2007">The krushers top 5 tips for beginners</a></li>
<li><a href="http://www.dedestruct.com/2008/04/03/how-to-css-conditional-comments/" rel="bookmark" title="April 3, 2008">How-To: CSS Conditional Comments</a></li>
<li><a href="http://www.dedestruct.com/2008/01/13/cross-browser-transparency-with-png/" rel="bookmark" title="January 13, 2008">Cross Browser Transparency with .PNG</a></li>
<li><a href="http://www.dedestruct.com/2008/05/25/web-20-design-traits/" rel="bookmark" title="May 25, 2008">Web 2.0 Design Traits</a></li>
<li><a href="http://www.dedestruct.com/2007/12/27/updating-multiple-image-sizes-in-dreamweaver/" rel="bookmark" title="December 27, 2007">Updating Multiple Image Sizes in Dreamweaver</a></li>
</ul><!-- Similar Posts took 285.334 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/Ut9crYzbytY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/</feedburner:origLink></item>
		<item>
		<title>Picking the right Content Management System [CMS]</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/jLJ2Qy5WsVw/</link>
		<comments>http://www.dedestruct.com/2008/06/07/how-to-pick-cms/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 04:17:29 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/06/07/how-to-pick-cms/</guid>
		<description><![CDATA[Picking the best CMS Solution, Easy to use OR Feature-Heavy?
Asked by Shaun MacDougall a freelance developer from San Diego

	What, in your opinion, would be the best reason to choose a CMS like wordpress over an open source CMS like joomla? or vis versa?

In my experience systems like Joomla and Drupal scare clients
Feature heavy CMS systems [...]]]></description>
			<content:encoded><![CDATA[<h2>Picking the best CMS Solution, Easy to use OR Feature-Heavy?</h2>
<p><strong>Asked by <a href="http://shaunmacdougall.com/">Shaun MacDougall</a> a freelance developer from San Diego</strong></p>
<blockquote><p>
	What, in your opinion, would be the best reason to choose a CMS like wordpress over an open source CMS like joomla? or vis versa?
</p></blockquote>
<p><strong>In my experience systems like Joomla and Drupal scare clients</strong></p>
<p>Feature heavy CMS systems can intimidate clients who hesitate to learn and use them. </p>
<p><span id="more-183"></span><br />
<img src="http://farm4.static.flickr.com/3102/2560434862_e6e77a3e76.jpg" width="500" height="295" alt="Joomla Menu" class="screenshot_large" /><br />
<em>The 3 level deep Joomla menus can confuse even the most web-savy users.</em></p>
<p><strong>This entirely defeats the purpose of building with a CMS.</strong><br />
You will spend more time walking clients through the endless Joomla menus, then it would have taken for you to make the changes in raw HTML yourself. Since the point of Content Management Systems is to allow clients to manage and update the content themselves, it doesn&#8217;t make sense to pick a system that non web-savy users are reluctant to use.</p>
<p><strong>For most websites a simple wordpress based CMS works great.</strong></p>
<ul>
<li>The menus don&#8217;t intimidate clients</li>
<li>Simple WYSIWYG editor makes content changes easy.</li>
<li>Themes are easy to design and build</li>
<li>Plugins are easy to install and use</li>
</ul>
<p><strong>But for certain solutions joomla/drupal are better suited, such as:</strong></p>
<ul>
<li><strong>Extensible User Profiles:</strong> for membership sites and portals</li>
<li><strong>Modifiying the Back-end:</strong> messing with the wordpress core is not recommended</li>
<li><strong>E-Commerce:</strong> plugins exist but wordpress, just doesn&#8217;t perform as well as a dedicated cart system </li>
</ul>
<p><strong>In conclusion your clients and their needs will determine which CMS platform to use.</strong><br />
So pick a CMS that your clients will use without need for handholding.</p>
<p>p.s. Check out the <a href="http://www.makeuseof.com/tag/wordpress-vs-drupal-content-management-systems/">WordPress vs. Drupal - Content Management Systems</a> blog over at MakeUseOf.com</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a><br />
					
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/" rel="bookmark" title="March 18, 2008">How-To: Display Recently Updated Posts in Wordpress</a></li>
<li><a href="http://www.dedestruct.com/2008/03/06/how-to-cross-browser-css-transparent-divs-with-opaque-content/" rel="bookmark" title="March 6, 2008">Cross-Browser CSS Transparency with Opaque Content</a></li>
<li><a href="http://www.dedestruct.com/2007/12/03/how-to-backup-your-firefox-settings-passwords-and-extentions/" rel="bookmark" title="December 3, 2007">How-To: Backup your Firefox Profile</a></li>
<li><a href="http://www.dedestruct.com/2008/02/22/creating-view-cart-links-for-paypal-based-shopping-carts/" rel="bookmark" title="February 22, 2008">Creating &#8216;View Cart&#8217; Links for PayPal shopping carts.</a></li>
<li><a href="http://www.dedestruct.com/2008/02/13/image-protection-and-copyright/" rel="bookmark" title="February 13, 2008">Image Protection and Copyright [Ask a Question]</a></li>
</ul><!-- Similar Posts took 37.871 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/jLJ2Qy5WsVw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/06/07/how-to-pick-cms/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/06/07/how-to-pick-cms/</feedburner:origLink></item>
		<item>
		<title>Web 2.0 Design Traits</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/DzsZNx5Z0-8/</link>
		<comments>http://www.dedestruct.com/2008/05/25/web-20-design-traits/#comments</comments>
		<pubDate>Sun, 25 May 2008 18:40:14 +0000</pubDate>
		<dc:creator>Chris Poteet</dc:creator>
		
		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<category><![CDATA[design]]></category>

		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/05/25/web-20-design-traits/</guid>
		<description><![CDATA[ What are common design elements in &#8220;Web 2.0&#8243;?
Asked by Emelda a designer from India 
Can you please give me a run-down of common Web 2.0 design elements for making my theme?

Hi Elmeda thanks for your question.  Well, there are some common traits in the movement dubbed &#8220;web 2.0.&#8221;

A focus on &#8220;creative minimalism&#8221; with [...]]]></description>
			<content:encoded><![CDATA[<h2> What are common design elements in &#8220;Web 2.0&#8243;?</h2>
<p>Asked by Emelda a designer from India </p>
<blockquote><p>Can you please give me a run-down of common Web 2.0 design elements for making my theme?</p>
</blockquote>
<p>Hi Elmeda thanks for your question.  Well, there are some common traits in the movement dubbed &#8220;web 2.0.&#8221;</p>
<ul>
<li>A focus on &#8220;creative minimalism&#8221; with creative use of white space.</li>
<li>Gradients</li>
<li>Oversized fonts</li>
<li>Oversized headers/footers</li>
<li>Bold use of color</li>
<li>Large icons</li>
</ul>
<p>Here are two articles that go into much more depth then I will here.</p>
<ul>
<li><a href="http://webdesignfromscratch.com/web-2.0-design-style-guide.cfm"> Web 2.0 How-to Design Guide</a><a href="http://webdesignfromscratch.com/web-2.0-design-style-guide.cfm"></a></li>
<li><a href="http://f6design.com/journal/2006/10/21/the-visual-design-of-web-20/">The Visual Design of Web 2.0</a></li>
</ul>
<ol></ol>
<p>But I should warn you that many of these elements are quickly <a href="http://www.modernlifeisrubbish.co.uk/article/8-web-cliches-of-2006">becoming design cliches</a>.  Don&#8217;t fall into the trap of designing something like everyone else has.  Blaze a new trail, be original, but certainly take the good elements common in Web 2.0 design into your projects.</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/design/" rel="tag">design</a> | <a href="http://www.dedestruct.com/tag/web20/" rel="tag">web2.0</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/08/07/easy-to-learn-resources-for-web-design-beginners/" rel="bookmark" title="August 7, 2008">Easy to Learn resources for Web Design beginners</a></li>
<li><a href="http://www.dedestruct.com/2008/02/14/save-for-web-with-adobe-photoshop/" rel="bookmark" title="February 14, 2008">Save for web with Adobe Photoshop</a></li>
<li><a href="http://www.dedestruct.com/2008/01/13/cross-browser-transparency-with-png/" rel="bookmark" title="January 13, 2008">Cross Browser Transparency with .PNG</a></li>
<li><a href="http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/" rel="bookmark" title="June 24, 2008">Designing for Internet Exploder 6</a></li>
<li><a href="http://www.dedestruct.com/2007/12/16/the-krushers-top-5-tips-for-beginners/" rel="bookmark" title="December 16, 2007">The krushers top 5 tips for beginners</a></li>
</ul><!-- Similar Posts took 74.003 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/DzsZNx5Z0-8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/05/25/web-20-design-traits/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/05/25/web-20-design-traits/</feedburner:origLink></item>
		<item>
		<title>How-To: CSS Conditional Comments</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/R5VCaLiqYuo/</link>
		<comments>http://www.dedestruct.com/2008/04/03/how-to-css-conditional-comments/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 04:13:31 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<category><![CDATA[compatability]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/04/03/how-to-css-conditional-comments/</guid>
		<description><![CDATA[Writing User-Agent specific CSS
Asked by Andrew a freelance designer from Chicago

	How come when i have the &#8220;if IE&#8221; link to the css, it doesn&#8217;t change at all?
It&#8217;s linked correctly and the &#8220;if IE&#8221; is correct, but the css just isn&#8217;t showing.
 I think cause the link to the regular css is over-riding the &#8220;if IE&#8221; [...]]]></description>
			<content:encoded><![CDATA[<h2>Writing User-Agent specific CSS</h2>
<p><strong>Asked by Andrew a freelance designer from Chicago</strong></p>
<blockquote><p>
	How come when i have the &#8220;if IE&#8221; link to the css, it doesn&#8217;t change at all?<br />
It&#8217;s linked correctly and the &#8220;if IE&#8221; is correct, but the css just isn&#8217;t showing.<br />
 I think cause the link to the regular css is over-riding the &#8220;if IE&#8221; one. <strong>Why won&#8217;t it work?</strong>
</p></blockquote>
<p><span id="more-180"></span></p>
<p><strong>Right off the top of my head.</strong><br />
If you are using multiple versions of Internet Explorer on the same machine you will experience issues with version targeting like &#8220;If IE&#8221;.So if you are using a <a href="http://browsers.evolt.org/?ie/32bit/standalone">Standalone IE6</a> or <a href="http://tredosoft.com/IE7_standalone">Standalone IE7</a>, refer to the manufacturers of the standalones for workarounds.</p>
<p><strong>Conditional comments and version targeting</strong></p>
<p>Conditional comments only work in Internet Explorer, and are used to target specific versions. They use the HTML Comment structure, <strong>and thus are placed in the HTML not the CSS.</strong></p>
<blockquote class='code'><p>
<cite>Example</cite></p>
<p>&lt;!&#8211;[if IE 6]&gt;<br />
  &lt;link href=&#8221;../ie6.css&#8221; rel=&#8221;stylesheet&#8221; &#8230;&#8230;&#8230;. /&gt;<br />
&lt;![endif]&#8211;&gt;
</p></blockquote>
<p>This makes them perfect for linking to alternate IE only stylesheets, which for example, wouldn&#8217;t use 24-bit PNG transparency etc.</p>
<p><strong>Troubleshooting</strong></p>
<p>This script comes off the very handy <a href="http://www.quirksmode.org/css/condcom.html">Quirksmode.org</a> website. It will run through the different versions available to show you what your browser is behaving as.</p>
<blockquote class='code'><p>
<cite>From: <a href="http://www.quirksmode.org/css/condcom.html">http://www.quirksmode.org/css/condcom.html</a></cite></p>
<p>&lt;p&gt;&lt;!&#8211;[if IE]&gt;<br />
According to the conditional comment this is Internet Explorer&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if IE 5]&gt;<br />
According to the conditional comment this is Internet Explorer 5&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if IE 5.0]&gt;<br />
According to the conditional comment this is Internet Explorer 5.0&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if IE 5.5]&gt;<br />
According to the conditional comment this is Internet Explorer 5.5&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if IE 6]&gt;<br />
According to the conditional comment this is Internet Explorer 6&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if IE 7]&gt;<br />
According to the conditional comment this is Internet Explorer 7&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if gte IE 5]&gt;<br />
According to the conditional comment this is Internet Explorer 5 and up&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if lt IE 6]&gt;<br />
According to the conditional comment this is Internet Explorer lower than 6&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if lte IE 5.5]&gt;<br />
According to the conditional comment this is Internet Explorer lower or equal to 5.5&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if gt IE 6]&gt;<br />
According to the conditional comment this is Internet Explorer greater than 6&lt;br /&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;/p&gt;</p>
</blockquote>
<p>Its always preferable to avoid using conditional targeting and try to work within the css to support the major browsers, but unfortunately the real world sometimes calls for harsher measures.</p>
<p>For the adventurous, try the conditional comments and mix them with progressive enhancement.</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/compatability/" rel="tag">compatability</a> | <a href="http://www.dedestruct.com/tag/css/" rel="tag">css</a> | <a href="http://www.dedestruct.com/tag/internet-explorer/" rel="tag">internet explorer</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/01/13/cross-browser-transparency-with-png/" rel="bookmark" title="January 13, 2008">Cross Browser Transparency with .PNG</a></li>
<li><a href="http://www.dedestruct.com/2008/03/06/how-to-cross-browser-css-transparent-divs-with-opaque-content/" rel="bookmark" title="March 6, 2008">Cross-Browser CSS Transparency with Opaque Content</a></li>
<li><a href="http://www.dedestruct.com/2008/02/18/missing-psd-thumbnails-in-windows-explorer/" rel="bookmark" title="February 18, 2008">Missing PSD thumbnails in Windows Explorer</a></li>
<li><a href="http://www.dedestruct.com/2007/12/16/the-krushers-top-5-tips-for-beginners/" rel="bookmark" title="December 16, 2007">The krushers top 5 tips for beginners</a></li>
<li><a href="http://www.dedestruct.com/2008/06/24/designing-for-internet-exploder-6/" rel="bookmark" title="June 24, 2008">Designing for Internet Exploder 6</a></li>
</ul><!-- Similar Posts took 18.686 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/R5VCaLiqYuo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/04/03/how-to-css-conditional-comments/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/04/03/how-to-css-conditional-comments/</feedburner:origLink></item>
		<item>
		<title>HowTo: Cross-Browser Cursor Position in Textareas</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/u5-Nd-hHXdw/</link>
		<comments>http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 02:58:53 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tips &amp; Tweaks]]></category>

		<category><![CDATA[forms]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/</guid>
		<description><![CDATA[How do I get the current position of the cursor in a TEXTAREA using Javascript?
Asked by Frank Peterson a design student from New York

How do I get the current position of the cursor in a TEXTAREA using Javascript? I&#8217;ve only found scripts on inserting at the current position but not on returning the number of [...]]]></description>
			<content:encoded><![CDATA[<h2>How do I get the current position of the cursor in a TEXTAREA using Javascript?</h2>
<p><strong>Asked by Frank Peterson a design student from New York</strong></p>
<blockquote><p>
How do I get the current position of the cursor in a TEXTAREA using Javascript? I&#8217;ve only found scripts on inserting at the current position but not on returning the number of the cursor&#8217;s position.
</p></blockquote>
<p><span id="more-179"></span></p>
<p><strong>Getting the position of the cursor couldn&#8217;t be easier in Firefox.</strong></p>
<blockquote class='code'><p>
<cite>get selection in firefox, opera, &#8230;</cite><br />
var textarea = document.getElementById(&#8221;myTextArea&#8221;);<br />
textarea.focus();<br />
alert(textarea.selectionStart);
</p></blockquote>
<p><strong>Making it cross-browser</strong></p>
<p>The problem as always is Internet Explorer 6. It returns the &#8217;selectionStart&#8217; as undefined. So we need a way to check for IE6 and use an alternate method.<br />
Luckily there are multiple IE6 workaround available. </p>
<p>This one uses 3 selection ranges.<br />
1) All the text before the cursor<br />
2) The cursor position [including highlighting]<br />
3) All the text after the cursor</p>
<blockquote class='code'><p>
<cite>From: <a href="http://linebyline.blogspot.com/2006/11/textarea-cursor-position-in-internet.html">http://linebyline.blogspot.com/2006/11/textarea-cursor-position-in-internet.html</a></cite></p>
<p>var before_range = document.body.createTextRange();<br />
before_range.moveToElementText(textarea);                    // Selects all the text<br />
before_range.setEndPoint(&#8221;EndToStart&#8221;, selection_range);     // Moves the end where we need it</p>
<p>var after_range = document.body.createTextRange();<br />
after_range.moveToElementText(textarea);                     // Selects all the text<br />
after_range.setEndPoint(&#8221;StartToEnd&#8221;, selection_range);      // Moves the start where we need it</p>
<p>var before_finished = false, selection_finished = false, after_finished = false;<br />
var before_text, untrimmed_before_text, selection_text, untrimmed_selection_text, after_text, untrimmed_after_text;</p>
<p>// Load the text values we need to compare<br />
before_text = untrimmed_before_text = before_range.text;<br />
selection_text = untrimmed_selection_text = selection_range.text;<br />
after_text = untrimmed_after_text = after_range.text;</p>
</blockquote>
<p> Here is the finished code, it sends an alert message when the function cursorPosition(); is called.<br />
You can attach this to an event like keypress, keyup etc. or call it in your functions.</p>
<blockquote class='code'><p>
<cite>Combining the Firefox and IE selection codes</cite><br />
function cursorPosition(){<br />
	var textarea = document.getElementById(&#8221;myTextArea&#8221;);<br />
	textarea.focus();</p>
<p>	// get selection in firefox, opera, &#8230;</p>
<p>	if (typeof(textarea.selectionStart) == &#8216;number&#8217;)</p>
<p>	{	alert(textarea.selectionStart);</p>
<p>	}else if(document.selection){<br />
		var selection_range = document.selection.createRange().duplicate();</p>
<p>		if (selection_range.parentElement() == textarea) {    // Check that the selection is actually in our textarea<br />
		// Create three ranges, one containing all the text before the selection,<br />
		// one containing all the text in the selection (this already exists), and one containing all<br />
		// the text after the selection.<br />
		var before_range = document.body.createTextRange();<br />
		before_range.moveToElementText(textarea);                    // Selects all the text<br />
		before_range.setEndPoint(&#8221;EndToStart&#8221;, selection_range);     // Moves the end where we need it</p>
<p>		var after_range = document.body.createTextRange();<br />
		after_range.moveToElementText(textarea);                     // Selects all the text<br />
		after_range.setEndPoint(&#8221;StartToEnd&#8221;, selection_range);      // Moves the start where we need it</p>
<p>		var before_finished = false, selection_finished = false, after_finished = false;<br />
		var before_text, untrimmed_before_text, selection_text, untrimmed_selection_text, after_text, untrimmed_after_text;</p>
<p>		// Load the text values we need to compare<br />
		before_text = untrimmed_before_text = before_range.text;<br />
		selection_text = untrimmed_selection_text = selection_range.text;<br />
		after_text = untrimmed_after_text = after_range.text;</p>
<p>		// Check each range for trimmed newlines by shrinking the range by 1 character and seeing<br />
		// if the text property has changed.  If it has not changed then we know that IE has trimmed<br />
		// a \r\n from the end.<br />
		do {<br />
		  if (!before_finished) {<br />
		      if (before_range.compareEndPoints(&#8221;StartToEnd&#8221;, before_range) == 0) {<br />
		          before_finished = true;<br />
		      } else {<br />
		          before_range.moveEnd(&#8221;character&#8221;, -1)<br />
		          if (before_range.text == before_text) {<br />
		              untrimmed_before_text += &#8220;\r\n&#8221;;<br />
		          } else {<br />
		              before_finished = true;<br />
		          }<br />
		      }<br />
		  }<br />
		  if (!selection_finished) {<br />
		      if (selection_range.compareEndPoints(&#8221;StartToEnd&#8221;, selection_range) == 0) {<br />
		          selection_finished = true;<br />
		      } else {<br />
		          selection_range.moveEnd(&#8221;character&#8221;, -1)<br />
		          if (selection_range.text == selection_text) {<br />
		              untrimmed_selection_text += &#8220;\r\n&#8221;;<br />
		          } else {<br />
		              selection_finished = true;<br />
		          }<br />
		      }<br />
		  }<br />
		  if (!after_finished) {<br />
		      if (after_range.compareEndPoints(&#8221;StartToEnd&#8221;, after_range) == 0) {<br />
		          after_finished = true;<br />
		      } else {<br />
		          after_range.moveEnd(&#8221;character&#8221;, -1)<br />
		          if (after_range.text == after_text) {<br />
		              untrimmed_after_text += &#8220;\r\n&#8221;;<br />
		          } else {<br />
		              after_finished = true;<br />
		          }<br />
		      }<br />
		  }</p>
<p>		} while ((!before_finished || !selection_finished || !after_finished));</p>
<p>		// Untrimmed success test to make sure our results match what is actually in the textarea<br />
		// This can be removed once you&#8217;re confident it&#8217;s working correctly<br />
		var untrimmed_text = untrimmed_before_text + untrimmed_selection_text + untrimmed_after_text;<br />
		var untrimmed_successful = false;<br />
		if (textarea.value == untrimmed_text) {<br />
		  untrimmed_successful = true;<br />
		}<br />
		// ** END Untrimmed success test</p>
<p>		var startPoint = untrimmed_before_text.length;<br />
		alert(startPoint);</p>
<p>		}<br />
	}<br />
}</p>
</blockquote>
<p><strong>You can test this on the </strong><a href="http://www.dedestruct.com/cursorPosition.html">live demo page</a>.</p>
<p>Big thanks to <a href="http://linebyline.blogspot.com/2006/11/textarea-cursor-position-in-internet.html">http://linebyline.blogspot.com/2006/11/textarea-cursor-position-in-internet.html</a></p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tips-tweaks/" title="View all posts in Tips &amp; Tweaks" rel="category tag">Tips &amp; Tweaks</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/forms/" rel="tag">forms</a> | <a href="http://www.dedestruct.com/tag/javascript/" rel="tag">javascript</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/03/06/how-to-cross-browser-css-transparent-divs-with-opaque-content/" rel="bookmark" title="March 6, 2008">Cross-Browser CSS Transparency with Opaque Content</a></li>
<li><a href="http://www.dedestruct.com/2008/01/13/cross-browser-transparency-with-png/" rel="bookmark" title="January 13, 2008">Cross Browser Transparency with .PNG</a></li>
<li><a href="http://www.dedestruct.com/2007/12/21/how-to-debug-javascript-in-ie-6-ask-a-question/" rel="bookmark" title="December 21, 2007">How-To: Debug JavaScript in IE 6 [Ask a Question]</a></li>
<li><a href="http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/" rel="bookmark" title="March 18, 2008">How-To: Display Recently Updated Posts in Wordpress</a></li>
<li><a href="http://www.dedestruct.com/2008/08/07/javascript-image-zoom-effect/" rel="bookmark" title="August 7, 2008">Javascript Image Zoom Effect</a></li>
</ul><!-- Similar Posts took 61.509 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/u5-Nd-hHXdw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/</feedburner:origLink></item>
		<item>
		<title>How-To: Display Recently Updated Posts in Wordpress</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/U82ZzqxFlno/</link>
		<comments>http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 03:51:12 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/</guid>
		<description><![CDATA[
Get WordPress to show the last 10 posts modified.
Asked by Jamie a Student from Florida

Is there a plugin or hack to get WordPress to show the last 10 posts I&#8217;ve modified. 
I often update my old posts with new information, but I&#8217;d like to have a list of the ones I&#8217;ve just recently updated. 
I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm3.static.flickr.com/2124/2344085417_a556897d95_o.gif" width="473"  alt="How-To: Display Recently Updated Posts in Wordpress" title="How-To: Display Recently Updated Posts in Wordpress" class="screenshot_large border" /></p>
<h2>Get WordPress to show the last 10 posts modified.</h2>
<p><strong>Asked by Jamie a Student from Florida</strong></p>
<blockquote ><p>
<strong>Is there a plugin or hack to get WordPress to show the last 10 posts I&#8217;ve modified.</strong> </p>
<p>I often update my old posts with new information, but I&#8217;d like to have a list of the ones I&#8217;ve just recently updated. </p>
<p>I dont care about recent posts, but recently <strong>UPDATED</strong> ones.
</p></blockquote>
<p><span id="more-178"></span></p>
<h3>Theres plugins to do this, But I&#8217;m going to show you how to code this yourself.</h3>
<p><!--more--></p>
<p>There is a pre-defined Template Tag in wordpress named <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives">wp_get_archives</a>. </p>
<p>By default it only shows  yearly, monthly (Default), daily , weekly or postbypost(date published).</p>
<p>We will base our hack on this function and extend it to sort posts by last updated.</p>
<h2>Writing a Plugin</h2>
<p>This will be a quick and easy plugin, great for newbies who have yet to write heir first plugin.<br />
All you need to follow along is a text editor, notepad will do fine.</p>
<p>Follow along or <a href="#pageend">skip to the end</a> for the finished plugin.</p>
<h2>Step 1</h2>
<p>Start a new file in your text editor and add the following lines. These define your plugin to wordpress.<br />
You can replace my name and urls with your own.</p>
<blockquote class="code"><p>
&lt;?php<br />
/*<br />
Plugin Name: Last Updated Posts<br />
Plugin URI: http://www.dedestruct.com/plugins/<br />
Description: Returns a list of the most recently updated posts.<br />
Version: 0.1<br />
Author: Ayush Saran [ the Insomniac @ dedestruct.com ]<br />
Author URI: http://www.ayushsaran.com/<br />
*/</p>
<p>function dd_recently_updated($args = &#8221;) {</p>
<p>}</p>
<p>?&gt;
</p></blockquote>
<p>Save the file as last-updated.php in your plugins folder. usually /wp-content/plugins/ </p>
<h2>Step 2</h2>
<p>From the base of your wordpress install find wp-includes/general-template.php.<br />
This file contains the definition for wp_get_archives which will serve as our reference.</p>
<p>Open the file and ~line 350 you will see function wp_get_archives($args = &#8221;) {</p>
<p>Copy the first 15 lines of the function into your blank plugin file. </p>
<p>You can delete the text &#8216;type&#8217; => &#8216;monthly&#8217;, since we will only be offering the type of updated.</p>
<blockquote class="code"><p>
<cite>You should end up with a file that looks like this.</cite><br />
&lt;?php<br />
/*<br />
Plugin Name: Last Updated Posts<br />
Plugin URI: http://www.dedestruct.com/plugins/<br />
Description: Returns a list of the most recently updated posts.<br />
Version: 0.1<br />
Author: Ayush Saran [ the Insomniac @ dedestruct.com ]<br />
Author URI: http://www.ayushsaran.com/<br />
*/</p>
<p>function dd_recently_updated($args = &#8221;) {<br />
	global $wpdb, $wp_locale;</p>
<p>	$defaults = array(<br />
		&#8216;limit&#8217; =&gt; &#8216;5&#8242;,	&#8216;format&#8217; =&gt; &#8216;html&#8217;, &#8216;before&#8217; =&gt; &#8221;,<br />
		&#8216;after&#8217; =&gt; &#8221;, &#8217;show_post_count&#8217; =&gt; false<br />
	);</p>
<p>	$r = wp_parse_args( $args, $defaults );<br />
	extract( $r, EXTR_SKIP );</p>
<p>	if ( &#8221; != $limit ) {<br />
		$limit = (int) $limit;<br />
		$limit = &#8216; LIMIT &#8216;.$limit;<br />
	}</p>
<p>}		</p>
<p>?&gt;
</p></blockquote>
<h2>Step 3 - Modifying The Database Query</h2>
<p>Back to the wp-includes/general-template.php. </p>
<blockquote><p>
<cite>Examine the last if..else statement.</cite><br />
$arcresults = $wpdb->get_results(&#8221;SELECT * FROM $wpdb->posts $join $where <strong>ORDER BY $orderby</strong> $limit&#8221;);
</p></blockquote>
<p>Here $orderby is defined as &#8220;post_date DESC &#8220;. This will fetch the posts and order them by the date published. We want to use the date modified as the condition for the sorting.</p>
<p>If you look at the database created by wordpress you will see that there is a column for post_modified that saves the date and time that any post was last modified.</p>
<p>We willl update the orderby to read $orderby = &#8220;post_modified DESC &#8220;;</p>
<h2>Step 4 - Adding the new conditions</h2>
<p>Copy over the filters  line 392 -394 . And copy one of the if..else conditions to the new file, preferably postbypost. </p>
<p>Remove the IF conditions and the OR(||) statements. This may get confusing so refer to the code here for what you should have remaining.</p>
<blockquote class="code"  id="pageend"><p>
<cite>The Finished Plugin</cite><br />
&lt;?php<br />
/*<br />
Plugin Name: Last Updated Posts<br />
Plugin URI: http://www.dedestruct.com/plugins/<br />
Description: Returns a list of the most recently updated posts.<br />
Version: 0.1<br />
Author: Ayush Saran [ the Insomniac @ dedestruct.com ]<br />
Author URI: http://www.ayushsaran.com/<br />
*/</p>
<p>function dd_recently_updated($args = &#8221;) {<br />
	global $wpdb, $wp_locale;</p>
<p>	$defaults = array(<br />
		&#8216;limit&#8217; =&gt; &#8216;5&#8242;,	&#8216;format&#8217; =&gt; &#8216;html&#8217;, &#8216;before&#8217; =&gt; &#8221;,<br />
		&#8216;after&#8217; =&gt; &#8221;, &#8217;show_post_count&#8217; =&gt; false<br />
	);</p>
<p>	$r = wp_parse_args( $args, $defaults );<br />
	extract( $r, EXTR_SKIP );</p>
<p>	if ( &#8221; != $limit ) {<br />
		$limit = (int) $limit;<br />
		$limit = &#8216; LIMIT &#8216;.$limit;<br />
	}	</p>
<p>	//filters<br />
	$where = apply_filters(&#8217;getarchives_where&#8217;, &#8220;WHERE post_type = &#8216;post&#8217; AND post_status = &#8216;publish&#8217;&#8221;, $r );<br />
	$join = apply_filters(&#8217;getarchives_join&#8217;, &#8220;&#8221;, $r);</p>
<p>		$orderby = &#8220;post_modified DESC &#8220;;<br />
		$arcresults = $wpdb-&gt;get_results(&#8221;SELECT * FROM $wpdb-&gt;posts $join $where ORDER BY $orderby $limit&#8221;);<br />
		if ( $arcresults ) {<br />
			foreach ( $arcresults as $arcresult ) {<br />
				if ( $arcresult-&gt;post_date != &#8216;0000-00-00 00:00:00&#8242; ) {<br />
					$url  = get_permalink($arcresult);<br />
					$arc_title = $arcresult-&gt;post_title;<br />
					if ( $arc_title )<br />
						$text = strip_tags(apply_filters(&#8217;the_title&#8217;, $arc_title));<br />
					else<br />
						$text = $arcresult-&gt;ID;<br />
					echo get_archives_link($url, $text, $format, $before, $after);<br />
				}<br />
			}<br />
		}</p>
<p>}</p>
<p>?&gt;</p></blockquote>
<h2>Step 5 - Final Steps</h2>
<p>Log into your admin panel and activate the new plugin from the Plugins section. </p>
<p>You can now get the most recently updated posts by calling the <em>dd_recently_updated function</em></p>
<blockquote class="code"><p>
<cite>Usage</cite><br />
&lt;ul&gt;&lt;?php <strong>dd_recently_updated(&#8217;limit=3&#8242;);</strong> ?&gt;&lt;/ul&gt;
</p></blockquote>
<p>The default output is a list&#8230; i.e. wrapped in &lt;li&gt; tags<br />
The default limit is 5, you can change that to reflect your needs</p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tutorials/" title="View all posts in Tutorials" rel="category tag">Tutorials</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/plugins/" rel="tag">plugins</a> | <a href="http://www.dedestruct.com/tag/wordpress/" rel="tag">wordpress</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/06/07/how-to-pick-cms/" rel="bookmark" title="June 7, 2008">Picking the right Content Management System [CMS]</a></li>
<li><a href="http://www.dedestruct.com/2008/02/17/how-to-optimize-loading-of-hover-images/" rel="bookmark" title="February 17, 2008">How-To: Optimize Loading of Hover Images</a></li>
<li><a href="http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/" rel="bookmark" title="March 22, 2008">HowTo: Cross-Browser Cursor Position in Textareas</a></li>
<li><a href="http://www.dedestruct.com/2008/02/18/how-to-open-animated-gifs-with-photoshop-cs3/" rel="bookmark" title="February 18, 2008">How-To: Open Animated GIFs with Photoshop CS3</a></li>
<li><a href="http://www.dedestruct.com/2007/12/22/how-to-embed-flash-swfs-with-valid-code/" rel="bookmark" title="December 22, 2007">How-To: Embed Flash / SWFs With Valid Code</a></li>
</ul><!-- Similar Posts took 25.560 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/U82ZzqxFlno" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/03/18/how-to-display-recently-updated-posts-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>How-To: Extract People and Objects in Photoshop</title>
		<link>http://feedproxy.google.com/~r/Dedestruct/~3/S2_nQ81Br6E/</link>
		<comments>http://www.dedestruct.com/2008/03/12/how-to-extract-people-and-objects-in-photoshop/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 06:10:53 +0000</pubDate>
		<dc:creator>Ayush Saran</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.dedestruct.com/2008/03/12/how-to-extract-people-and-objects-in-photoshop/</guid>
		<description><![CDATA[
What is the best way to isolate a person/item in Photoshop?
Asked by Brian Purkiss a Freelance Designer from San Antonio, Texas

I currently use paths, the pen tool, and then add a layer mask.
Is there a better way, or is that it?


There isnt a single best method to Isolate Objects in Photoshop
The recommended approach is a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3133/2328632438_7e0c4110ac_o.jpg" width="473" height="219" alt="Extract People and Objects in Photoshop" title="Extract People and Objects in Photoshop" class="screenshot_large border" /></p>
<h2>What is the best way to isolate a person/item in Photoshop?</h2>
<p><strong>Asked by <a href="http://plainbeta.com/">Brian Purkiss</a> a Freelance Designer from San Antonio, Texas</strong></p>
<blockquote ><p>
I currently use paths, the pen tool, and then add a layer mask.<br />
Is there a better way, or is that it?
</p></blockquote>
<p><span id="more-177"></span></p>
<h3>There isnt a single best method to Isolate Objects in Photoshop</h3>
<p><strong>The recommended approach</strong> is a combination of the pen tool, layer Masks and Extract.</p>
<p><!--more--></p>
<h2>The Pen Tool &#038; Masks</h2>
<p>The Pen Tool works best when you have large-resolution Images that have smooth curves or simpler, more geometric figures. It gets hard to use around organic objects and areas like flowing hair or leaves on a tree.</p>
<p>Here is a videos of the Pen tool in action, it&#8217;s part of the hilarious &#8216;You Suck at Photoshop&#8217; series by Donnie Hoyle. <a href="http://laughingsquid.com/you-suck-at-photoshop-by-donnie-hoyle/">See the rest here</a>. </p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/YNfBF2xvhaE&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/YNfBF2xvhaE&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>And a surprisingly good tutorial from about.com on - <a href="http://graphicssoft.about.com/od/photoshop/l/blrbps_4abfly.htm">Removing the Background with Photoshop Pen Tool</a></p>
<p>Some <a href="http://www.sketchpad.net/drawing8.htm">Free Pen Tool Practice Templates</a> that you can download and trace to sharpen your pen tool skills</p>
<h2>The Extract Filter</h2>
<p>The Extract Filter, can be found in your Filters Menu [not in Filter Gallery]. Its useful for more organic areas like hair and leaves where there are too many edges to trace with the pen tool.</p>
<p>I could explain the process setp by step, but theres a great video on youtube that takes you through all the options and is easy to follow.</p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/Y13QRSIyaJA&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Y13QRSIyaJA&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>More videos from this series can be found at <a href="http://www.tutvid.com/">www.TutVid.com</a></p>
<h2>Tips</h2>
<p>There are many ways to extract using photoshop but do yourself a favor and follow these tips.</p>
<p><strong>Garbage In = Garbage out</strong>: Start with high-res Images, they will let you zoom deeper and make precise paths vs guessing where the aliased pixels end.</p>
<p><strong>Pick subjects with strong contrast</strong>: The Contrast helps distinguish it from the background and makes the extract process easier.</p>
<p><strong>Non-Destructive Editing</strong>: Dont use the Eraser, use Masks with Smart Objects so you can always revert back to a previous stage and try a different process, especially with the extract filter. It will take some trial and Error. </p>
<p>p.s. check out <a href="http://photoshopdisasters.blogspot.com">photoshopdisasters.blogspot.com</a> for some hilarious real-world photoshop bloopers such as this one </p>
<p><img src="http://img.photobucket.com/albums/v493/ayushsaran/castles.jpg" class="screenshot" alt="funny" /></p>
        <p>See more posts under: <a href="http://www.dedestruct.com/category/tutorials/" title="View all posts in Tutorials" rel="category tag">Tutorials</a><br />
					<strong>OR</strong> see posts tagged with: <a href="http://www.dedestruct.com/tag/photoshop/" rel="tag">photoshop</a> | <a href="http://www.dedestruct.com/tag/tutorials/" rel="tag">Tutorials</a></p><hr class="none" />
					
	<p id="similar_text">You may also like: </p><ul id="similar_list"><li><a href="http://www.dedestruct.com/2008/02/18/how-to-open-animated-gifs-with-photoshop-cs3/" rel="bookmark" title="February 18, 2008">How-To: Open Animated GIFs with Photoshop CS3</a></li>
<li><a href="http://www.dedestruct.com/2008/03/06/how-to-cross-browser-css-transparent-divs-with-opaque-content/" rel="bookmark" title="March 6, 2008">Cross-Browser CSS Transparency with Opaque Content</a></li>
<li><a href="http://www.dedestruct.com/2008/02/17/how-to-optimize-loading-of-hover-images/" rel="bookmark" title="February 17, 2008">How-To: Optimize Loading of Hover Images</a></li>
<li><a href="http://www.dedestruct.com/2008/02/18/missing-psd-thumbnails-in-windows-explorer/" rel="bookmark" title="February 18, 2008">Missing PSD thumbnails in Windows Explorer</a></li>
<li><a href="http://www.dedestruct.com/2007/12/21/how-to-private-variables-in-javascript-objects/" rel="bookmark" title="December 21, 2007">How-To: Create Private Variables in Javascript Objects</a></li>
</ul><!-- Similar Posts took 12.276 ms -->        
        <img src="http://feeds.feedburner.com/~r/Dedestruct/~4/S2_nQ81Br6E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.dedestruct.com/2008/03/12/how-to-extract-people-and-objects-in-photoshop/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.dedestruct.com/2008/03/12/how-to-extract-people-and-objects-in-photoshop/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 1.957 seconds --><!-- Cached page served by WP-Cache -->
