<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>freeCode&#039;s Blog</title>
	<atom:link href="http://code4free.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://code4free.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 15 Sep 2009 13:48:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='code4free.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>freeCode&#039;s Blog</title>
		<link>http://code4free.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://code4free.wordpress.com/osd.xml" title="freeCode&#039;s Blog" />
	<atom:link rel='hub' href='http://code4free.wordpress.com/?pushpress=hub'/>
		<item>
		<title>CSS Wishlist: New Ideas, Debates and Solutions</title>
		<link>http://code4free.wordpress.com/2009/09/14/css-wishlist-new-ideas-debates-and-solutions/</link>
		<comments>http://code4free.wordpress.com/2009/09/14/css-wishlist-new-ideas-debates-and-solutions/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 08:56:09 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=33</guid>
		<description><![CDATA[1. Why Should We Go Beyond Basic CSS? The first to ask is “Why?” Why use these alternative tools and methods to develop CSS code? Why take the time to learn them, especially when no one syntax method, CSS programming concept or technique will replace CSS as it is today? Well, here’s a better question: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=33&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>1. Why Should We Go Beyond Basic CSS?</h3>
<p>The first to ask is “Why?” Why use these alternative tools and methods to develop CSS code? Why take the time to learn them, especially when no one syntax method, CSS programming concept or technique will replace CSS as it is today?</p>
<p>Well, here’s a better question: “Why not?” While CSS will probably not be replaced by any one method, many of these techniques are similar, and their general concept is becoming increasingly popular. For example, many of these new methods allow us to more easily implement rounded corners. With this kind of demand from the community, CSS 3 has now made it easy to create rounded corners. In time, with full support and forward-looking attitudes, these new ideas may become standard, allowing us more options as Web professionals.</p>
<p>And let’s state the obvious: <strong>using alternative options like these can save time</strong> and be more efficient than using traditional CSS methods, even if they can take some time to learn at first.</p>
<p>As new methods arrive, the division between Web developer and Web designer shrinks. One day, knowing one trade may not be enough. These tools are moving the process along by giving designers easier ways to code and giving developers easier ways to design.</p>
<h4>A New Era for Web Developers</h4>
<p>Traditionally, Web developers have been the gurus of coding. PHP, JavaScript, Ruby and the like are the languages that developers deal with regularly. Recently, though, we’ve seen coders call themselves “Web developers” when they just convert PSD to XHTML and CSS. How can this be, and are they misrepresenting themselves?</p>
<p>Of course not. In recent years, the science of CSS and the need for semantic XHTML has <strong>become much more complex</strong> and allow, in some instances, for more programming-related concepts. The first few items in this article will be specific to CSS’ advances in programming concepts and how these changes can be both detrimental and beneficial.</p>
<p>Whether you are familiar with these methods or not, we invite you to practice these new techniques and share your experiences, because many of these methods are still very experimental.</p>
<h4>A Web Designer’s Dream</h4>
<p>Programmers aren’t the only ones who get more options from the new CSS methods. Designers get more options, too, including easier options for layout and common Photoshop effects. Taking the time to learn a new CSS library or technique is clearly well worth the trouble if it allows you to achieve the most common Photoshop techniques with few to no graphics.</p>
<p>In the early days of the Web, designers were limited to certain layouts and design styles merely because of the Web’s limitations. <strong>With the future of CSS, the only thing that will hold back Web designers is their own imagination.</strong></p>
<p>Let’s take a closer look at what we have to work with right now and what’s in store for us in the future.</p>
<h3>2. CSS Variables</h3>
<p>Developers can easily see the benefit of using variables to code their Web apps, so seeing the benefit of variables in CSS is just as easy. Are they needed though? Before we answer a tough question like this, let’s go over what they are and how both designers and developers can use them.</p>
<p>Similar to a programming language, CSS variables can be used to define style sheet-wide values with one descriptive word. This one word can then be used repeatedly throughout the style sheet to use the value assigned to it. <strong>The point of variables is to save time and, in most cases, create more efficient code.</strong> An example of the idea in practice is below. You can take a closer look at this method on <a href="http://brajeshwar.com/2008/css-variables/">BrajeShwar.com</a>.</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>@variables {</li>
<li> oColor: #fefedb;</li>
<li> oBgColor: #ccc;</li>
<li> oMargin: 1em;</li>
<li> oPadding: 1em;</li>
<li>}</li>
<li></li>
<li>@variables print { /* applies only to print */</li>
<li> oColor: #000;</li>
<li> oBgColor: #fff;</li>
<li> oMargin: 2em;</li>
<li> oPdding: 2em;</li>
<li>}</li>
<li></li>
<li>div#post div.entry {</li>
<li> border: 1px solid #666;</li>
<li> font: normal 1em/1.6em &#8221;Lucida Grande&#8221;, Lucida, Verdana, sans-serif;</li>
<li> margin: var(oMargin);</li>
<li> padding: var(oPadding);</li>
<li> color: var(oColor);</li>
<li> background-color: var(oBgColor);</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">@variables {
	oColor: #fefedb;
	oBgColor: #ccc;
	oMargin: 1em;
	oPadding: 1em;
}

@variables print { /* applies only to print */
	oColor: #000;
	oBgColor: #fff;
	oMargin: 2em;
	oPdding: 2em;
}

div#post div.entry {
	border: 1px solid #666;
	font: normal 1em/1.6em "Lucida Grande", Lucida, Verdana, sans-serif;
	margin: var(oMargin);
	padding: var(oPadding);
	color: var(oColor);
	background-color: var(oBgColor);
}</pre>
<p>At first glance, the above doesn’t seem any easier. What’s the point of typing out <code>color: var(oColor);</code> instead of just entering color: #fefedb;? That&#8217;s true&#8230; until you get into a larger style sheet. With hex values for colors all over the place, CSS developers often find themselves scrolling throughout a style sheet, copying and pasting color codes and other style attributes.</p>
<p>If we plan to have one shade of, say, blue throughout a design, using a variable for it would be useful. We may want the same shade of blue for hyperlinks and the footer background. Rather than search through our huge style sheet for the exact hex value of that shade of blue, we know that we defined a variable called <code>colorBlue</code> with that hex value. We can then just use the variable in its place to save time.</p>
<p>We can almost get back to the simpler days of HTML colors (e.g. <code>color="blue"</code>), without sacrificing Web standards.</p>
<h4>The Cons of CSS Variables</h4>
<p>However, with all good things comes the bad. CSS variables has many critics as well:</p>
<blockquote><p>&#8220;Adding any form of macros or additional scopes and indirections, including symbolic constants, is not just redundant, but changes CSS in ways that make it unsuitable for its intended audience. Given that there is currently no alternative to CSS, these things must not be added.&#8221;<br />
&#8211; <a href="http://www.w3.org/People/Bos/CSS-variables">Why “variables” in CSS are harmful</a></p></blockquote>
<p>This quote is from an essay hosted on the W3 website. Although it is saying the exact opposite of what this article supports, the author makes some valid points, and we designers and developers should think closely about the pros and cons before using CSS variables and other advanced techniques. While the essay above focuses primarily on CSS variables, it does go a bit into other advanced ideas in CSS that we&#8217;ll discuss later in this article.</p>
<blockquote><p>&#8220;The other implementation is written in PHP. It proves that it is not necessary to add constants to CSS. Just like the existence of the WebKit implementation cannot be taken as proof that constants in CSS are useful, so the PHP implementation cannot prove that either. But the PHP implementation has the benefit of letting authors determine the usefulness for themselves, without modifying CSS on the Web.&#8221;</p></blockquote>
<p>Many solutions for using variables for style sheets are indeed in PHP, and the author makes an excellent point on how some of these methods can provide solutions for developers who would still like to use constants, while preserving CSS as it is today. Could this be a better option than all other CSS variable solutions?</p>
<blockquote><p>&#8220;Thus there is a cost to user-defined names: memory (when writing the code) and understanding (when reading). That cost is offset by the cost of the alternative: long functions. How is that for CSS?&#8221;</p></blockquote>
<p><strong>Another argument states that CSS variables could be pointless or even harmful to efficiency.</strong> Could these variables actually make our CSS slower and file sizes larger? Incorrectly used, yes. A common fear among opposers of CSS variables and other programming techniques is that designers and developers will start using CSS&#8217; new power to make things easier on their end but then stop bothering with CSS code efficiency.</p>
<p>Point taken, but there are many cases in which CSS variables make style sheets easier to use and equally or more efficient. In such cases, using CSS variables may be smarter.</p>
<blockquote><p>&#8220;CSS is fairly easy to learn to read, even if some of its effects can be quite subtle. When there is a page you like, you can look at its style sheet and see how it&#8217;s done.&#8221;</p></blockquote>
<p>Even if we take care of efficiency issues, there is also the point that CSS will become similar to a programming language in its difficulty, both in creating and understanding CSS code.</p>
<p>We looked at just one insightful essay on why CSS variables may not be such a good idea. For more reading, check out the articles below:</p>
<ul>
<li><a href="http://meiert.com/en/blog/20090401/why-css-needs-no-variables/">Why CSS Needs No Variables</a><br />
A wonderfully written article on alternative methods to CSS variables and why CSS variables are not worth the fight.</li>
<li><a href="http://ajaxian.com/archives/css-variables-considered-harmful">CSS Variables Considered Harmful?</a><br />
Another look at the issues discussed above but from another developer&#8217;s perspective. Some excellent points are made in the post itself and the comments.</li>
<li><a href="http://www.w3.org/People/Bos/CSS-variables">Why “Variables” in CSS Are Harmful</a><br />
Here is the essay we looked at above, in case you want to take a closer look.</li>
</ul>
<p>Despite the movement to stop CSS variables altogether, many designers and developers are still strongly for them. If you&#8217;re leaning to that side, keep in mind these points as you venture over:</p>
<ul>
<li><em>Always</em> be efficient. Know when to use CSS variables and <a href="http://rip747.wordpress.com/2008/04/10/css3-css-variables-are-a-bad-idea-just-allow-us-to-call-other-selectors/">when just to use selectors</a>.</li>
<li>Name constants with a descriptive title for easier reading, especially if the CSS code is going to be changed.</li>
<li>Will the style sheet be reused? If so, then maybe CSS variables are not appropriate.</li>
</ul>
<h4>Walkthroughs for CSS Variables</h4>
<p>Below are some tutorials, walkthroughs and other articles containing insight on CSS variables so that those of you who want to implement CSS variables can do it correctly.</p>
<p><a href="http://icant.co.uk/articles/cssconstants/">CSS Variables with Server-Side Includes</a></p>
<p><a href="http://icant.co.uk/articles/cssconstants/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/cssconstants.gif" alt="CSS Constants" width="500" height="227" /></a></p>
<p>This example and walkthrough goes through a way to create the effect of CSS variables with programming languages. It explains how this can become a standards-compliant approach and even how specified CSS style sheets can be generated dynamically with server-side programming languages and a smart use of CSS variables.</p>
<p><a href="http://interfacelab.com/variables-in-css-via-php/">Variables in CSS via PHP</a></p>
<p><a href="http://interfacelab.com/variables-in-css-via-php/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables1.gif" alt="CSS Variables via PHP" width="500" height="335" /></a></p>
<p>Another PHP solution, but with a premade class. All that is needed is simply to create the desired CSS variables. After the PHP class is downloaded and set up properly within the relevant HTML and CSS files, implementing these CSS variables is probably one of the easiest methods.</p>
<p><a href="http://www.silverspider.com/2007/dynamic-css">Dynamic CSS A.K.A. CSS Variables</a></p>
<p><a href="http://www.silverspider.com/2007/dynamic-css/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables2.jpg" alt="CSS Variables via PHP" width="500" height="352" /></a></p>
<p>Yet another implementation of CSS variables with PHP. This walkthrough also has a unique section on browser detection.</p>
<p><a href="http://sperling.com/examples/pcss/">CSS Using PHP</a></p>
<p><a href="http://sperling.com/examples/pcss/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables3.gif" alt="CSS Variables via PHP" width="500" height="270" /></a></p>
<p>A very simple example of using PHP in CSS to create variables. The tutorial states that this takes only six lines of PHP code in its simplest form.</p>
<p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/how-to-add-variables-to-your-css-files/">Implement CSS Variables with PHP and .htaccess</a></p>
<p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/how-to-add-variables-to-your-css-files/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables4.jpg" alt="CSS Variables via PHP" width="500" height="337" /></a></p>
<p>Here is a NetTuts+ tutorial on implementing CSS variables that is similar to the above techniques, but this time with the .htaccess file. A smart approach to CSS variables.</p>
<p><a href="http://blog.philburrows.com/articles/2009/03/18/css-variables-with-rack-middleware/">CSS Variables with Rack Middleware</a></p>
<p><a href="http://blog.philburrows.com/articles/2009/03/18/css-variables-with-rack-middleware/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/cssvariablesmiddleware.gif" alt="CSS Variables with Rack Middleware" width="500" height="324" /></a></p>
<p>Here is another premade script that does the work for you. This developer realizes the benefits of CSS variables but doesn&#8217;t like all of the extras that come with alternative CSS tools. So, he made a script that would automatically create just CSS variables, making it easy and efficient.</p>
<p><a href="http://wordpress.org/support/topic/250932">A Look into WordPress CSS Variables</a></p>
<p><a href="http://wordpress.org/support/topic/250932"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/cssvariableswordpress.gif" alt="CSS Variables in WordPress" width="500" height="317" /></a></p>
<p>Not an article or tutorial, this is a discussion on the WordPress forum about strategies to implement CSS variables in WordPress. The discussion focuses on one specific issue, which is a general problem nonetheless. The solutions presented in this thread address many problems of CSS variables and WordPress.</p>
<h3>3. Conditional CSS</h3>
<p>Conditional options in CSS have a variety of benefits but can also bring the same deficiencies as CSS variables in that they alter the state of CSS as it is. Many of the cons have to do with efficiency, confusion and, in some cases, added HTTP requests (because it deals with a type of server-side programming language).</p>
<p>Nonetheless, let&#8217;s look into more of the benefits of conditional CSS statements. Just keep in mind the cons that come with them, and always be thinking of new ideas to overcome them. So far, the tools and solutions that give developers and designers conditional statements in CSS have come to be relatively well accepted. <strong>This is because CSS conditionals seem to solve bigger problems in CSS</strong>, and the lack of efficiency seems minor by comparison.</p>
<p>Let&#8217;s not forget the original CSS conditional. The problem with the traditional CSS conditional for IE, however, is that it has no <code>else</code> or <code>else if</code>. Although the use may be limited, an <code>if</code>/<code>else</code> statement for CSS could allow designers and developers to specify styles for other types of conditions: browsers, for example.</p>
<p>One popular tool for calling styles according to browser type is <a href="http://conditional-css.com/">Conditional-CSS.com</a>. While many other solutions are out there for conditionals as well as this particular problem, this tool can do most of the work automatically, with minimal confusion.</p>
<p><a href="http://conditional-css.com/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/conditional-css.gif" alt="Conditional CSS" width="500" height="411" /></a></p>
<p>Conditional-CSS allows the user to customize a Web script in their choice of language (PHP, C# or C), and it compiles the code along with an uploaded style sheet to create CSS conditionals based on browser type. With this tool, those nasty IE bugs become easier to handle, and other browser bugs and unsupported features can be handled more gracefully. Using this method, you no longer has to create a separate style sheet for IE (or any browser for that matter), instead using old-fashioned CSS conditionals.</p>
<p>For a closer look at how one can use the syntax of this tool, here is the sample code from the Conditional-CSS website:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>/* Conditional-CSS example */</li>
<li>a.button_active, a.button_unactive {</li>
<li>display: inline-block;</li>
<li>[if lte Gecko 1.8] display: -moz-inline-stack;</li>
<li>[if lte Konq 3.1] float: left;</li>
<li>height: 30px;</li>
<li>[if IE 5.0] margin-top: -1px;</li>
<li></li>
<li>text-decoration: none;</li>
<li>outline: none;</li>
<li>[if IE] text-decoration: expression(hideFocus=&#8217;true&#8217;);</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">/* Conditional-CSS example */
a.button_active, a.button_unactive {
display: inline-block;
[if lte Gecko 1.8] display: -moz-inline-stack;
[if lte Konq 3.1] float: left;
height: 30px;
[if IE 5.0] margin-top: -1px;

text-decoration: none;
outline: none;
[if IE] text-decoration: expression(hideFocus='true');
}</pre>
<p>As you can see, the code is easy to read, write and handle. This is a smart solution to a common problem in Web development. However, as with CSS variables, there is the risk that developers will use this method to overpower CSS&#8217; basic functionality.</p>
<p>The solution is intended primarily for common IE bugs, although it provides more flexibility. As with any extension of CSS, use it responsibly, which means using it only when necessary. Rely on traditional methods to fix most IE problems. Because IE6 is the most troublesome, check out this article on Sitepoint: <a href="http://www.sitepoint.com/blogs/2009/03/06/10-fixes-for-ie6-problems/"><br />
10 Fixes That Solve IE6 Problems</a>.</p>
<h4>Customized Native CSS Conditionals</h4>
<p>What we discussed above is a great reason why developers would use conditional statements in CSS. But many of us would like even more control. For example, instead of being limited to browser type, many of us who work with fluid layouts would like to be able to create conditionals based on browser width:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>if($browser_window &gt;= 600px &amp;&amp; $browser_window &lt; 1280px){</li>
<li> p{width: 600px;}</li>
<li>}</li>
<li></li>
<li>else if($browser_window &lt; 600px){</li>
<li> p{width: 90%;}</li>
<li>}</li>
<li></li>
<li>else{</li>
<li> p{width: 800px;}</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">if($browser_window &gt;= 600px &amp;&amp; $browser_window &lt; 1280px){
	p{width: 600px;}
}

else if($browser_window &lt; 600px){
	p{width: 90%;}
}

else{
	p{width: 800px;}
}</pre>
<p>Similar to what we saw with <a href="http://conditional-css.com/">Conditional-CSS</a>, the solution is to attach a more advanced language, whether PHP, Ruby, JavaScript or another of your choice.</p>
<p><a href="http://particletree.com/features/dynamic-resolution-dependent-layouts/">Dynamic Resolution Dependent Layouts</a> is a great example of how to use an <code>if</code>/<code>else</code> statement for this problem. In addition, we can use the same idea to create customized conditionals in CSS using JavaScript.</p>
<p>The idea here is to use <strong>separate style sheets</strong> altogether, and then use a JavaScript (or a script in your preferred language) to call the correct style sheet. There are no conditional statements in the CSS at all; rather, the website just simulates them. And a default option is available if JavaScript is turned off. Also, using multiple style sheets will have no negative consequences because the JavaScript will be calling only one in the end, based on the conditional statement. This means there will be only one HTTP request, so it will not slow down the Web page.</p>
<p>Here is the first part of the example code:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/default.css&#8221;</li>
<li> title=&#8221;default&#8221;/&gt;</li>
<li></li>
<li>&lt;link rel=&#8221;alternate stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/thin.css&#8221;</li>
<li> title=&#8221;thin&#8221;/&gt;</li>
<li></li>
<li>&lt;link rel=&#8221;alternate stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/wide.css&#8221;</li>
<li> title=&#8221;wide&#8221;/&gt;</li>
<li></li>
<li>&lt;link rel=&#8221;alternate stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/wider.css&#8221;</li>
<li> title=&#8221;wider&#8221;/&gt;</li>
</ol>
</div>
<pre style="display:none;">&lt;link rel="stylesheet" type="text/css" href="css/default.css"
	title="default"/&gt;

&lt;link rel="alternate stylesheet" type="text/css" href="css/thin.css"
	title="thin"/&gt;

&lt;link rel="alternate stylesheet" type="text/css" href="css/wide.css"
	title="wide"/&gt;

&lt;link rel="alternate stylesheet" type="text/css" href="css/wider.css"
	title="wider"/&gt;</pre>
<p>By specifying the title attribute, we can use this in our JavaScript file:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>function dynamicLayout(){</li>
<li> var browserWidth = getBrowserWidth();</li>
<li></li>
<li> //Load Thin CSS Rules</li>
<li> if (browserWidth &lt; 750){</li>
<li> changeLayout(&#8220;thin&#8221;);</li>
<li> }</li>
<li> //Load Wide CSS Rules</li>
<li> if ((browserWidth &gt;= 750) &amp;&amp; (browserWidth &lt;= 950)){</li>
<li> changeLayout(&#8220;wide&#8221;);</li>
<li> }</li>
<li> //Load Wider CSS Rules</li>
<li> if (browserWidth &gt; 950){</li>
<li> changeLayout(&#8220;wider&#8221;);</li>
<li> }</li>
<li>}</li>
<li></li>
</ol>
</div>
<pre style="display:none;">function dynamicLayout(){
    var browserWidth = getBrowserWidth();

    //Load Thin CSS Rules
    if (browserWidth &lt; 750){
        changeLayout("thin");
    }
    //Load Wide CSS Rules
    if ((browserWidth &gt;= 750) &amp;&amp; (browserWidth &lt;= 950)){
        changeLayout("wide");
    }
    //Load Wider CSS Rules
    if (browserWidth &gt; 950){
        changeLayout("wider");
    }
}</pre>
<p>Be sure to check out the <a href="http://particletree.com/features/dynamic-resolution-dependent-layouts/">full article and script</a> for more detail. This is a good example of how HTML, CSS and JavaScript can be used together to create dynamic CSS and, more specifically, <code>if</code>/<code>else</code> statements to manipulate CSS. One will need to customize the method, however, to get the desired effect.</p>
<h3>4. A Better Syntax</h3>
<p>Advanced users of CSS know that CSS&#8217; current syntax has some flaws. Although it is well-structured and easy to read for the most part, it is fast becoming outdated as new Web designs call for creative layouts and new Web pages need enhanced functionality. This is what some of these new ideas attempt to address.</p>
<p>Some solutions are nested selectors, nested declaration blocks and smarter shortcuts. We define these below.</p>
<h4>Nested Selectors</h4>
<p>A <a href="http://www.webmasterworld.com/forum83/5947.htm">forum post over at Webmaster World</a> discusses a specific problem that could be solved with nested selectors. The inquirer wants to override page-specific properties, which can be done easily with the following code, of course:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>p.intro {width: 400px;}</li>
<li>.alert {color: red;}</li>
<li></li>
<li>#pageid p.intro {width: 200px;}</li>
<li>#pageid .alert {color: blue;}</li>
</ol>
</div>
<pre style="display:none;">p.intro {width: 400px;}
.alert {color: red;}

#pageid p.intro {width: 200px;}
#pageid .alert {color: blue;}</pre>
<p>For longer style sheets, though, this method can get so confusing and repetitious that they become difficult to read. A better solution would be to use a nested-like structure that would make the code more organized and efficient:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>p.intro {width: 400px;}</li>
<li>.alert {color: red;}</li>
<li></li>
<li>#pageid{</li>
<li> p.intro {width: 200px;}</li>
<li> .alert {text-align: blue;}</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">p.intro {width: 400px;}
.alert {color: red;}

#pageid{
	p.intro {width: 200px;}
	.alert {text-align: blue;}
}</pre>
<p>This way, <code>#pageid</code> would have to be called only once, and the original uses of <code>p.intro</code> and <code>.alert</code> could be used as a default, while more specific IDs could use the same classes with different values. The overall result would be more efficient and legible.</p>
<p>Unfortunately, the only solution to the problem involved separate style sheets. The problem with nested CSS selectors is that the problems they address are various, and essentially all can be solved with current CSS child classes.</p>
<p>One solution would be to use an alternative &#8220;CSS language&#8221; that includes nested selectors as part of its custom syntax. A list of these alternative tools is at the bottom of this article, along with further description.</p>
<h4>Nested Declaration Blocks</h4>
<p>Another issue is our inability to nest entire declaration blocks. The article &#8220;<a href="http://www.wait-till-i.com/2005/12/06/what-i-want-from-css3-nested-declaration-blocks/">What I want from CSS3: nested declaration blocks</a>&#8221; offers a smart outlook on the benefit of nested declaration blocks.</p>
<p>Two code examples from the article are copied below. The first represents the way things are done now, which is quite inefficient in most circumstances:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>#content ul{</li>
<li> list-style:square;</li>
<li> margin:0 2em;</li>
<li>}</li>
<li>#content li{</li>
<li> list-style:square;</li>
<li> padding:2px 5px;</li>
<li> line-height:1.3em;</li>
<li>}</li>
<li>#content a:link{</li>
<li> [...]</li>
<li>}</li>
<li>#content a:visited{</li>
<li> [...]</li>
<li>}</li>
<li>#content a:active{</li>
<li> [...]</li>
<li>}</li>
<li>#content a:hover{</li>
<li> [...]</li>
<li>}</li>
<li>#nav ul{</li>
<li> list-style:none;</li>
<li> margin:0;</li>
<li>}</li>
<li>#nav li{</li>
<li> list-style:none;</li>
<li> padding:2px 5px;</li>
<li> line-height:1.3em;</li>
<li>}</li>
<li>#nav a:link{</li>
<li> [...]</li>
<li>}</li>
<li>#nav a:visited{</li>
<li> [...]</li>
<li>}</li>
<li>#nav a:active{</li>
<li> [...]</li>
<li>}</li>
<li>#content a:hover{</li>
<li> [...]</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">#content ul{
	list-style:square;
    margin:0 2em;
}
#content li{
	list-style:square;
	padding:2px 5px;
	line-height:1.3em;
}
#content a:link{
	[...]
}
#content a:visited{
	[...]
}
#content a:active{
	[...]
}
#content a:hover{
	[...]
}
#nav ul{
	list-style:none;
	margin:0;
}
#nav li{
	list-style:none;
	padding:2px 5px;
	line-height:1.3em;
}
#nav a:link{
	[...]
}
#nav a:visited{
	[...]
}
#nav a:active{
	[...]
}
#content a:hover{
	[...]
}</pre>
<p>A much more sensible approach would be:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>#content {</li>
<li> ul{</li>
<li> list-style:square;</li>
<li> margin:0 2em;</li>
<li> }</li>
<li> li{</li>
<li> list-style:square;</li>
<li> padding:2px 5px;</li>
<li> line-height:1.3em;</li>
<li> }</li>
<li> a{</li>
<li> :link{[...]}</li>
<li> :visited{[...]}</li>
<li> :active{[...]}</li>
<li> :hover{[...]}</li>
<li> }</li>
<li>}</li>
<li></li>
<li>#nav {</li>
<li> ul{</li>
<li> list-style:none;</li>
<li> margin:0;</li>
<li> }</li>
<li> li{</li>
<li> list-style:none;</li>
<li> padding:2px 5px;</li>
<li> line-height:1.3em;</li>
<li> }</li>
<li> a{</li>
<li> :link{[...]}</li>
<li> :visited{[...]}</li>
<li> :active{[...]}</li>
<li> :hover{[...]}</li>
<li> }</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">#content {
    ul{
	 list-style:square;
	 margin:0 2em;
	}
    li{
	 list-style:square;
	 padding:2px 5px;
	 line-height:1.3em;
    }
    a{
	 :link{[...]}
	 :visited{[...]}
	 :active{[...]}
	 :hover{[...]}
    }
}

#nav {
    ul{
	 list-style:none;
	 margin:0;
	}
    li{
	 list-style:none;
	 padding:2px 5px;
	 line-height:1.3em;
    }
    a{
	 :link{[...]}
	 :visited{[...]}
	 :active{[...]}
	 :hover{[...]}
    }
}</pre>
<p>Many people would like to be able to use this new method at least for syntax related to links, because they are something we all deal with in every style sheet. Styling lists would also be a great use of this syntax, perhaps similar to how they are nested semantically in HTML markup. If CSS could mimic this nesting ability, style sheets would be much more efficient.</p>
<p>There is no implementation of this kind so far in CSS 3, but as with nested selectors, similar techniques can be achieved with various CSS extension tools, which we explore below.</p>
<h4>Smarter Shortcuts</h4>
<p>A much-wanted feature in future versions of CSS is to be able to use alternative and smarter shortcuts to shorten CSS code. Some of these are already being implemented in alternative CSS languages, but the new CSS 3 has no sign of this. With greater support, perhaps basic CSS could become smart enough to handle these shortcuts in another 10 or so years, when CSS 4 is introduced.</p>
<p>To see the benefit anyway, let&#8217;s look at a few examples in which smarter shortcuts would be beneficial.</p>
<p>When many elements from a certain class or ID share the same properties, things can get a bit repetitious:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>#navigation h1, #navigation h2, #navigation h3{</li>
<li> font-family: Verdana, Tahoma, sans-serif;</li>
<li> letter-spacing: -1px;</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">#navigation h1, #navigation h2, #navigation h3{
	font-family: Verdana, Tahoma, sans-serif;
	letter-spacing: -1px;
}</pre>
<p>Smarter syntax would tighten things up, saving both time and space in the style sheet:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>#navigation [h1,h2,h3]{</li>
<li> font-family: Verdana, Tahoma, sans-serif;</li>
<li> letter-spacing: -1px;</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">#navigation [h1,h2,h3]{
	font-family: Verdana, Tahoma, sans-serif;
	letter-spacing: -1px;
}</pre>
<p>As most of us know, styling links in CSS can be a huge hassle. Nesting these elements, as shown above, is a great solution, but a smarter syntax for dealing with pseudo-classes would also be good:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>a:link, a:active, a:visited</li>
<li>{</li>
<li> font: bold 10pt Verdana, Tahoma, sans-serif;</li>
<li> color: #444444;</li>
<li>}</li>
<li></li>
<li>a:hover</li>
<li>{</li>
<li> color:#000;</li>
<li>}</li>
<li></li>
<li> #navigation a:link, #navigation a:visited,</li>
<li> {</li>
<li> font: normal 10pt Verdana, Tahoma, sans-serif;</li>
<li> color: #000;</li>
<li> }</li>
<li></li>
<li> #navigation a:active, #navigation a:hover</li>
<li> {</li>
<li> font-size: 14pt;</li>
<li> }</li>
</ol>
</div>
<pre style="display:none;">a:link, a:active, a:visited
{
	font: bold 10pt Verdana, Tahoma, sans-serif;
	color: #444444;
}

a:hover
{
	color:#000;
}

	#navigation a:link, #navigation a:visited,
	{
		font: normal 10pt Verdana, Tahoma, sans-serif;
		color: #000;
	}

	#navigation a:active, #navigation a:hover
	{
		font-size: 14pt;
	}</pre>
<p>Having all these pseudo-classes in the way is rather inefficient. Grouping them would be much smarter:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>a[:link, :active, :visited] {</li>
<li> font: bold 10pt Verdana, Tahoma, sans-serif;</li>
<li> color: #444444;</li>
<li>}</li>
<li></li>
<li>a:hover{ color:#000; }</li>
<li></li>
<li> #navigation a[:link, :visited] {</li>
<li> font: normal 10pt Verdana, Tahoma, sans-serif;</li>
<li> color: #000;</li>
<li> }</li>
<li></li>
<li> #navigation a[:active, :hover] {</li>
<li> font-size: 14pt;</li>
<li> }</li>
</ol>
</div>
<pre style="display:none;">a[:link, :active, :visited] {
	font: bold 10pt Verdana, Tahoma, sans-serif;
	color: #444444;
}

a:hover{ color:#000; }

	#navigation a[:link, :visited] {
		font: normal 10pt Verdana, Tahoma, sans-serif;
		color: #000;
	}

	#navigation a[:active, :hover] {
		font-size: 14pt;
	}</pre>
<p>While the solution in the example above saves only a little space, that extra space can do wonders in a larger style sheet. And most will agree that this is a much easier way to read and understand style sheets.</p>
<p>The general goal for any situation like this is to be able to share elements, pseudo-classes and any other type of extension with o one declared class or ID, rather than repeating the class or ID name repeatedly.</p>
<h3>5. Simple Mathematical Functions</h3>
<p>Most of us have come across a piece of CSS code for which we thought, &#8220;This would be much easier if I could just subtract X number of pixels,&#8221; or &#8220;This solution would be easier if I could just add X% onto this DIV.&#8221;</p>
<p>Without this simple math for CSS, most of us have found workarounds to many of these problems. But by implementing simple mathematical functions in CSS, we can eliminate extra code and make our thought process easier.</p>
<p>A rough example could be something like below:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">print</a><a href="http://www.smashingmagazine.com/2009/09/10/css-wishlist-new-ideas-debates-and-solutions/#">?</a></div>
</div>
<ol>
<li>.element {</li>
<li> width: 100%-150px;</li>
<li>}</li>
</ol>
</div>
<pre style="display:none;">.element {
	width: 100%-150px;
}</pre>
<h4>Example of the Centered Layout</h4>
<p>This technique would benefit fluid layouts or layouts that need to be aligned relative to the user&#8217;s screen size. It would also help layouts that have centering, either vertically or horizontally.</p>
<p><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/centeredlayout.gif" alt="Horizontally centered layout" /></p>
<p>Take the very basic example above of a horizontally centered layout. Simply using <code>auto</code> for both the left and right margins creates a centered layout for the end user, no matter how wide their screen is. But what if, for whatever reason, you want that centered wrapper shifted 200 pixels to the left? The wrapper has to be shifted 200 pixels relative to the center of the <em>user&#8217;s</em> screen, not just your own.</p>
<p><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/centeredlayout2.gif" alt="Horizontally centered layout" /></p>
<p>Right now there is no solution for this. Most designers faced with this issue either just float everything to the left and use absolute positioning to finish the job. But those who have larger resolutions will see excess white space to the right of the screen. Not a bad solution, because everything is still in place, readable and efficient, <strong>but having the power to create a layout that accommodates all users would be better.</strong></p>
<p>The second solution is to center the layout but adjust the elements around it. This could mean repositioning some elements on the background image or adding &#8220;artificial&#8221; transparent spacing to align the wrapper.</p>
<p>This is just one example, but simple math could solve many problems in CSS. An article over on KilianValkof.com titled &#8220;<a href="http://kilianvalkhof.com/2006/css-xhtml/random-css-thought-math-in-css/">Random CSS Thought: Math in CSS</a>&#8221; presents just this idea and specific examples of how this could be helpful.</p>
<h4>Is It Right?</h4>
<p>As with many new ideas for CSS related to programming, a debate arises over whether we should do it at all. Implementing an idea like this in future versions of CSS would no doubt help out many developers and designers, but is it going too far?</p>
<p>The concern may not be that the CSS would become more inefficient or complicated but rather that, as we have heard with most complaints against proposals to expand CSS, it moves away from CSS&#8217; original purpose, which is to style.</p>
<p>But wouldn&#8217;t we be using these techniques to <em>improve</em> styling? Techniques such as these could give designers more possibilities for layouts, transporting us to the future of Web design more quickly. So is simple math another way to style with CSS or yet another programming concept that purists have to put up with?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=33&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/14/css-wishlist-new-ideas-debates-and-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/cssconstants.gif" medium="image">
			<media:title type="html">CSS Constants</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables1.gif" medium="image">
			<media:title type="html">CSS Variables via PHP</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables2.jpg" medium="image">
			<media:title type="html">CSS Variables via PHP</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables3.gif" medium="image">
			<media:title type="html">CSS Variables via PHP</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/phpvariables4.jpg" medium="image">
			<media:title type="html">CSS Variables via PHP</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/cssvariablesmiddleware.gif" medium="image">
			<media:title type="html">CSS Variables with Rack Middleware</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/cssvariableswordpress.gif" medium="image">
			<media:title type="html">CSS Variables in Wordpress</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/conditional-css.gif" medium="image">
			<media:title type="html">Conditional CSS</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/2009/09/centeredlayout.gif" medium="image">
			<media:title type="html">Horizontally centered layout</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/2009/09/centeredlayout2.gif" medium="image">
			<media:title type="html">Horizontally centered layout</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Tips and Tricks essential</title>
		<link>http://code4free.wordpress.com/2009/09/08/css-tips-and-tricks-essential/</link>
		<comments>http://code4free.wordpress.com/2009/09/08/css-tips-and-tricks-essential/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 14:52:51 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=31</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=31&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=31&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/08/css-tips-and-tricks-essential/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>
	</item>
		<item>
		<title>Free Javascript, Action Script, CSS, Ajax, Web design code</title>
		<link>http://code4free.wordpress.com/2009/09/06/free-javascript-action-script-css-ajax-web-design-code/</link>
		<comments>http://code4free.wordpress.com/2009/09/06/free-javascript-action-script-css-ajax-web-design-code/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:33:18 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[Action Script]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web design code]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/2009/09/06/free-javascript-action-script-css-ajax-web-design-code/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=30&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=30&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/06/free-javascript-action-script-css-ajax-web-design-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>
	</item>
		<item>
		<title>Free JavaScript Tutorial, Auto suggestion, CSS Sprites,Flash Chart</title>
		<link>http://code4free.wordpress.com/2009/09/06/free-javascript-tutorial-auto-suggestion-css-spritesflash-chart/</link>
		<comments>http://code4free.wordpress.com/2009/09/06/free-javascript-tutorial-auto-suggestion-css-spritesflash-chart/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:30:17 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=28</guid>
		<description><![CDATA[Textboxlist Auto-Completion One of the most attractive features of JavaScript is the highly useful autocompletion. No other website does the autocompletion better than Facebook. They have created an elegant way to search for other Facebook users using the autocomplete feature. Once the user is found, their name is added with an outline and an “X” [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=28&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://devthought.com/textboxlist-meets-autocompletion/">Textboxlist Auto-Completion</a><br />
One of the most attractive features of JavaScript is the highly useful autocompletion. No other website does the autocompletion better than <a href="http://www.facebook.com/">Facebook</a>. They have created an elegant way to search for other Facebook users using the autocomplete feature. Once the user is found, their name is added with an outline and an “X” link to remove the name. TextboxList has mimicked this feature and created a little script for downloading.</p>
<p><a href="http://devthought.com/textboxlist-meets-autocompletion/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/1.png" alt="TextboxList's Autocompletion" /></a></p>
<p><a href="http://natbat.net/2008/Aug/27/addSizes/">addSizes.js</a><br />
This small JavaScript takes care of an automatic link file-size generation. For instance, if you have large .mp3- or .pdf-files offered on your page, this script automatically checks the size of the file and displays the format and the file size in brackets.</p>
<p><a href="http://natbat.net/2008/Aug/27/addSizes/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/014.gif" alt="Useful JavaScript Techniques - addSizes.js" width="480" height="300" /></a></p>
<p><a href="http://code.google.com/p/syntaxhighlighter/">syntaxhighlighter</a><br />
SyntaxHighlighter is here to help a developer/coder to post code snippets online with ease and have it look pretty. It’s 100% Java Script based and it doesn’t care what you have on your server.</p>
<p><a href="http://code.google.com/p/syntaxhighlighter/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/021.gif" alt="Useful JavaScript Techniques - syntaxhighlighter" width="480" height="300" /></a></p>
<p><a href="http://code.google.com/p/samaxesjs/">samaxesjs</a><br />
samaxesJS is a set of utilities and controls, written in JavaScript, for building rich interactive web applications. The TOC control dynamically builds a table of contents from the headings in a document and prepends legal-style section numbers to each of the headings: adds numeration in front of all headings, generates an HTML table of contents, degrades gracefully if JavaScript is not available/enabled.</p>
<p><a href="http://code.google.com/p/samaxesjs/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/01.gif" alt="Useful JavaScript Techniques - samaxesjs" width="480" height="300" /></a></p>
<p><a href="http://icant.co.uk/sandbox/stepbystep/#examples">Step by Step</a><br />
This script allows you to show and explain visitors what your page has for them. You might have encountered interactive demos created with screencasting and screengrabbing software that explain an interface to users in a step-by-step manner. This is exactly what this script does for web sites.</p>
<p><a href="http://icant.co.uk/sandbox/stepbystep/#examples"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/05.gif" alt="Useful JavaScript Techniques - Step by Step" width="480" height="300" /></a></p>
<p><a href="http://yellowgreen.de/morecss">MoreCSS</a><br />
MoreCSS is a small, cross-browser compatible JavaScript library which enables you to create tab menus, tables and lists with “zebra”-style as if you were using regular CSS. It’s enough to include the library in HTML and use CSS for general purpose design elements.</p>
<p><a href="http://yellowgreen.de/morecss"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/06.gif" alt="Useful JavaScript Techniques - MoreCSS" width="480" height="300" /></a></p>
<p><a href="http://facelift.mawhorter.net/">Facelift Image Replacement</a><br />
Facelift Image Replacement (or FLIR, pronounced fleer) is an image replacement script that dynamically generates image representations of text on your web page in fonts that otherwise might not be visible to your visitors. The generated image will be automatically inserted into your web page via Javascript and visible to all modern browsers. Any element with text can be replaced: from headers (h1, h2, etc.) to span-elements and everything in between!</p>
<p><a href="http://facelift.mawhorter.net/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/039.gif" alt="Useful JavaScript Techniques - Facelift Image Replacement" width="480" height="300" /></a></p>
<p><a href="http://alistapart.com/articles/sprites2">CSS Sprites2</a><br />
Cross-browser functionality is a bit of a freebie; jQuery works across most modern browsers, so everything you see here works in IE6+, Firefox, Safari, Opera, etc. We’ve also accounted for multiple graceful degradation scenarios.</p>
<p><a href="http://alistapart.com/articles/sprites2"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/040.gif" alt="Useful JavaScript Techniques - CSS Sprites2" width="480" height="300" /></a></p>
<p><a href="http://urlgreyhot.com/personal/weblog/jparralax">jParralax</a><br />
“Parallax is [a jQuery library that] turns a selected element into a ‘window’, or viewport, and all its children into absolutely positioned layers that can be seen through the viewport. These layers move in response to the mouse, and, depending on their dimensions (and options for layer initialisation), they move by different amounts, in a parallaxy kind of way.” Think of looking through a camera and having layers of objects at various distances moving around. This library achieves that effect using multiple using static images, one for each layer.</p>
<p><a href="http://urlgreyhot.com/personal/weblog/jparralax"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/037.gif" alt="Useful JavaScript Techniques - jParralax" width="480" height="300" /></a></p>
<p>ddMenu – Context Menu Script<br />
ddMenu is a simple MooTools-based script to create you’re own context menus. Press the Crtl-key and right click to switch between ddMenu and browser default context menu. Press the Shift-key and right click to open ddMenu beside the browser default context menu.</p>
<p><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/049.gif" alt="Useful JavaScript Techniques - ddMenu - Context Menu Script" width="480" height="300" /></p>
<p><a href="http://code.google.com/p/js-hotkeys/">js-hotkeys</a><br />
jQuery.Hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line of code to bind/unbind a hot key combination. <a href="http://nettuts.com/javascript-ajax/how-to-create-a-keypress-navigation-using-jquery/">Alternative approach</a>.</p>
<p><a href="http://code.google.com/p/js-hotkeys/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/052.gif" alt="Useful JavaScript Techniques - js-hotkeys" width="480" height="300" /></a></p>
<p><a href="http://devthought.com/barackslideshow-an-elegant-lightweight-slideshow-script/">BarackSlideshow</a><br />
An elegant, lightweight slideshow script. It works with MooTools 1.2, and supports all kinds of shape transformations (top and left coordinates, and height and width properties), which means it can now be used with vertical, horizontal, or even irregular lists.</p>
<p><a href="http://devthought.com/barackslideshow-an-elegant-lightweight-slideshow-script/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/063.gif" alt="Useful JavaScript Techniques - Proto.Menu, prototype based context menu" width="480" height="300" /></a></p>
<p><a href="http://devkick.com/lab/galleria/">Galleria</a><br />
Galleria is a javascript image gallery written in jQuery. It loads the images one by one from an unordered list and displays thumbnails when each image is loaded. It will create thumbnails for you if you choose so, scaled or unscaled, centered and cropped inside a fixed thumbnail box defined by CSS.</p>
<p><a href="http://devkick.com/lab/galleria/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/022.gif" alt="Useful JavaScript Techniques - Galleria" width="480" height="300" /></a></p>
<p><a href="http://www.unfocus.com/projects/historykeeper/">History Keeper</a><br />
unFocus History Keeper is a JavaScript based library for managing browser history (back button) and providing support for deep linking for Flash and Ajax applications. It enables back button support, for client-side applications, has a hash-based deep linking (Anchor Style – index.html#foo=bar) and is event-driven – Subscriber pattern. Currently the script works well in all modern browsers.</p>
<p><a href="http://www.unfocus.com/projects/historykeeper/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/023.gif" alt="Useful JavaScript Techniques - History Keeper" width="480" height="300" /></a></p>
<p><a href="http://code.google.com/p/datejs/">date.js</a><br />
Datejs is an extensive open source JavaScript Date library for parsing, formatting and processing time and dates.</p>
<p><a href="http://code.google.com/p/datejs/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/024.gif" alt="Useful JavaScript Techniques - date.js" width="480" height="300" /></a></p>
<p><a href="http://www.nickstakenburg.com/projects/lightview/">Lightview</a><br />
Lightview is another script that create modal windows on a web-site. It has a smart image preloading, adjustable rounded corners, without PNGs and content resizes to always fit on your screen. The script can be used for presentations, single images, Quicktime-files, Forms, Iframes, Inline content and Flash-files.</p>
<p><a href="http://www.nickstakenburg.com/projects/lightview/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/03.gif" alt="Useful JavaScript Techniques - Lightview" width="480" height="300" /></a></p>
<p><a href="http://jqueryfordesigners.com/coda-popup-bubbles/">Coda popup bubbles</a></p>
<p>The software company Panic has a beloved Mac application for developers called <a href="http://www.panic.com/coda/">Coda</a>. Coda has an incredibly elegant design, and one of the subtle JavaScript effects that have been added to it is a stylized pop-up bubble. The blog <em>jQuery for Designers</em> has created a script that combines jQuery with <a href="http://jqueryfordesigners.com/coda-popup-bubbles/">custom code</a> to replicate the feature used on the Coda website. The effect is subtle and elegant and greatly adds to the user’s experience.</p>
<p><a href="http://jqueryfordesigners.com/coda-popup-bubbles/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/coda-bubble.jpg" alt="Coda Bubble" /></a></p>
<p><a href="http://www.ajaxim.com/">ajax im</a><br />
With the popularity of Web-based IM clients, like meebox, many developers want to add a JavaScript IM client of their own. Ajax IM is a library dedicated to creating an Ajax IM client that works out of the box. The script is a relatively large one, but it can be a nice effect for some websites that need more interaction with their users.</p>
<p><a href="http://www.smashingmagazine.com/wp-content/uploads/2008/09/ajaxim.jpg"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/ajaxim.jpg" alt="" width="500" height="392" /></a></p>
<p><a href="http://www.livevalidation.com/">LiveValidation</a></p>
<p>This is a handy gem for any web developer who uses forms. Trying to create an intuitive sign-up form can be a chore with all the different types of validation that need to happen. Also, creating a faster, more intuitive form with JavaScript can be tricky, too. Thankfully, <a href="http://www.livevalidation/">LiveValidation</a> has taken the guesswork out of the process and created a tiny, unobtrusive script that can take the pain out of form validation. If you’re a Ruby on Rails developer, LiveValidation comes in two forms: either with <a href="http://www.prototypejs.org/">Prototype</a> (ideal for Ruby on Rails) or one that can be used as a stand-alone package.</p>
<p><a href="http://www.livevalidation.com/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/livevalidation.png" alt="Live Validation" /></a></p>
<p><a href="http://www.brandspankingnew.net/archive/2006/08/ajax_auto-suggest_auto-complete.html">Ajax AutoSuggest</a><br />
Like TextboxList’s autocompletion script, Ajax AutoSuggest is a tasteful and refined autosuggest script. The script is quite tiny, weighing in at just under 9k, and adds a very nice touch to any search form.</p>
<p><a href="http://www.brandspankingnew.net/archive/2006/08/ajax_auto-suggest_auto-complete.html"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/autosuggest2.jpg" alt="Ajax Auto Suggest" /></a></p>
<p><a href="http://digitarald.de/project/fancyupload/1-0/">FancyUpload</a><br />
This is an upload script that shows the progress of files you are uploading. It’s perfect for any upload form and even allows for multiple uploads at the same time. You can limit the size of the uploaded file as well as restrict the type of file that can be uploaded. The only requirement that FancyUpload has is that your users have installed Flash, which has a 95% penetration among Web users.</p>
<p><a href="http://digitarald.de/project/fancyupload/1-0/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/fancyupload.png" alt="Fancy Upload" /></a></p>
<p><a href="http://www.taggify.net/blog/post/2008/01/How-to-add-advanced-tooltips-for-people-on-your-photo.aspx">Taggify</a><br />
Taggify is a bit different in implementation than the other JavaScripts listed. Taggify is a hosted solution for adding pop-up widgets to photos. Instead of having to download a script and host it on your site, you can just <a href="http://www.taggify.net/blog/post/2008/01/How-to-add-advanced-tooltips-for-people-on-your-photo.aspx">add a tiny &lt;include&gt;</a> in your tag, and you’ll have the power of Taggify installed on your site. Using Taggify is interesting; it adds notes and other useful information to photos.</p>
<p>Think of it as a souped-up version of the note-adding feature for Flickr images. You can add any HTML to the Taggify note, creating a nice informational page to accompany any image that needs a bit more explanation.</p>
<p><a href="http://www.taggify.net/blog/post/2008/01/How-to-add-advanced-tooltips-for-people-on-your-photo.aspx"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/image.jpg" alt="Taggify" /></a></p>
<p><a href="http://amberjack.org/">AmberJack</a><br />
AmberJack is one of the more interesting and compelling JavaScript techniques. Website tours are extremely beneficial because they can help familiarize users, showcase features and products, and many other things. Possibly the best part about AmberJack is that nothing has to be installed or learned to start creating website tours. AmberJack provides a way for website and product owners to quickly and easily create website tours with JavaScript. It’s an amazingly tiny download, at only 4 KB.</p>
<p><a href="http://amberjack.org/"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/amberjack.jpg" alt="" width="500" height="271" /></a></p>
<p><a href="http://creativepony.com/journal/scripts/sliding-tabs/">Sliding Tabs</a><br />
This is another script inspired by <a href="http://panic.com/coda/">Coda</a>. Essentially, it’s a smooth-scrolling tab system that makes switching between panes easy and smart. You can see a demo of Sliding Tabs <a href="http://creativepony.com/demos/sliding-tabs/">here</a>. Sliding Tabs is built off of the JavaScript framework MooTools. <a href="http://thecodecentral.com/2008/02/21/a-useful-javascript-image-loader">Alternative solution</a>.</p>
<p><a href="http://jqueryfordesigners.com/coda-slider-effect/"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/sliding_tabs_1.jpg" alt="" width="500" height="291" /></a></p>
<p><a href="http://creativepony.com/journal/scripts/sliding-tabs/"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/sliding_tabs.jpg" alt="" width="500" height="274" /></a></p>
<p><a href="http://thecodecentral.com/2008/02/21/a-useful-javascript-image-loader">JavaScript Image Loader</a><br />
If you’re looking for a more intuitive way for users to upload and preview images on your website, the JavaScript Image Loader (<a href="http://test.thecodecentral.com/demos/imageloader/">demo</a>) might fit the bill. The JavaScript Image Loader is a great way to show your users an image before it has uploaded, and it can also provide other information about the image if desired.</p>
<p><a href="http://thecodecentral.com/2008/02/21/a-useful-javascript-image-loader"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/imageloader.jpg" alt="" width="500" height="264" /></a></p>
<p><a href="http://www.swfir.com/">swfIR</a><br />
swfIR is an interesting concept as it uses a combination of Flash and JavaScript and adds image manipulation functionality to it. Once swfIR is installed, it adds a &lt;span&gt; with the class “swfir” around the image. swfIR can add almost any manipulation to an image. An especially useful feature of the script is its ability to automatically resize images based on the size of the page. When you resize the text on the page, the image resizes proportionally with the layout. By resizing the picture along with the text, the design feels much more cohesive.</p>
<p><a href="http://www.swfir.com/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/swfir_1.png" alt="swfIR" /></a></p>
<p><a title="MooFlow" href="http://www.outcut.de/MooFlow/">MooFlow</a><br />
For fans of Apple’s Cover Flow feature in Leopard, MooFlow is taken directly from Apple’s playbook. MooFlow is a JavaScript gallery script that uses <a href="http://mootools.net/">MooTools</a> and adds a bit of JavaScript magic to make beautiful image galleries, complete with a slider that mimics Cover Flow.</p>
<p>Just like with Cover Flow, you can manipulate MooFlow’s gallery layout and functionality. You can toggle full-screen mode, image reflection, and autoplay. MooFlow is quite configurable and easy to set up because it just grabs all of the images within an element.</p>
<p><a title="MooFlow" href="http://www.outcut.de/MooFlow/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/mooflow.png" alt="MooFlow" /></a></p>
<p><a href="http://www.amcharts.com/pie/">amCharts</a><br />
This script is a chart generator that runs off of a combination of flash and JavaScript. You can generate virtually any type of graph or chart with the script, and can even use .csv and xml files to pull the data from. With amCharts, you can generate graphs in the form of Column &amp; Bar, Pie &amp; Donut, Line &amp; Area and Scatter &amp; Bubble.</p>
<p><a href="http://www.amcharts.com/pie/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/amcharts.png" alt="AM Charts" /></a></p>
<p><a href="http://www.amcharts.com/pie/"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/amchart2.jpg" alt="" width="500" height="343" /></a></p>
<p><a href="http://orangoo.com/labs/GreyBox/">GreyBox</a><br />
GreyBox’s website hails the JavaScript pop-up window as “A pop-up window that doesn’t suck,” and for good reason. GreyBox does everything that a modal window <em>should</em> do. It can display pictures, websites, and just about any other content you can think of.</p>
<p>Using GreyBox is incredibly easy because once you’ve included the JavaScript file in the header, the only thing left to configure is adding a &lt;rel&gt; tag to whatever element you want to display in the window.</p>
<p><a href="http://ninjadesigns.co.uk/">Mailist</a><br />
While Mailist isn’t a full-blown <a href="http://www.dustindiaz.com/ajax-contact-form/">AJAX contact form</a>, the tiny script is exactly what most Web developers need to quickly store email addresses for things like beta sign-ups and other expression-of-interest forms. It even has a back end for administering things like email backups and editing the look of the form.</p>
<p><a href="http://ninjadesigns.co.uk/"><img src="http://www.smashingmagazine.com/wp-content/uploads/2008/09/mailist.jpg" alt="" width="500" height="382" /></a></p>
<p><a href="http://code.google.com/p/swfobject/">SWFObject</a><br />
SWFObject is a tiny little Flash player that uses JavaScript to overcome many of the obstacles that can’t be solved by markup alone. The player is a tiny download, only 9.5 KB (or 3.8 KB GZIP’ed). SWFObject prides itself on its compatibility with modern browsers, and it actually uses JavaScript to help detect which Flash player version to use and to avoid outdated Flash plug-ins that break Flash content.</p>
<p><a href="http://code.google.com/p/swfobject/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/swfobject.png" alt="SWF Object" /></a></p>
<p><a href="http://www.liquidx.net/plotkit/">PlotKit</a><br />
PlotKit is a JavaScript chart-plotting script that relies on the tiny JavaScript framework Moochikit. PlotKit is an exceptional library for quickly plotting all sorts of graphs.</p>
<p><a href="http://www.liquidx.net/plotkit/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/plotkit_1.png" alt="PlotKit" /></a></p>
<p><a href="http://www.barelyfitz.com/projects/tabber/">JavaScript tabifier</a><br />
The JavaScript tabifier is a nifty little script that allows you to quickly and easily create tabs for your content. All that is required to use tabifier is to include the JavaScript and add a &lt;div&gt; with the class “tabber” surrounding the tabbed content, and then add the class “tabbertab” and the title for the &lt;div&gt; in what shows as the tab’s title. You can even use advanced techniques, such as adding cookies to the tabs, dynamically changing the tabs, and setting a default tab.</p>
<p><a href="http://www.barelyfitz.com/projects/tabber/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/tabifier.png" alt="Tabifier" /></a></p>
<p><a href="http://www.cabel.name/2008/02/fancyzoom-10.html">FancyZoom 1.1</a><br />
Designed to view full-size photos and images inline without requiring a separate web page load, FancyZoom is providing a smooth, clean, truly Mac-like effect.</p>
<p>It is focused on a smoothest, polished zooming animation and automatically scales images from any image link, with no HTML changes. The script also preloads full-size images in the background on link mouseover and requires no Javascript libraries. FancyZoom requires only two lines of code in your HTML-files.</p>
<p><a href="http://safalra.com/web-design/javascript/mac-style-dock/">A Mac OS X-style Dock In JavaScript</a><br />
Apple’s Mac OS X operating system is renowned for its fluid graphical effects. One impressive feature is the dock’s ‘fish-eye’ effect, whereby icons expand and contract as the mouse moves over them. Achieving this effect in JavaScript is difficult, but the MacStyleDock function allows this feature to be implemented easily.</p>
<p><a href="http://safalra.com/web-design/javascript/mac-style-dock/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/08.gif" alt="Useful JavaScript Techniques - A Mac OS X-style Dock In JavaScript" width="480" height="300" /></a></p>
<p><a href="http://zendold.lojcomm.com.br/fvalidator/">fValidator – An open source (free) unobtrusive javascript tool for easy handling form validation</a><br />
fValidator is an open source (free) unobtrusive javascript tool for easy handling form validation. It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc). <a href="http://digitalbush.com/projects/masked-input-plugin">Alternative jQuery Plugin</a>.</p>
<p><a href="http://zendold.lojcomm.com.br/fvalidator/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/09.gif" alt="Useful JavaScript Techniques - fValidator - An open source (free) unobtrusive javascript tool for easy handling form validation" width="480" height="300" /></a></p>
<p><a href="http://www.filamentgroup.com/lab/jquery_interactive_date_range_picker_with_shortcuts/">jQuery Interactive Date Range Picker with Shortcuts</a><br />
An advanced jQuery date picker that is optimized for quickly selecting a date from a list of preset dates/ranges, and we added smooth transitions when additional options are revealed.</p>
<p><a href="http://www.filamentgroup.com/lab/jquery_interactive_date_range_picker_with_shortcuts/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/010.gif" alt="Useful JavaScript Techniques - jQuery Interactive Date Range Picker with Shortcuts" width="480" height="300" /></a></p>
<p><a href="http://raphaeljs.com/">Raphaël</a><br />
Raphaël is a small JavaScript library that should simplify your work with vector graphics on the Web. In case you want to create your own specific chart or image crop-n-rotate widget, you can simply achieve it with this library. Raphaël uses SVG and VML as a base for graphics creation.</p>
<p><a href="http://raphaeljs.com/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/012.gif" alt="Useful JavaScript Techniques - Raphaël" width="480" height="300" /></a></p>
<p><a href="http://www.nogray.com/time_picker.php">NoGray Time Picker</a><br />
This time picker utilizes a simple drag and drop interface. To select the time users can just drag the minutes or hour of a clock.</p>
<p><a href="http://www.nogray.com/time_picker.php"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/013.gif" alt="Useful JavaScript Techniques - NoGray Time Picker" width="480" height="300" /></a></p>
<p><a href="http://www.kminek.pl/lab/yetii/">Yetii – Yet (E)Another JavaScript Tab Interface</a><br />
Yetii is a simple, yet functional tab interface implementation. It has lightweight, object-oriented code and degrades gracefully in browsers without JavaScript-support. You can have many independend tab interfaces on a single page, specify initial tab, turn on automatic tabs rotation, add next/previous navigation, nest one tab interface inside another and define custom function to run after certain tab is clicked.</p>
<p>You can link to certain tab on page A from page B via URL parameter and you can turn on tab persistence feature, so the most recently clicked tab is stored inside a cookie and remembered between page refresh.</p>
<p><a href="http://www.kminek.pl/lab/yetii/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/015.gif" alt="Useful JavaScript Techniques - Yetii - Yet (E)Another JavaScript Tab Interface" width="480" height="300" /></a></p>
<p><a href="http://www.electricprism.com/aeron/calendar/">Calendar</a><br />
Calendar is a Mootools Javascript class that adds accessible and unobtrusive date-pickers to your form elements.It has highly configurable inputs and selects, multi-calendar support (with padding), variable navigation options and multi-lingual and fancy date formatting.</p>
<p><a href="http://www.electricprism.com/aeron/calendar/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/016.gif" alt="Useful JavaScript Techniques - Calendar" width="480" height="300" /></a></p>
<p><a href="http://www.nickstakenburg.com/projects/starbox/">Starbox</a><br />
Starbox allows you to easily create all kinds of rating boxes using just one PNG image. The library is build on top of the Prototype javascript framework. For some extra effects you can add Scriptaculous as well.</p>
<p><a href="http://www.nickstakenburg.com/projects/starbox/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/017.gif" alt="Useful JavaScript Techniques - Starbox" width="480" height="300" /></a></p>
<p><a href="http://www.magictoolbox.com/magiczoom/">Magic Zoom</a><br />
Magic Zoom is a JavaScript zoom tool. It’s the best way to display images in incredible detail. Users do not need to click anything – they just move their mouse over the image to see every detail of your product.</p>
<p><a href="http://www.magictoolbox.com/magiczoom/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/018.gif" alt="Useful JavaScript Techniques - Magic Zoom" width="480" height="300" /></a></p>
<p><a href="http://www.magictoolbox.com/magicmagnify/">Magic Magnify</a><br />
Magic Magnify is a Flash zoom tool. It’s an elegant effect to view images with a magnifying-glass. Upon hover over the image, the user sees the close-up detail of the product. Price: $28 / £15 / €18.</p>
<p><a href="http://www.magictoolbox.com/magicmagnify/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/019.gif" alt="Useful JavaScript Techniques - Magic Magnify" width="480" height="300" /></a></p>
<p><a href="http://www.piksite.com/carousel.us/">Carousel.us</a><br />
Carousel.us is a Javascript 3D carousel, using either the prototype.js and scriptaculous.js or mootools.js frameworks. It also uses PHP Easy Reflections v3 by Richard Davey.</p>
<p><a href="http://www.piksite.com/carousel.us/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/020.gif" alt="Useful JavaScript Techniques - Carousel.us" width="480" height="300" /></a></p>
<p><a href="http://code.google.com/p/slideshow/">slideshow</a><br />
Slideshow is a javascript class for Mootools 1.2 to stream and animate the presentation of images on your website. Slideshow is the result of many trials in code attempting to create a javascript class that was lightweight, unobtrusive, a snap to setup (but also highly configurable), extendable and – built using the javascript framework with the best effects – visually very impressive. Slideshow began as a side project by Aeron Glemann, and is now open source with an MIT-style license.</p>
<p><a href="http://code.google.com/p/slideshow/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/025.gif" alt="Useful JavaScript Techniques - slideshow" width="480" height="300" /></a></p>
<p><a href="http://code.google.com/p/jgrousedoc/">jgrousedoc</a><br />
jGrouseDoc allows developers to produce documentation for their javascript code based on javadoc-like comments embedded into the source code. It allows documentation of classes, regardless what kind of library/technology was used to implement OOP. The script also allows documentation of multiple syntaxes that could be used to invoke a function/method. The output is customizable using CSS and Velocity templates or XSLT.</p>
<p><a href="http://code.google.com/p/jgrousedoc/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/026.gif" alt="Useful JavaScript Techniques - jgrousedoc" width="480" height="300" /></a></p>
<p><a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox 2</a><br />
Lightbox is a simple, unobtrusive script used to overlay images on the current page. It’s a snap to setup and works on all modern browsers.</p>
<p><a href="http://www.lokeshdhakar.com/projects/lightbox2/"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/027.gif" alt="Useful JavaScript Techniques - Lightbox 2" width="480" height="300" /></a></p>
<p><a href="http://www.livepipe.net/control/window#hoverbox">Control.Window</a><br />
Control.Window is a fully programmable, multi purpose windowing toolkit for Prototype. It covers a wide variety of use cases and allows for a high degree of customization. It can attach to links to open the targets as windows, or can be filled with dynamic content. It includes support for stackable, draggable and resizable windows. Subclasses to handle Modal windows, LightBoxes and Tooltips are included.</p>
<p><a href="http://www.livepipe.net/control/window#hoverbox"><img src="http://media1.smashingmagazine.com/images/20-javascript-techniques/028.gif" alt="Useful JavaScript Techniques - Control.Window" width="480" height="300" /></a></p>
<p><a href="http://www.ericmmartin.com/projects/simplemodal/">SimpleModal</a><br />
SimpleModal is a lightweight jQuery plugin that provides a simple interface to create a modal dialog. The goal of SimpleModal is to provide developers with a cross-browser overlay and container that will be populated with data provided to SimpleModal.</p>
<p><a href="http://www.ericmmartin.com/projects/simplemodal/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/030.gif" alt="Useful JavaScript Techniques - SimpleModal" width="480" height="300" /></a></p>
<p><a href="http://www.webdevlounge.com/javascript/creating-a-carousel-with-mootools/">Creating a carousel with MooTools</a><br />
You’ve probably seen it on various websites: those neat little inline slideshows that browse you through a gallery of images (or content if you want, too). Most people simply copy the code to use it on their own site, but I believe that by making it yourself, you learn new techniques and gain new insight. Therefore I’ll walk you through this tutorial that teaches you how to achieve this through the use of CSS and MooTools.</p>
<p><a href="http://www.webdevlounge.com/javascript/creating-a-carousel-with-mootools/"><img src="http://media2.smashingmagazine.com/images/20-javascript-techniques/031.gif" alt="Useful JavaScript Techniques - Creating a carousel with MooTools" width="480" height="300" /></a></p>
<p><a href="http://willworkforart.net/tutorials/unobtrusive-expand-and-collapse-navigation">Unobtrusive Expand and Collapse Navigation</a><br />
A tutorial that displays how to to create a vertical navigation that will expand and collapse to show and hide sub-navigation using only unordered lists and as few class/id names as possible.</p>
<p><a href="http://willworkforart.net/tutorials/unobtrusive-expand-and-collapse-navigation"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/032.gif" alt="Useful JavaScript Techniques - Unobtrusive Expand and Collapse Navigation" width="480" height="300" /></a></p>
<p><a href="http://jqueryfordesigners.com/image-cross-fade-transition/">Image Cross Fade Transition</a><br />
Image rollovers were the staple JavaScript nugget of the 90s, and for a lot of JavaScript developers I know, one of the starting places their passion for JavaScript. Today, rollovers are a no-brainer – either in CSS or with the simplest of JavaScript. Today’s challenge is the rollover transition.</p>
<p><a href="http://jqueryfordesigners.com/image-cross-fade-transition/"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/033.gif" alt="Useful JavaScript Techniques - Image Cross Fade Transition" width="480" height="300" /></a></p>
<p><a href="http://jqueryfordesigners.com/slider-gallery/">Slider Gallery</a><br />
This ‘product slider’ is similar to a straight forward gallery, except that there is a slider to navigate the items, i.e. the bit the user controls to view the items.</p>
<p><a href="http://jqueryfordesigners.com/slider-gallery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/034.gif" alt="Useful JavaScript Techniques - Slider Gallery" width="480" height="300" /></a></p>
<p><a href="http://orderedlist.com/articles/fancyzoom-meet-jquery">FancyZoom meets jQuery // Ordered List // We Make The Web Beautifully Simple</a></p>
<p><a href="http://orderedlist.com/articles/fancyzoom-meet-jquery"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/035.gif" alt="Useful JavaScript Techniques - FancyZoom meets jQuery // Ordered List // We Make The Web Beautifully Simple" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/javascript-ajax/build-an-ajax-powered-shopping-cart/">Build An AJAX Powered Shopping Cart</a><br />
The goal of this tutorial is to show you how to build an AJAX powered shopping cart. However, it will not be production ready. The back end requirements vary from site to site far too much to write an effective tutorial. Instead, we are going to focus on the AJAX parts.</p>
<p><a href="http://nettuts.com/javascript-ajax/build-an-ajax-powered-shopping-cart/"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/038.gif" alt="Useful JavaScript Techniques - Build An AJAX Powered Shopping Cart" width="480" height="300" /></a></p>
<p><a href="http://www.filamentgroup.com/lab/jquery_ipod_style_drilldown_menu">jQuery iPod-style Drilldown Menu</a><br />
“We created an iPod-style drilldown menu to help users traverse hierarchical data quickly and with control. It’s especially helpful when organizing large data structures that don’t translate well into traditional dropdown or fly-out menus.”</p>
<p><a href="http://www.filamentgroup.com/lab/jquery_ipod_style_drilldown_menu"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/041.gif" alt="Useful JavaScript Techniques - jQuery iPod-style Drilldown Menu" width="480" height="300" /></a></p>
<p><a href="http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/">Load Content While Scrolling With jQuery</a><br />
This script allows to load the content “on the fly” – once th visitors has scrolled vertically to the end of the content block. “I always loved the dZone’s Ajax content loading while scrolling feature and created a similar one using jQuery.”</p>
<p><a href="http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/042.gif" alt="Useful JavaScript Techniques - Load Content While Scrolling With jQuery" width="480" height="300" /></a></p>
<p><a href="http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/">JavaScript Tooltips</a><br />
This tutorial describes how to create a nice, lightweight JavaScript tooltip. By Michael Leigeber.</p>
<p><a href="http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/043.gif" alt="Useful JavaScript Techniques - JavaScript Tooltips" width="480" height="300" /></a></p>
<p><a href="http://woork.blogspot.com/2008/07/fantastic-news-ticker-newsvine-like.html">Newsticker</a><br />
Antonio Lupetti re-creates a news ticker which is similar to the one used on Newsvine. Mootools in use.</p>
<p><a href="http://woork.blogspot.com/2008/07/fantastic-news-ticker-newsvine-like.html"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/044.gif" alt="Useful JavaScript Techniques - Newsticker" width="480" height="300" /></a></p>
<p><a href="http://www.openstudio.fr/jQuery-virtual-tour.html?lang=en">jQuery virtual tour</a><br />
This is an extension to the simple panorama viewer that allows you to play a little bit more with jQuery by adding interactivity to transform some panoramic views into a virtual tour.</p>
<p><a href="http://www.openstudio.fr/jQuery-virtual-tour.html?lang=en"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/047.gif" alt="Useful JavaScript Techniques - jQuery virtual tour" width="480" height="300" /></a></p>
<p><a href="http://webplicity.net/flexigrid/">Flexigrid</a><br />
Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml based data source using Ajax to load the content. Similar in concept with the Ext Grid only its pure jQuery love, which makes it light weight and follows the jQuery mantra of running with the least amount of configuration.</p>
<p><a href="http://webplicity.net/flexigrid/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/048.gif" alt="Useful JavaScript Techniques - Flexigrid" width="480" height="300" /></a></p>
<p><a href="http://ideamill.synaptrixgroup.com/?page_id=16">tableFilter</a><br />
This script allows users to filter and sort even large tables quickly and in an interactive way.</p>
<p><a href="http://ideamill.synaptrixgroup.com/?page_id=16"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/056.gif" alt="Useful JavaScript Techniques - tableFilter" width="480" height="300" /></a></p>
<p><a href="http://www.askthecssguy.com/2007/05/brett_asks_the_css_guy_if_the.html">Row Locking with Checkboxes</a><br />
“I had my function set up so that if any part of the row was clicked, the checkbox would check. When I clicked the actual checkbox, it would show a checkmark, but since the checkbox is a part of that row, my function would run, too, which would then think it’s time to uncheck the checkbox. In a fraction of a second, it would look like the checkbox never checked, but the row changed color anyway, sending the wrong signals to the end user.”</p>
<p><a href="http://www.askthecssguy.com/2007/05/brett_asks_the_css_guy_if_the.html"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/057.gif" alt="Useful JavaScript Techniques - Row Locking with Checkboxes" width="480" height="300" /></a></p>
<p><a href="http://abeautifulsite.net/notebook/58">jQuery File Tree</a><br />
jQuery File Tree is a configurable, AJAX file browser plugin for jQuery. You can create a customized, fully-interactive file tree with as little as one line of JavaScript code. It has the ability to style icons based on file extension, uses AJAX to fetch file information on the fly, has a customizable expand/collapse event and support single- and multi-folder views.</p>
<p><a href="http://abeautifulsite.net/notebook/58"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/058.gif" alt="Useful JavaScript Techniques - jQuery File Tree" width="480" height="300" /></a></p>
<p><a href="http://yura.thinkweb2.com/scripting/contextMenu/">Proto.Menu, prototype based context menu</a><br />
Proto.Menu is a simple and lightweight prototype-based solution for context menu functionality on your page.</p>
<p><a href="http://yura.thinkweb2.com/scripting/contextMenu/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/059.gif" alt="Useful JavaScript Techniques - Proto.Menu, prototype based context menu" width="480" height="300" /></a></p>
<p><a href="http://www.askthecssguy.com/2007/09/sangeeta_asks_the_css_guy_how_1.html">Pricing Matrix</a><br />
This tutorial explains how to create a matrix that would give an indication of relationships among the information provided.</p>
<p><a href="http://www.askthecssguy.com/2007/09/sangeeta_asks_the_css_guy_how_1.html"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/060.gif" alt="Useful JavaScript Techniques - Proto.Menu, prototype based context menu" width="480" height="300" /></a></p>
<p><a href="http://davidwalsh.name/build-toggling-announcement-slider-mootools-12">Toggling Announcement Slider</a><br />
“A few of my customer have asked for me to create a subtle but dynamic (…I know…) way for them to advertise different specials on their website. Not something that would display on every page, but periodically or only the homepage. Using a trick from GoDaddy’s playbook, I put together an announcement slider that toggles on click. Thanks to MooTools 1.2, this was a breeze.”</p>
<p><a href="http://davidwalsh.name/build-toggling-announcement-slider-mootools-12"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/061.gif" alt="Useful JavaScript Techniques - Proto.Menu, prototype based context menu" width="480" height="300" /></a></p>
<h3>Tutorials</h3>
<p><a href="http://web-kreation.com/index.php/tutorials/nice-login-and-signup-panel-using-mootools-12/">Show/hide a Login Panel using Mootools 1.2</a><br />
“Some of you were wondering what script I used to show/hide the login panel on top of this page (or in my latest WordPress theme: “Night Transition”). In this tutorial, we will see how to create a similar login/signup panel for your website using Mootools 1.2.”</p>
<p><a href="http://woork.blogspot.com/2008/03/simple-images-slider-to-create-flickr.html">Images slider to create Flickr-like slideshows</a><br />
If you like Flickr slideshow, this article explains how to implement it using Prototype-UI framework. “Since long time I was looking for a simple way to implement a Flickr-like slideshow (”image carousel”) and finally I found a good compromise between complexity and result to implement it using Prototype-UI, an awesome JavaScript framework based on Prototype and Scriptaculous.”</p>
<p><a href="http://www.kriesi.at/archives/apple-menu-improved-with-jquery">Create an apple style menu and improve it via jQuery</a><br />
“Since I wrote my last tutorial on how to create a CSS only multilevel dropdown menu I got a lot of visitors who wanted to know how I created the main navigation of kriesi.at. (a so called kwicks menu) The interest in extraordinary menus seems to be high nowadays, so today I will teach you how this is done.”</p>
<p><a href="http://www.kriesi.at/archives/apple-menu-improved-with-jquery"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/051.gif" alt="Useful JavaScript Techniques - Create an apple style menu and improve it via jQuery" width="480" height="300" /></a></p>
<p><a href="http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/">Creating a Slick Auto-Playing Featured Content Slider</a><br />
By Chris Coyier.</p>
<p><a href="http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/045.gif" alt="Useful JavaScript Techniques - Creating a Slick Auto-Playing Featured Content Slider" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/javascript-ajax/build-a-top-panel-with-jquery/">Build An Incredible Login Form With jQuery</a><br />
One struggle that still remains today in web design is displaying all of the redundant information on every page. For example, a login form. What if there was a way to easily make the content accessible on every page, but keep it hidden until needed? Well you can, by making a top panel that when clicked, will reveal its self and its content. But we need to make this look nice, so we’ll also animate it</p>
<p><a href="http://nettuts.com/javascript-ajax/build-a-top-panel-with-jquery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/046.gif" alt="Useful JavaScript Techniques - Build An Incredible Login Form With jQuery" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/html-css-techniques/how-to-create-a-slick-tabbed-content-area/">Create a Slick Tabbed Content Area using CSS &amp; jQuery</a><br />
“One of the biggest challenge to web designers is finding ways to place a lot of information on a page without losing usability. Tabbed content is a great way to handle this issue and has been widely used on blogs recently. Today we’re going to build a simple little tabbed information box in HTML, then make it function using some simple Javascript, and then finally we’ll achieve the same thing using the jQuery library.”</p>
<p><a href="http://nettuts.com/html-css-techniques/how-to-create-a-slick-tabbed-content-area/"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/053.gif" alt="Useful JavaScript Techniques - Create a Slick Tabbed Content Area using CSS &amp; jQuery" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/javascript-ajax/create-a-simple-intelligent-accordion-effect-using-prototype-and-scriptaculous/">Create a Simple, Intelligent Accordion Effect Using Prototype and Scriptaculous</a><br />
Learn how to create a lightweight, intelligent “accordion” effect using the Prototype and Scriptaculous libraries.</p>
<p><a href="http://nettuts.com/javascript-ajax/create-a-simple-intelligent-accordion-effect-using-prototype-and-scriptaculous/"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/20-javascript-techniques/054.gif" alt="Useful JavaScript Techniques - Create a Simple, Intelligent Accordion Effect Using Prototype and Scriptaculous" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/site-builds/create-a-simple-powerful-product-highlighter-with-mootools/">Create a Simple, Powerful Product Highlighter with MooTools</a><br />
This tutorial will help you find your inner cow by introducing you to one of the most powerful and modular javascript libraries—MooTools. You’ll create a flexible tool for highlighting your sites products or services using the MooTools javascript framework.</p>
<p><a href="http://nettuts.com/site-builds/create-a-simple-powerful-product-highlighter-with-mootools/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/055.gif" alt="Useful JavaScript Techniques - Create a Simple, Powerful Product Highlighter with MooTools" width="480" height="300" /></a></p>
<p><a href="http://nettuts.com/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/">Creating a Dynamic Poll with jQuery and PHP</a><br />
When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we’ll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.</p>
<p><a href="http://nettuts.com/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/20-javascript-techniques/036.gif" alt="Useful JavaScript Techniques - Creating a Dynamic Poll with jQuery and PHP" width="480" height="300" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=28&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/06/free-javascript-tutorial-auto-suggestion-css-spritesflash-chart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/1.png" medium="image">
			<media:title type="html">TextboxList's Autocompletion</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/014.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - addSizes.js</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/021.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - syntaxhighlighter</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/01.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - samaxesjs</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/05.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Step by Step</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/06.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - MoreCSS</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/039.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Facelift Image Replacement</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/040.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - CSS Sprites2</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/037.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jParralax</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/049.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - ddMenu - Context Menu Script</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/052.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - js-hotkeys</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/063.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Proto.Menu, prototype based context menu</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/022.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Galleria</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/023.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - History Keeper</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/024.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - date.js</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/03.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Lightview</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/coda-bubble.jpg" medium="image">
			<media:title type="html">Coda Bubble</media:title>
		</media:content>

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/ajaxim.jpg" medium="image" />

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/livevalidation.png" medium="image">
			<media:title type="html">Live Validation</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/autosuggest2.jpg" medium="image">
			<media:title type="html">Ajax Auto Suggest</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/fancyupload.png" medium="image">
			<media:title type="html">Fancy Upload</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/image.jpg" medium="image">
			<media:title type="html">Taggify</media:title>
		</media:content>

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/amberjack.jpg" medium="image" />

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/sliding_tabs_1.jpg" medium="image" />

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/sliding_tabs.jpg" medium="image" />

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/imageloader.jpg" medium="image" />

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/swfir_1.png" medium="image">
			<media:title type="html">swfIR</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/mooflow.png" medium="image">
			<media:title type="html">MooFlow</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/amcharts.png" medium="image">
			<media:title type="html">AM Charts</media:title>
		</media:content>

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/amchart2.jpg" medium="image" />

		<media:content url="http://www.smashingmagazine.com/wp-content/uploads/2008/09/mailist.jpg" medium="image" />

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/swfobject.png" medium="image">
			<media:title type="html">SWF Object</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/plotkit_1.png" medium="image">
			<media:title type="html">PlotKit</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/tabifier.png" medium="image">
			<media:title type="html">Tabifier</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/08.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - A Mac OS X-style Dock In JavaScript</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/09.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - fValidator - An open source (free) unobtrusive javascript tool for easy handling form validation</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/010.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jQuery Interactive Date Range Picker with Shortcuts</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/012.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Raphaël</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/013.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - NoGray Time Picker</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/015.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Yetii - Yet (E)Another JavaScript Tab Interface</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/016.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Calendar</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/017.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Starbox</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/018.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Magic Zoom</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/019.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Magic Magnify</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/020.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Carousel.us</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/025.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - slideshow</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/026.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jgrousedoc</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/027.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Lightbox 2</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/028.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Control.Window</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/030.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - SimpleModal</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/031.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Creating a carousel with MooTools</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/032.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Unobtrusive Expand and Collapse Navigation</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/033.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Image Cross Fade Transition</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/034.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Slider Gallery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/035.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - FancyZoom meets jQuery // Ordered List // We Make The Web Beautifully Simple</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/038.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Build An AJAX Powered Shopping Cart</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/041.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jQuery iPod-style Drilldown Menu</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/042.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Load Content While Scrolling With jQuery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/043.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - JavaScript Tooltips</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/044.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Newsticker</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/047.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jQuery virtual tour</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/048.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Flexigrid</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/056.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - tableFilter</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/057.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Row Locking with Checkboxes</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/058.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - jQuery File Tree</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/059.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Proto.Menu, prototype based context menu</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/060.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Proto.Menu, prototype based context menu</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/061.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Proto.Menu, prototype based context menu</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/051.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Create an apple style menu and improve it via jQuery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/045.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Creating a Slick Auto-Playing Featured Content Slider</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/046.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Build An Incredible Login Form With jQuery</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/053.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Create a Slick Tabbed Content Area using CSS &#38; jQuery</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/20-javascript-techniques/054.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Create a Simple, Intelligent Accordion Effect Using Prototype and Scriptaculous</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/055.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Create a Simple, Powerful Product Highlighter with MooTools</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/20-javascript-techniques/036.gif" medium="image">
			<media:title type="html">Useful JavaScript Techniques - Creating a Dynamic Poll with jQuery and PHP</media:title>
		</media:content>
	</item>
		<item>
		<title>Backgrounds In CSS: Everything You Need To Know</title>
		<link>http://code4free.wordpress.com/2009/09/06/backgrounds-in-css-everything-you-need-to-know/</link>
		<comments>http://code4free.wordpress.com/2009/09/06/backgrounds-in-css-everything-you-need-to-know/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:11:57 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=22</guid>
		<description><![CDATA[Properties Background color The background-color property fills the background with a solid color. There are a number of ways to specify the color. The follow commands all have the same output: view plaincopy to clipboardprint? background-color: blue; background-color: rgb(0, 0, 255); background-color: #0000ff; background-color: blue; background-color: rgb(0, 0, 255); background-color: #0000ff; The background-color property can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=22&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>Properties</h4>
<p><strong>Background color</strong><br />
The <code>background-color</code> property fills the background with a <strong>solid color</strong>. There are a number of ways to specify the color. The follow commands all have the same output:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-color</span><span>: </span><span>blue</span><span>; </span></span></li>
<li><span><span>background-color</span><span>: </span><span>rgb</span><span>(</span><span>0</span><span>, </span><span>0</span><span>, </span><span>255</span><span>); </span></span></li>
<li><span><span>background-color</span><span>: </span><span>#0000ff</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-color: blue;
background-color: rgb(0, 0, 255);
background-color: #0000ff;</pre>
<p>The <code>background-color</code> property can also be set to <code>transparent</code>, which makes any elements underneath it visible instead.</p>
<p><strong>Background image</strong><br />
The <code>background-image</code> property allows you to <strong>specify an image</strong> to be displayed in the background. This can be used in conjunction with <code>background-color</code>, so if your image is not tiled, then any space that the image doesn’t cover will be set to the background color. Again, the code is very simple. Just remember that the path is relative to the style sheet. So, in the following snippet, the image is in the same directory as the style sheet:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(image.jpg); </span></span></li>
</ol>
</div>
<pre style="display:none;">background-image: url(image.jpg);</pre>
<p>But if the image was in a sub-folder named <em>images</em>, then it would be:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(images/image.jpg); </span></span></li>
</ol>
</div>
<pre style="display:none;">background-image: url(images/image.jpg);</pre>
<p><strong>Background repeat</strong><br />
By default, when you set an image, the image is repeated both horizontally and vertically until the entire element is filled. This may be what you want, but sometimes you want an image to be displayed only once or to be tiled in only one direction. The possible values (and their results) are as follows:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-repeat</span><span>: </span><span>repeat</span><span>; </span><span>/* The default value. Will tile the image in both directions. */</span><span> </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>no-repeat</span><span>; </span><span>/* No tiling. The image will be used only once. */</span><span> </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>repeat-x</span><span>; </span><span>/* Tiles horizontally (i.e. along the x-axis) */</span><span> </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>repeat-y</span><span>; </span><span>/* Tiles vertically (i.e. along the y-axis) */</span><span> </span></span></li>
<li><span><span>background-repeat</span><span>: inherit; </span><span>/* Uses the same background-repeat property of the element&#8217;s parent. */</span><span> </span></span></li>
</ol>
</div>
<pre style="display:none;">background-repeat: repeat; 	/* The default value. Will tile the image in both directions. */
background-repeat: no-repeat; 	/* No tiling. The image will be used only once. */
background-repeat: repeat-x; 	/* Tiles horizontally (i.e. along the x-axis) */
background-repeat: repeat-y; 	/* Tiles vertically (i.e. along the y-axis) */
background-repeat: inherit;	/* Uses the same background-repeat property of the element's parent. */</pre>
<p><strong>Background position</strong><br />
The <code>background-position</code> property controls where a background image is located in an element. The trick with <code>background-position</code> is that you are actually specifying where the top-left corner of the image will be positioned, relative to the top-left corner of the element.</p>
<p>In the examples below, we have set a background image and are using the <code>background-position</code> property to control it. We have also set <code>background-repeat</code> to <code>no-repeat</code>. The measurements are all in pixels. The first digit is the x-axis position (horizontal) and the second is the y-axis position (vertical).</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>/* Example 1: default. */</span><span> </span></span></li>
<li><span><span>background-position</span><span>: </span><span>0 0</span><span>; </span><span>/* i.e. Top-left corner of element. */</span><span> </span></span></li>
<li><span> </span></li>
<li><span><span>/* Example 2: move the image to the right. */</span><span> </span></span></li>
<li><span><span>background-position</span><span>: </span><span>75px</span><span> </span><span>0</span><span>; </span></span></li>
<li><span> </span></li>
<li><span><span>/* Example 3: move the image to the left. */</span><span> </span></span></li>
<li><span><span>background-position</span><span>: </span><span>-75px</span><span> </span><span>0</span><span>; </span></span></li>
<li><span> </span></li>
<li><span><span>/* Example 4: move the image down. */</span><span> </span></span></li>
<li><span><span>background-position</span><span>: </span><span>0 100px</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">/* Example 1: default. */
background-position: 0 0;	/* i.e. Top-left corner of element. */

/* Example 2: move the image to the right. */
background-position: 75px 0;

/* Example 3: move the image to the left. */
background-position: -75px 0;

/* Example 4: move the image down. */
background-position: 0 100px;</pre>
<p><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-position.jpg" alt="" width="406" height="548" /><br />
<em>The image can be set to any position you like.</em></p>
<p>The <code>background-position</code> property also works with other values, <strong>keywords and percentages</strong>, which can be useful, especially when an element’s size is not set in pixels.</p>
<p>The keywords are self-explanatory. For the x-axis:</p>
<ul>
<li>left</li>
<li>center</li>
<li>right</li>
</ul>
<p>And for the y-axis:</p>
<ul>
<li>top</li>
<li>center</li>
<li>bottom</li>
</ul>
<p>Their order is exactly like that of the pixels values, x-axis value first, and y-axis value second, as so:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-position</span><span>: </span><span>top</span><span> </span><span>right</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-position: top right;</pre>
<p>Percentage values are similar. The thing to remember here is that when you specify a percentage, the browser sets <strong>the part of the image at that percentage</strong> to align with that percentage of the element. This makes more sense in an example. Let’s say you specify the following:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-position</span><span>: </span><span>100%</span><span> </span><span>50%</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-position: 100% 50%;</pre>
<p>This goes 100% of the way across the image (i.e. the very right-hand edge) and 100% of the way across the element (remember, the starting point is always the top-left corner), and the two line up there. It then goes 50% of the way down the image and 50% of the way down the element to line up there. The result is that the image is aligned to the right of the element and exactly half-way down it.</p>
<p><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-position2.jpg" alt="" width="207" height="254" /><br />
<em>The smiley face is aligned as it would be if it was set to <code>right center</code>.</em></p>
<p><strong>Background attachment</strong><br />
The <code>background-attachment</code> property determines what happens to an image when the user scrolls the page. The three available properties are <code>scroll</code>, <code>fixed</code> and <code>inherit</code>. <code>Inherit</code> simply tells the element to follow the <code>background-attachment</code> property of its parent.</p>
<p>To understand <code>background-attachment</code> properly, we need to first think of how the page and view port interact. The view port is the section of your browser that displays the Web page (think of it like your browser but without all the toolbars). The view port is set in its position and <strong>never moves</strong>.</p>
<p>When you scroll down a Web page, the view port does not move. Instead, the content of the page scrolls upward. This makes it seem as if the view port is scrolling down the page. Now, when we set background-attachment:scroll;, we are telling the background that when the element scrolls, the background must scroll with it. In simpler terms, the background sticks to the element. This is the default setting for <code>background-attachment</code>.</p>
<p>Let&#8217;s see an example to make it clearer:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(test-image.jpg); </span></span></li>
<li><span> </span></li>
<li><span><span>background-position</span><span>: </span><span>0 0</span><span>; </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>no-repeat</span><span>; </span></span></li>
<li><span><span>background-attachment</span><span>: </span><span>scroll</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-image: url(test-image.jpg);

background-position: 0 0;
background-repeat: no-repeat;
background-attachment: scroll;</pre>
<p><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment1.jpg" alt="" width="287" height="417" /><br />
<em>As we scroll down the page, the background scrolls up until it disappears.</em></p>
<p>But when we set the <code>background-attachment</code> to <code>fixed</code>, we are telling the browser that when the user scrolls down the page, the background should stay fixed where it is — i.e. not scroll with the content.</p>
<p>Let&#8217;s illustrate this with another example:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(test-image.jpg); </span></span></li>
<li><span><span>background-position</span><span>: </span><span>0 100%</span><span>; </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>no-repeat</span><span>; </span></span></li>
<li><span><span>background-attachment</span><span>: </span><span>fixed</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-image: url(test-image.jpg);
background-position: 0 100%;
background-repeat: no-repeat;
background-attachment: fixed;</pre>
<p><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment2.jpg" alt="" width="287" height="417" /><br />
<em>We have scrolled down the page here, but the image remains visible.</em></p>
<p>The important thing to note however is that the background image only appears in areas where its parent element reaches. Even though the image is positioned relative to the view port, it will not appear if it&#8217;s parent element is not visible. This can be shown with another example. In this one, we have aligned the image to the bottom-left of the view port. But only the area of the image inside the element is visible.</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(test-image.jpg); </span></span></li>
<li><span><span>background-position</span><span>: </span><span>0 100%</span><span>; </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>no-repeat</span><span>; </span></span></li>
<li><span><span>background-attachment</span><span>: </span><span>fixed</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-image: url(test-image.jpg);
background-position: 0 100%;
background-repeat: no-repeat;
background-attachment: fixed;</pre>
<p><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment3.jpg" alt="" width="287" height="417" /><br />
<em>Part of the image has been cut off because it begins outside of the element.</em></p>
<p><strong>The Background Shorthand Property</strong><br />
Instead of writing out all of these rules each time, we can combine them into a single rule. It takes the following format:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background</span><span>: &lt;color&gt; &lt;image&gt; &lt;position&gt; &lt;attachment&gt; &lt;</span><span>repeat</span><span>&gt; </span></span></li>
</ol>
</div>
<pre style="display:none;">background: &lt;color&gt; &lt;image&gt; &lt;position&gt; &lt;attachment&gt; &lt;repeat&gt;</pre>
<p>For example, the following rules&#8230;</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background-color</span><span>: </span><span>transparent</span><span>; </span></span></li>
<li><span><span>background-image</span><span>: </span><span>url</span><span>(image.jpg); </span></span></li>
<li><span><span>background-position</span><span>: </span><span>50%</span><span> </span><span>0</span><span> ; </span></span></li>
<li><span><span>background-attachment</span><span>: </span><span>scroll</span><span>; </span></span></li>
<li><span><span>background-repeat</span><span>: </span><span>repeat-y</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background-color: transparent;
background-image: url(image.jpg);
background-position: 50% 0 ;
background-attachment: scroll;
background-repeat: repeat-y;</pre>
<p>&#8230; could be combined into the following single line:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background</span><span>: </span><span>transparent</span><span> </span><span>url</span><span>(image.jpg) </span><span>50%</span><span> </span><span>0</span><span> </span><span>scroll</span><span> </span><span>repeat-y</span><span>; </span></span></li>
</ol>
</div>
<pre style="display:none;">background: transparent url(image.jpg) 50% 0 scroll repeat-y;</pre>
<p>And you don&#8217;t have to specify every value. If you leave a property out, its default value is used instead. For example, the line above has the same output as:</p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">view plain</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">print</a><a href="http://www.smashingmagazine.com/2009/09/02/backgrounds-in-css-everything-you-need-to-know/#">?</a></div>
</div>
<ol>
<li><span><span>background</span><span>: </span><span>url</span><span>(image.jpg) </span><span>50%</span><span> </span><span>0</span><span> </span><span>repeat-y</span><span>;<br />
</span></span></li>
</ol>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=22&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/06/backgrounds-in-css-everything-you-need-to-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-position.jpg" medium="image" />

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-position2.jpg" medium="image" />

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment1.jpg" medium="image" />

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment2.jpg" medium="image" />

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/css-backgrounds/css-background-attachment3.jpg" medium="image" />
	</item>
		<item>
		<title>Optimizing Flash Movies for Fast Download</title>
		<link>http://code4free.wordpress.com/2009/09/04/optimizing-flash-movies-for-fast-download/</link>
		<comments>http://code4free.wordpress.com/2009/09/04/optimizing-flash-movies-for-fast-download/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 06:11:48 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=19</guid>
		<description><![CDATA[Reducing your Flash Player file sizes is no longer so important because many people now have high-speed Internet connections. But not everyone does. So it still isn&#8217;t a bad idea to spend a little time thinking about shrinking the size of your Flash movies. Simplifying artwork By simplifying the artwork in your movie, you can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=19&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Reducing your Flash Player file sizes is no longer so important because many people now have high-speed Internet connections. But not everyone does. So it still isn&#8217;t a bad idea to spend a little time thinking about shrinking the size of your Flash movies.</p>
<p><strong>Simplifying artwork</strong></p>
<p>By simplifying the artwork in your movie, you can greatly reduce the size of a Flash movie, thereby increasing its speed. Here are the most important techniques:</p>
<ul>
<li><strong>Use symbols for every object that appears more than once</strong>. You can turn any object or group of objects into a symbol. Nest your symbols &#8211; for example, turn an object into a symbol and then use it in a movie clip or button. Remember that you can change the color of symbol instances &#8211; you don&#8217;t need to create a new symbol.</li>
<li><strong>Group objects whenever possible</strong>. Groups are almost as efficient as symbols.</li>
<li><strong>Use vector graphics rather than bitmaps when you can</strong>. When you do use bitmaps, don&#8217;t animate them unless you need to. Bitmaps and bitmap animation can increase your Flash Player file size and thus the download time. However, with the rising adoption of broadband Internet access, bitmaps are an increasingly important part of Flash projects</li>
<li><strong>Optimize curves (choose ModifyâžªShapeâžªOptimize)</strong>. You can optimize curves to reduce the number of lines used to create a shape. This can be tiresome on a large project, but if you really need to reduce the size of your Flash movie, this may help.</li>
<li><strong>Use solid lines rather than dashed, dotted, and other line types when possible</strong>. Try to avoid custom line widths</li>
<li><strong>Use the Pencil tool rather than the Brush tool whenever possible</strong>. The Pencil tool uses fewer bytes in your movie.</li>
<li><strong>Use the Web-safe color palette</strong>. Avoid custom colors. Custom color definitions are kept with the Flash Player file.</li>
<li><strong>Avoid using transparency when you don&#8217;t need it</strong>. Using transparency doesn&#8217;t make your Flash file bigger, but it can slow down playback because of the extra calculation required. (On the other hand, sometimes transparency effects make your movie look really great.)</li>
<li><strong>Use solid fills rather than gradients</strong>. Gradients are more complex and make the Flash Player file bigger. However, gradients are also key to the Flash look that is so popular. They help to make vector graphics look less flat</li>
</ul>
<p><strong>Optimizing text</strong></p>
<p>Text can consume lots of bytes. Here&#8217;s what you can do to reduce the byte bite:</p>
<ul>
<li><strong>Reduce the number of fonts and font styles (bold, italic) as much as possible</strong>. Use simpler sans serif fonts if you can. You get the best results file-size-wise with the device fonts (sans, serif, and typewriter), although you might find these device fonts boring. Flash doesn&#8217;t need to store the outlines of device fonts in the .swf file, so these take up fewer bytes. And usually your Flash projects will look better if you don&#8217;t use too many fonts &#8211; a useful rule in the graphic design world is to avoid using more than three fonts in a design.</li>
<li><strong>If you create text fields, limit the text and specify any restrictions that you can in the Character Options dialog box.</strong>(Choose Windowâžª PropertyâžªProperties to open the Property inspector if it&#8217;s not already open, and then click Character in the Property inspector to open the Character Options dialog box.) For example, exclude unnecessary character outlines, such as numbers.</li>
</ul>
<p><strong>Compressing sound</strong>You can compress sounds to reduce the file size. When you compress individual sounds in the Sound Properties dialog box, you can fine-tune settings for each individual sound in your movie. Use the MP3 format whenever possible because it compresses well.</p>
<p>Here are some other ways that you can reduce the size of your sound files:</p>
<ul>
<li>Adjust the sound&#8217;s Time In and Time Out points to prevent silent areas from being stored in your .swf file.</li>
<li>Reuse sounds by using different In and Out points and by looping different parts of the same sound.</li>
<li>Don&#8217;t loop streaming sound.</li>
</ul>
<p><strong>Animating efficiently</strong></p>
<p>One of the most effective ways to reduce file size is to use tweens. Frame-by-frame animation creates larger files. Keeping animation localized in one area also helps. Small animations (animations where the objects don&#8217;t move much) produce smaller file sizes than wide-area animations.</p>
<div id="TixyyLink" style="border:medium none;overflow:hidden;color:#000000;background-color:transparent;text-align:left;text-decoration:none;">
Read more: <a href="http://www.webdesign.org/web/flash-&amp;-swish/articles/optimizing-flash-movies-for-fast-download.15325.html#ixzz0Q7DoZJUJ">http://www.webdesign.org/web/flash-&amp;-swish/articles/optimizing-flash-movies-for-fast-download.15325.html#ixzz0Q7DoZJUJ</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=19&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/09/04/optimizing-flash-movies-for-fast-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Flash Tutorials</title>
		<link>http://code4free.wordpress.com/2009/08/26/adobe-flash-tutorials/</link>
		<comments>http://code4free.wordpress.com/2009/08/26/adobe-flash-tutorials/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 15:05:50 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=16</guid>
		<description><![CDATA[Adobe Flash Tutorials &#8211; Best of By Smashing Editorial, January 17th, 2008 in Tutorials &#124; 175 Comments &#124; Forum Advertisement // // Although usability evangelists often consider Flash to be a usability nightmare, used properly, Flash can provide users with a rich and interactive interface which would be impossible otherwise. Today Flash is the de-facto [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=16&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><a title="Adobe Flash Tutorials - Best of" rel="bookmark" href="http://www.smashingmagazine.com/2008/01/17/adobe-flash-tutorials-best-of/">Adobe Flash Tutorials &#8211; Best of</a></h1>
<div>
<p>By Smashing Editorial, January 17th, 2008 in <a title="View all posts in Tutorials" rel="category tag" href="http://www.smashingmagazine.com/category/tutorials/">Tutorials</a> | <a title="Comment on Adobe Flash Tutorials - Best of" rel="nofollow" href="http://www.smashingmagazine.com/2008/01/17/adobe-flash-tutorials-best-of/#comments"><strong>175 Comments</strong></a> | <a href="http://forum.smashingmagazine.com/">Forum</a></div>
<div><span>Advertisement</span><br />
<!-- Smashing Magazine - Medium Rectangle ad spot --></p>
<div id="mediumrectangletarget">
<div id="mediumrectangle"><!-- Smashing Magazine - Medium Rectangle ad spot --> // // <a href="http://creatives.commindo-media.de/www/delivery/ck.php?oaparams=2__bannerid=465__zoneid=14__cb=1d4d560a34__oadest=http%3A%2F%2Fwww.wix.com%2F%3Futm_campaign%3Dsmashing%26experiment_id%3Dsmashflash3" target="_blank"><img title="Create free stunning flash websites!" src="http://creatives.commindo-media.de/www/delivery/ai.php?filename=smashing300_250.jpg&amp;contenttype=jpeg" border="0" alt="Create free stunning flash websites!" width="300" height="250" /></a></p>
<div id="beacon_1d4d560a34" style="position:absolute;left:0;top:0;visibility:hidden;"><img style="width:0;height:0;" src="http://creatives.commindo-media.de/www/delivery/lg.php?bannerid=465&amp;campaignid=271&amp;zoneid=14&amp;loc=http%3A%2F%2Fwww.smashingmagazine.com%2F2008%2F01%2F17%2Fadobe-flash-tutorials-best-of%2F&amp;referer=http%3A%2F%2Fwww.google.com%2Fcustom%3Fhl%3Den%26safe%3Dactive%26client%3Dpub-6779860845561969%26channel%3D3942503296%26cof%3DFORID%3A11%253BS%3Ahttp%3A%2F%2Fwww.smashingmagazine.com%253BL%3Ahttp%3A%2F%2Fwww.smashingmagazine.com%2Fwp-content%2Fthemes%2FSM-theme%2Fimg%2Flogo.gif%253BLH%3A50%253BLW%3A138%253B%26domains%3Dwww.smashingmagazine.com%26sitesearch%3Dwww.smashingmagazine.com%26sig%3DZKMPj-qL6g57hzX6%26flav%3D0000%26ad%3Dw9%26ei%3Di06VSoXsIJKHlAem0eWvDQ%26sa%3DX%26oi%3Dspell%26resnum%3D0%26ct%3Dresult%26cd%3D1%26q%3Dactionscript%26spell%3D1&amp;cb=1d4d560a34" alt="" width="0" height="0" /></div>
<div id="beacon_235283c16c" style="position:absolute;left:0;top:0;visibility:hidden;"><img style="width:0;height:0;" src="http://creatives.commindo-media.de/www/delivery/lg.php?bannerid=702&amp;campaignid=406&amp;zoneid=65&amp;loc=1&amp;referer=http%3A%2F%2Fwww.smashingmagazine.com%2F2008%2F01%2F17%2Fadobe-flash-tutorials-best-of%2F&amp;cb=235283c16c" alt="" width="0" height="0" /></div>
</div>
</div>
</div>
<p><!-- google_ad_section_start -->Although usability evangelists often consider Flash to be a usability nightmare, used properly, <strong>Flash</strong> can provide users with a rich and interactive interface which would be impossible otherwise. Today Flash is the de-facto standard for interactive elements on the Web as most users install Flash plug-in by default. And in fact, there are many paths creative designers can take to create a more interactive and user-friendly interface.</p>
<p>Searching for ‘flash tutorials’ via Google &amp; Co. won’t provide you with the results you expect. Not that you won’t find any relevant results, on the contrary — you will be directed to a large number of Flash repositories which offer everything: sometimes useful, but mostly not. Besides, browsing through these repositories isn’t that much fun — as you sometimes need to figure out whether a link you see is a hidden AdSense-block or the actual tutorial. And it’s really hard to find something “refreshing” and new simply using some standard keywords.</p>
<p>This article provides <strong>hand-picked professional Flash tutorials</strong> which can enrich your design skills and improve the quality of your works. We’ve tried to select most interesting and useful tutorials. Most sources can serve as the entry point for further tutorials.</p>
<h3>Animation and Effects</h3>
<p><a href="http://www.chazzuka.com/blog/index.php?p=37&amp;t=flash-tutorial-create-water-effect-animation-using-masking-technique.html">Flash Tutorial Create Water Wave Effect Animation Using Masking Tween</a><br />
We’re going to make a flash animation water wave effect and we going to move step by step to give you a clean explanation about how to make a water wave effect in flash using masking technique.</p>
<p><a href="http://www.chazzuka.com/blog/index.php?p=37&amp;t=flash-tutorial-create-water-effect-animation-using-masking-technique.html"><img src="http://media2.smashingmagazine.com/images/flash2/watereffect.jpg" alt="Flash Tutorial Screenshot" width="342" height="148" /></a></p>
<p><a href="http://www.toxiclab.org/tutorial.asp?ID=202">Car Animation</a><br />
This lesson will teach you how to create on a simple way very attractive animation using a picture of Bmw 3 series.</p>
<p><a href="http://www.toxiclab.org/tutorial.asp?ID=202"><img src="http://media2.smashingmagazine.com/images/flash2/caranim.png" alt="Flash Tutorial Screenshot" width="351" height="150" /></a></p>
<p><a href="http://www.toxiclab.org/tutorial.asp?ID=190">Picture Animation</a><br />
In this detailed lesson you will see how to create on a simple way picture animation using the Brush Tool and mask.</p>
<p><a href="http://www.toxiclab.org/tutorial.asp?ID=190"><img src="http://media1.smashingmagazine.com/images/flash2/lemon2.png" alt="Flash Tutorial Screenshot" width="288" height="408" /></a></p>
<p><a href="http://www.flashvault.net/tutorial.asp?ID=122">High-tech city animation</a><br />
This detailed lesson made for Flash 8 will teach you how to create a really cool and advanced light city animation…  <a href="http://www.flashvault.net/default.asp">More tutorials from this site</a>.</p>
<p><a href="http://www.flashvault.net/tutorial.asp?ID=122"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/high_tech_city_animation.gif" alt="Flash Tutorial Screenshot" width="309" height="308" /></a></p>
<p><a href="http://www.blog.spoongraphics.co.uk/tutorials/animate-a-logo-in-flash">Animate a Logo in Flash</a><br />
With web and multimedia design there is the opportunity to add a little fun and creativity to your logo by creating a simple animation effect. Obviously this process isn’t limited to just your logo; animating an element can help draw attention to a particular object or area of a webpage or digital presentation.</p>
<p><a href="http://www.blog.spoongraphics.co.uk/tutorials/animate-a-logo-in-flash"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/spooner.jpg" alt="Flash Tutorial Screenshot" width="330" height="133" /></a></p>
<p><a href="http://www.flashvault.net/tutorial.asp?ID=68">Misty River</a><br />
Read this tutorial and see how to create misty river animation. You will also learn how to use flash filters (Blur, Bevel and Drop shadow filter) and more.</p>
<p><a href="http://www.flashvault.net/tutorial.asp?ID=68"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/misty_river.jpg" alt="Flash Tutorial Screenshot" width="392" height="293" /></a></p>
<p><a href="http://blog.0tutor.com/post.aspx?id=67&amp;titel=Hypnotic-gear-rotation-tutorial">Hypnotic Gear Rotation</a><br />
I’m not sure what inspired me to do this crazy gear rotating animation, but for some reason I just started making a simple gear in flash, then what does a gear do? well it rotates!</p>
<p><a href="http://blog.0tutor.com/post.aspx?id=67&amp;titel=Hypnotic-gear-rotation-tutorial"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/gear.gif" alt="Flash Tutorial Screenshot" width="330" height="231" /></a></p>
<p><a href="http://blog.codefidelity.com/?p=18">Execute Lightbox Scripts From Flash: Part Deux</a><br />
Since the first thread showing you how to execute Lightbox scripts from Flash was such a big hit, I decided to write another showing you how to gain even more functionality in this regard. Tonight I will be showing you how to initiate a Lightbox containing a Flash movie from a Flash movie, and how to initiate Lightbox groups containing images as well as Flash movies.</p>
<p><a href="http://blog.codefidelity.com/?p=18"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/lightbox.jpg" alt="Flash Tutorial Screenshot" width="340" height="166" /></a></p>
<p><a href="http://www.flashrespect.com/simple-shape-animation/">Simple Shape Animation</a><br />
In this tutorial you will see how to transform image in many shapes. To create this tutorial, you don’t have to use action script. Only one thing that you need is flash. <a href="http://www.flashrespect.com/">More tutorials from this source</a>.</p>
<p><a href="http://www.flashrespect.com/simple-shape-animation/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/shape.jpg" alt="Flash Tutorial Screenshot" width="266" height="235" /></a></p>
<p><a href="http://www.oman3d.com/tutorials/flash/old_grain/">Old Grains Effect (Old TV Effect) in Flash</a><br />
In this tutorial we are going to emulate a Grain Effect in Flash which is similar to what we see in old televisions. This effect is widely used in movie scenes to indicate a event that have occurred ages ago. <a href="http://www.oman3d.com/tutorials/flash/">More tutorials from this source</a>. Has also a collection of <a href="http://www.oman3d.com/tutorials/flash/index_video.php">video tutorials</a>.</p>
<p><a href="http://www.oman3d.com/tutorials/flash/old_grain/"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/oldgrain.jpg" alt="Flash Tutorial Screenshot" width="440" height="338" /></a></p>
<p><a href="http://www.entheosweb.com/Flash/zoom_in.asp">Zoom in Zoom Out Flash Animation with Fading Effect</a><br />
This tutorial will teach you how to create a simple zoom in &amp; zoom out animation with fade-in and fade-out effect in Flash. You can use this zooming effect on any image or text.</p>
<p><a href="http://www.entheosweb.com/Flash/zoom_in.asp"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/zoom_in_zoom_out.png" alt="Flash Tutorial Screenshot" width="408" height="249" /></a></p>
<p><a href="http://wipeout44.com/tutorials/flash_tunnel_effect.asp">Creating a 3D Tunnel Effect in Flash</a><br />
Learn how to create this very cool 3D tunnel effect in Flash using some simple 2D animation techniques.</p>
<p><a href="http://wipeout44.com/tutorials/flash_tunnel_effect.asp"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/tunnel.jpg" alt="Flash Tutorial Screenshot" width="439" height="194" /></a></p>
<p><a href="http://wipeout44.com/tutorials/flash_fireworks.asp">Creating realistic Fireworks in Flash</a><br />
Create a realistic particle based firework display using Flash.</p>
<p><a href="http://wipeout44.com/tutorials/flash_fireworks.asp"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/fireworks-flash.jpg" alt="Flash Tutorial Screenshot" width="440" height="188" /></a></p>
<p><a href="http://www.flashfridge.com/tutorial.asp?ID=56">Rotating Letter Effect in Text</a><br />
See this tutorial and learn how to rotate letters in series using some special flash tricks. You don’t have to use action script code to make this lesson. <a href="http://www.flashfridge.com/">More tutorials from this source</a>.</p>
<p><a href="http://www.flashfridge.com/tutorial.asp?ID=56"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/rotatingletter.jpg" alt="Flash Tutorial Screenshot" width="330" height="229" /></a></p>
<p><a href="http://www.lashf.com/page/basic/running_circles_effect">Eye Catching Effect With Flash</a><br />
This is an eye-catching effect that could not be created too easily without ActionScript. Flash allows you to create many cool effects using only (or almost only) ActionScript, I hope you can make a good effect.</p>
<p><a href="http://www.lashf.com/page/basic/running_circles_effect"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/effect.jpg" alt="Flash Tutorial Screenshot" width="200" height="134" /></a></p>
<h3>Images and Videos</h3>
<p><a href="http://photojojo.com/content/diy/videoramas-stitch-digital-video-panoramas/">How to Make Video Panoramas from Your Digital Camera’s Video Clips</a><br />
Your digital camera probably shoots video clips as well, and by stitching those clips together, you can make a full-motion video panorama. Landscapes, streetscapes, interior shots, birthday parties, they all come to life in sparkling, wide-angle videoramas. If you liked our panographies, you’ll love our videoramas. Read on to see an example and learn how it’s done.</p>
<p><a href="http://photojojo.com/content/diy/videoramas-stitch-digital-video-panoramas/"><img style="display:inline;" src="http://media1.smashingmagazine.com/images/flash2/panoramas.jpg" alt="Flash Tutorial Screenshot" width="400" height="210" /></a></p>
<p><a href="http://www.tu-world.com/flash/flash_tutorial_06.php">360 Grad View</a><br />
Create a panoramic view of the image with Flash.</p>
<p><a href="http://www.tu-world.com/flash/flash_tutorial_06.php"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/360.jpg" alt="Flash Tutorial Screenshot" width="450" height="163" /></a></p>
<p><a href="http://www.adobe.com/devnet/flash/articles/reflect_class_as3.html">Creating movie clips with reflections in ActionScript 3.0</a><br />
Ben Pritchard’s tutorials. You’re probably aware of those nice reflections appearing in some of the latest websites, online ads, and even software. It’s an effect common to &#8220;Web 2.0&#8243; designs, in which something like an album cover or video player appears to reflect some sort of virtual floor beneath it. This tutorial steps you through the creation of the Reflect class.</p>
<p><a href="http://www.adobe.com/devnet/flash/articles/reflect_class_as3.html"><img style="display:inline;" src="http://media2.smashingmagazine.com/images/flash2/fig02.jpg" alt="Flash Tutorial Screenshot" width="175" height="333" /></a></p>
<p>Flash Tutorial – Fullscreen Flash Movie with no Warping or Stretching<br />
Flash movies inherently have a predetermined height and width, as defined by the size of the Stage in the Flash authoring tool. Generally when a Flash movie is resized in the web browser, its contents get warped and stretched. This is sometimes not a problem with vector graphics, but with bitmap graphics it is an utter disaster. There are, however, some clever ActionScript techniques that can allow you to resize a Flash movie without any distortion of its contents. 5 pages.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=16&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/08/26/adobe-flash-tutorials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://creatives.commindo-media.de/www/delivery/ai.php?filename=smashing300_250.jpg&#38;contenttype=jpeg" medium="image">
			<media:title type="html">Create free stunning flash websites!</media:title>
		</media:content>

		<media:content url="http://creatives.commindo-media.de/www/delivery/lg.php?bannerid=465&#38;campaignid=271&#38;zoneid=14&#38;loc=http%3A%2F%2Fwww.smashingmagazine.com%2F2008%2F01%2F17%2Fadobe-flash-tutorials-best-of%2F&#38;referer=http%3A%2F%2Fwww.google.com%2Fcustom%3Fhl%3Den%26safe%3Dactive%26client%3Dpub-6779860845561969%26channel%3D3942503296%26cof%3DFORID%3A11%253BS%3Ahttp%3A%2F%2Fwww.smashingmagazine.com%253BL%3Ahttp%3A%2F%2Fwww.smashingmagazine.com%2Fwp-content%2Fthemes%2FSM-theme%2Fimg%2Flogo.gif%253BLH%3A50%253BLW%3A138%253B%26domains%3Dwww.smashingmagazine.com%26sitesearch%3Dwww.smashingmagazine.com%26sig%3DZKMPj-qL6g57hzX6%26flav%3D0000%26ad%3Dw9%26ei%3Di06VSoXsIJKHlAem0eWvDQ%26sa%3DX%26oi%3Dspell%26resnum%3D0%26ct%3Dresult%26cd%3D1%26q%3Dactionscript%26spell%3D1&#38;cb=1d4d560a34" medium="image" />

		<media:content url="http://creatives.commindo-media.de/www/delivery/lg.php?bannerid=702&#38;campaignid=406&#38;zoneid=65&#38;loc=1&#38;referer=http%3A%2F%2Fwww.smashingmagazine.com%2F2008%2F01%2F17%2Fadobe-flash-tutorials-best-of%2F&#38;cb=235283c16c" medium="image" />

		<media:content url="http://media2.smashingmagazine.com/images/flash2/watereffect.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/caranim.png" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/lemon2.png" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/high_tech_city_animation.gif" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/spooner.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/misty_river.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/gear.gif" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/lightbox.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/shape.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/oldgrain.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/zoom_in_zoom_out.png" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/tunnel.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/fireworks-flash.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/rotatingletter.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/effect.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/images/flash2/panoramas.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/360.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/images/flash2/fig02.jpg" medium="image">
			<media:title type="html">Flash Tutorial Screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Useful New jQuery Techniques and Tutorials</title>
		<link>http://code4free.wordpress.com/2009/08/26/useful-new-jquery-techniques-and-tutorials/</link>
		<comments>http://code4free.wordpress.com/2009/08/26/useful-new-jquery-techniques-and-tutorials/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 15:00:25 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=12</guid>
		<description><![CDATA[Moving Boxes Carousel with jQuery Many of the concepts presented in classic carousel tutorials are the same, so this tutorial will not throw a lot of source code at you. The big difference here is that there are buttons to change panels and the panels zoom in and out. Sliding Boxes and Captions with jQuery [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=12&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://css-tricks.com/moving-boxes/">Moving Boxes Carousel with jQuery</a><br />
Many of the concepts presented in classic carousel tutorials are the same, so this tutorial will not throw a lot of source code at you. The big difference here is that there are buttons to change panels and the panels zoom in and out.</p>
<p><a href="http://css-tricks.com/moving-boxes/"><img src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/moving.jpg" alt="Automatic Infinite Carousel" width="480" height="300" /></a></p>
<p><a href="http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/">Sliding Boxes and Captions with jQuery</a><br />
All of these sliding box animations work on the same basic idea. There is a div tag (.boxgrid in my css) that essentially acts as a window where two other items of your choosing “peek” through.</p>
<p><a href="http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/"><img src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/capt.jpg" alt="Sliding Boxes and Captions with jQuery" width="480" height="278" /></a></p>
<p><a href="http://www.filamentgroup.com/lab/creating_accessible_charts_using_canvas_and_jquery/">Accessible Charts &amp; Graphs from Table Elements using HTML 5 Canvas and jQuery</a><br />
This technique provides a simple method for generating bar, line, area, and pie charts from an HTML table, and allows you to configure them in a variety of ways.</p>
<p><a href="http://www.filamentgroup.com/lab/creating_accessible_charts_using_canvas_and_jquery/"><img src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/chart.gif" alt="Sliding Boxes and Captions with jQuery" width="480" height="278" /></a></p>
<p><a href="http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/">Make a Mega Drop-Down Menu with jQuery</a><br />
So how would we go about implementing Mega drop down menus? While it’d be great to do all of this in pure HTML and CSS, it’s impossible at the moment to get those nice half-second delays — and of course there’s a pesky problem with Internet Explorer 6, which only supports :hover on anchor elements. Instead, I’ve whipped up a solution using jQuery and a very nifty plugin called hoverIntent.</p>
<p><a href="http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/mega.gif" alt="Mega drop down menu with jQuery" width="480" height="300" /></a></p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/">Creating a Filterable Portfolio with jQuery</a><br />
If you have worked in your field for a while, there is a pretty good chance that you have a rather extensive portfolio. To make it a little easier to navigate, you will probably be tempted to break them into different categories. In this tutorial, I will show you how to make “filtering by category” a little more interesting with just a little bit of jQuery.</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/filt.gif" alt="Creating a Filterable Portfolio with jQuery" width="480" height="300" /></a></p>
<p><a href="http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html">A fancy Apple.com-style search suggestion</a><br />
“This example makes use of several techniques: MySQL (for the database), HTML/CSS for styling, PHP for retrieving the data and jQuery for the AJAX request. How about that for some nice way of combining powerful techniques to create something nice like this. You do need some basic knowledge about these techniques to fully understand this tutorial.”</p>
<p><a href="http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/qp.gif" alt="A fancy Apple.com-style search suggestion" width="480" height="300" /></a></p>
<p><a href="http://css-tricks.com/improved-current-field-highlighting-in-forms/">Current Field Highlighting</a><br />
As a matter of usability and aesthetics, it is a good thing to add some kind of visual feedback on web forms to indicate the currently active (or “focused“) field. In this tutorial, we’ll improve our current field highlighting, using jQuery.</p>
<p><a href="http://css-tricks.com/improved-current-field-highlighting-in-forms/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/highl.gif" alt="Current Field Highlighting" width="480" height="214" /></a></p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/">Creating a Dynamic Poll with jQuery and PHP</a><br />
“When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we’ll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.”</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-dynamic-poll-with-jquery-and-php/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/poll.gif" alt="Creating a Dynamic Poll with jQuery and PHP" width="480" height="300" /></a></p>
<p><a href="http://jqueryfordesigners.com/jquery-infinite-carousel/">jQuery Infinite Carousel</a><br />
This screencast explains how you can create a simple and nice scrolling carousel and how you can also make it automatically loop round by itself. For the latter see also <a href="http://jqueryfordesigners.com/automatic-infinite-carousel/">Automatic Infinite Carousel</a>.</p>
<p><a href="http://jqueryfordesigners.com/jquery-infinite-carousel/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/car.jpg" alt="Automatic Infinite Carousel" width="441" height="182" /></a></p>
<p><a href="http://jqueryfordesigners.com/jquery-look-tim-van-damme/">De-Constructing Accordion and Hover Effects with jQuery</a><br />
This video tutorial explains how the hover and accordeon effects on <a href="http://timvandamme.com/">Tim Van Damme’s site</a> can be achieved using jQuery.</p>
<p><a href="http://jqueryfordesigners.com/jquery-look-tim-van-damme/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/tim.jpg" alt="How to Make a Threadless Style T-Shirt Gallery" width="480" height="300" /></a></p>
<p><a href="http://briancray.com/2009/07/28/increase-form-usability-replace-form-button-submit/">Better form submission feedback with jQuery</a><br />
Browsers fail to give users effective feedback when the user submits a form. Users respond by clicking the submit button over and over. The problem compounds when users find out they’ve been charged 5 times or when you receive 5 contact submissions. The solution is to replace the submit button with a friendly message letting the user know the form is working.</p>
<p><a href="http://buildinternet.com/2009/06/how-to-make-a-threadless-style-t-shirt-gallery/">How to Make a Threadless Style T-Shirt Gallery</a><br />
Here’s the gist: There’s a thumbnail which is a full sized image in a container div, which is smaller than the full sized image. The image is centered within it, but doesn’t show entirely because overflow:hidden is turned on. When the mouse hovers over the thumbnail, overflow:hidden gets turned off, and the entire image is displayed.</p>
<p><a href="http://buildinternet.com/2009/06/how-to-make-a-threadless-style-t-shirt-gallery/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/tee.jpg" alt="How to Make a Threadless Style T-Shirt Gallery" width="480" height="300" /></a></p>
<p><a href="http://thisblog.usejquery.com/2009/03/18/create-a-unique-gallery-by-using-z-index-and-jquery/">Create a gallery by using z-index and jQuery</a><br />
In this tutorial you will learn to combine the CSS property ‘z-index’ and the power of jQuery to create a unique gallery which have a appearance of a pile of pictures. Also check out <a href="http://thisblog.usejquery.com/2009/03/25/enhancing-the-z-index-gallery-with-a-preloader/">Enhancing the z-index Gallery with a Preloader</a>.</p>
<p><a href="http://thisblog.usejquery.com/2009/03/18/create-a-unique-gallery-by-using-z-index-and-jquery/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/zindex.jpg" alt="Create a gallery by using z-index and jQuery" width="480" height="278" /></a></p>
<p><a href="http://blog.liviuholhos.com/javascript/add-a-favicon-near-external-links-with-jquery">Add a favicon near external links with jQuery</a><br />
External links should always be marked distinctly in order to make it easy for readers to see them easily. You cann add a CSS class to all outgoing links using the pseudo-class <code>a[href^=http]</code>. A more dynamic solution is using the favicon.ico of the external site, if it is available of course.</p>
<p><a href="http://jqueryfordesigners.com/fun-with-overflows/">Scrollable Timelines</a><br />
Making use of the overflow and scrollLeft DOM property to scroll elements is a much more effective use of the CPU, over animating using CSS top/left. This tutorial demonstrates the same effect used in two completely different ways.</p>
<p><a href="http://jqueryfordesigners.com/fun-with-overflows/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/timeline.gif" alt="Timeline" width="480" height="300" /></a></p>
<p><a href="http://www.jankoatwarpspeed.com/post/2009/08/20/Table-of-contents-using-jQuery.aspx">Automatically generate table of contents using jQuery</a><br />
“Some time ago, I was debating with my friends on the topic: is there any use of generating table of contents automatically. The conclusion was that it can be useful in cases when the reading material is long enough and table of contents (TOC) has a fixed position on the screen. This tutorial will show you how to create such TOC in just a few lines of code.”</p>
<p><a href="http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html">Reddit-style Voting With PHP, MySQL And jQuery</a><br />
If you are a regular at Reddit, you must have noticed the way people vote there. You can either vote up or vote down. This tutorial will show you how to create such a voting system with jQuery, PHP and MySQL.</p>
<p><a href="http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/reddit.gif" alt="Reddit votings" width="480" height="184" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=12&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/08/26/useful-new-jquery-techniques-and-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/moving.jpg" medium="image">
			<media:title type="html">Automatic Infinite Carousel</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/capt.jpg" medium="image">
			<media:title type="html">Sliding Boxes and Captions with jQuery</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/chart.gif" medium="image">
			<media:title type="html">Sliding Boxes and Captions with jQuery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/mega.gif" medium="image">
			<media:title type="html">Mega drop down menu with jQuery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/filt.gif" medium="image">
			<media:title type="html">Creating a Filterable Portfolio with jQuery</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/qp.gif" medium="image">
			<media:title type="html">A fancy Apple.com-style search suggestion</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/highl.gif" medium="image">
			<media:title type="html">Current Field Highlighting</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/poll.gif" medium="image">
			<media:title type="html">Creating a Dynamic Poll with jQuery and PHP</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/car.jpg" medium="image">
			<media:title type="html">Automatic Infinite Carousel</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/tim.jpg" medium="image">
			<media:title type="html">How to Make a Threadless Style T-Shirt Gallery</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/tee.jpg" medium="image">
			<media:title type="html">How to Make a Threadless Style T-Shirt Gallery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/zindex.jpg" medium="image">
			<media:title type="html">Create a gallery by using z-index and jQuery</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/timeline.gif" medium="image">
			<media:title type="html">Timeline</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/jquery-plugins-techniques/reddit.gif" medium="image">
			<media:title type="html">Reddit votings</media:title>
		</media:content>
	</item>
		<item>
		<title>Transparent Rounded Rollovers</title>
		<link>http://code4free.wordpress.com/2009/07/09/transparent-rounded-rollovers/</link>
		<comments>http://code4free.wordpress.com/2009/07/09/transparent-rounded-rollovers/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:05:50 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://code4free.wordpress.com/?p=5</guid>
		<description><![CDATA[This is an example of another archive layout, this time from Particletree, which uses transparent pngs as article title rollover backgrounds. Transparent Rollovers at ParticleTree How Is It Done? Each article title is placed inside of a h3-element that has an anchor (a) inside. The a tag has a transparent .png-background image that has its [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=5&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is an example of another archive layout, this time from <a href="http://particletree.com/2007/08/">Particletree</a>, which uses <strong>transparent pngs as article title rollover backgrounds.</strong></p>
<p><a href="http://particletree.com/2007/08/"><img src="http://media2.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/tree.gif" alt="Transparent Rollovers" width="450" height="330" /></a><br />
<em>Transparent Rollovers at ParticleTree</em></p>
<h4>How Is It Done?</h4>
<p>Each article title is placed inside of a <code>h3</code>-element that has an anchor (<code>a</code>) inside. The <code>a</code> tag has a transparent .png-background image that has its <code>background-position</code> shifted on hover as well as a background color.</p>
<p>The .png-image is positioned to the right hand side and sits above the tree image. The background color fills the space between the two, creating the illusion of 3D-dimension (the content block appear to be in front of the “tree”-image). Each link also uses CSS-based rounded corners (using -moz-border-radius).</p>
<p><strong>HTML</strong></p>
<pre>&lt;div&gt;
	&lt;h3&gt;
	The Importance of Design in Business
    &lt;cite&gt;&lt;b&gt;By Chris Campbell&lt;/b&gt; · Comments (&lt;strong&gt;15&lt;/strong&gt;) · August 14th&lt;/cite&gt;
	&lt;/h3&gt;
&lt;/div&gt;
	...code repeats...</pre>
<p><strong>CSS</strong></p>
<pre>#features .red a:hover {
	background-position: 498px -30px;
}
#features .red a:hover{
	background-image:url(/images/fadetree.png);
	background-repeat:no-repeat;
}
#features[id] h3 a {
	height:auto;
	min-height:66px;
}
#features h3 a {
	-moz-border-radius-bottomright:30px;
	-moz-border-radius-topleft:30px;
	font-size:210%;
	height:66px;
	padding:11px 15px 3px 105px;
}
.red a:hover, a.red:hover {
	background:#5E2510 none repeat scroll 0 0;
	color:#FFFFFF;
}
.red a, .red cite strong {
	color:#843418;
}
h3 a {
	display:block;
	text-decoration:none;
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=5&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/07/09/transparent-rounded-rollovers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/tree.gif" medium="image">
			<media:title type="html">Transparent Rollovers</media:title>
		</media:content>
	</item>
		<item>
		<title>cssjs-coding-solutions-for-web-developers</title>
		<link>http://code4free.wordpress.com/2009/07/09/cssjs-coding/</link>
		<comments>http://code4free.wordpress.com/2009/07/09/cssjs-coding/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 12:49:05 +0000</pubDate>
		<dc:creator>elangomms</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This is an example of another archive layout, this time from Particletree, which uses transparent pngs as article title rollover backgrounds. Transparent Rollovers at ParticleTree How Is It Done? Each article title is placed inside of a h3-element that has an anchor (a) inside. The a tag has a transparent .png-background image that has its [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=1&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is an example of another archive layout, this time from <a href="http://particletree.com/2007/08/">Particletree</a>, which uses <strong>transparent pngs as article title rollover backgrounds.</strong></p>
<p><a href="http://particletree.com/2007/08/"><img style="display:inline;" src="http://media2.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/tree.gif" alt="Transparent Rollovers" width="450" height="330" /></a><br />
<em>Transparent Rollovers at ParticleTree</em></p>
<h4>How Is It Done?</h4>
<p>Each article title is placed inside of a <code>h3</code>-element that has an anchor (<code>a</code>) inside. The <code>a</code> tag has a transparent .png-background image that has its <code>background-position</code> shifted on hover as well as a background color.</p>
<p>The .png-image is positioned to the right hand side and sits above the tree image. The background color fills the space between the two, creating the illusion of 3D-dimension (the content block appear to be in front of the &#8220;tree&#8221;-image). Each link also uses CSS-based rounded corners (using -moz-border-radius).</p>
<p><strong>HTML</strong></p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">view plain</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">print</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">?</a></div>
</div>
<ol>
<li><span><span>&lt;</span><span>div</span><span> </span><span>class</span><span>=</span><span>&#8220;red headline&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;</span><span>h3</span><span>&gt;</span><span> </span></span></li>
<li><span> The Importance of Design in Business </span></li>
<li><span> <span>&lt;</span><span>cite</span><span>&gt;</span><span>&lt;</span><span>b</span><span>&gt;</span><span>By Chris Campbell</span><span>&lt;/</span><span>b</span><span>&gt;</span><span> · Comments (</span><span>&lt;</span><span>strong</span><span>&gt;</span><span>15</span><span>&lt;/</span><span>strong</span><span>&gt;</span><span>) · August 14th</span><span>&lt;/</span><span>cite</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;/</span><span>h3</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;code repeats&#8230; </span></li>
</ol>
</div>
<pre style="display:none;">&lt;div&gt;
	&lt;h3&gt;
	The Importance of Design in Business
    &lt;cite&gt;&lt;b&gt;By Chris Campbell&lt;/b&gt; · Comments (&lt;strong&gt;15&lt;/strong&gt;) · August 14th&lt;/cite&gt;
	&lt;/h3&gt;
&lt;/div&gt;
	...code repeats...</pre>
<p><strong>CSS</strong></p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">view plain</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">print</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">?</a></div>
</div>
<ol>
<li><span><span>#featur</span><span>es .</span><span>red</span><span> a:hover { </span></span></li>
<li><span> <span>background-position</span><span>: </span><span>498px</span><span> </span><span>-30px</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span><span>#featur</span><span>es .</span><span>red</span><span> a:hover{ </span></span></li>
<li><span> <span>background-image</span><span>:</span><span>url</span><span>(/images/fadetree.png); </span></span></li>
<li><span> <span>background-repeat</span><span>:</span><span>no-repeat</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span><span>#featur</span><span>es[id] h</span><span>3</span><span> a { </span></span></li>
<li><span> <span>height</span><span>:</span><span>auto</span><span>; </span></span></li>
<li><span> <span>min-height</span><span>:</span><span>66px</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span><span>#featur</span><span>es h</span><span>3</span><span> a { </span></span></li>
<li><span> -moz-border-radius-bottomright:<span>30px</span><span>; </span></span></li>
<li><span> -moz-border-radius-topleft:<span>30px</span><span>; </span></span></li>
<li><span> <span>font-size</span><span>:</span><span>210%</span><span>; </span></span></li>
<li><span> <span>height</span><span>:</span><span>66px</span><span>; </span></span></li>
<li><span> <span>padding</span><span>:</span><span>11px</span><span> </span><span>15px</span><span> </span><span>3px</span><span> </span><span>105px</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span>.<span>red</span><span> a:hover, a.red:hover { </span></span></li>
<li><span> <span>background</span><span>:</span><span>#5E2510</span><span> </span><span>none</span><span> </span><span>repeat</span><span> </span><span>scroll</span><span> </span><span>0 0</span><span>; </span></span></li>
<li><span> <span>color</span><span>:</span><span>#FFFFFF</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span>.<span>red</span><span> a, .</span><span>red</span><span> cite strong { </span></span></li>
<li><span> <span>color</span><span>:</span><span>#843418</span><span>; </span></span></li>
<li><span>} </span></li>
<li><span>h<span>3</span><span> a { </span></span></li>
<li><span> <span>display</span><span>:</span><span>block</span><span>; </span></span></li>
<li><span> <span>text-decoration</span><span>:</span><span>none</span><span>; </span></span></li>
<li><span>} </span></li>
</ol>
</div>
<pre style="display:none;">#features .red a:hover {
	background-position: 498px -30px;
}
#features .red a:hover{
	background-image:url(/images/fadetree.png);
	background-repeat:no-repeat;
}
#features[id] h3 a {
	height:auto;
	min-height:66px;
}
#features h3 a {
	-moz-border-radius-bottomright:30px;
	-moz-border-radius-topleft:30px;
	font-size:210%;
	height:66px;
	padding:11px 15px 3px 105px;
}
.red a:hover, a.red:hover {
	background:#5E2510 none repeat scroll 0 0;
	color:#FFFFFF;
}
.red a, .red cite strong {
	color:#843418;
}
h3 a {
	display:block;
	text-decoration:none;
}</pre>
<h3>9. Blending Flash and CSS</h3>
<p><a href="http://www.hunter-boot.com/">HunterBoot.com</a> has wonderfully constructed black and white imagery on their homepage panel. This imagery is a part of a Flash movie that contains not only the imagery, but also nice hover-effects for the link lists at the bottom of the layout. See the screenshot below for a better understanding of what is going on structurally. When you mouse over one of the links in the four columns below the main image panel, you get a nice animated rollover in the background of that column.</p>
<p><a href="http://www.hunter-boot.com/"><img style="display:inline;" src="http://media1.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/hunter2.jpg" alt="Transparent Rollovers" width="450" height="300" /></a></p>
<h4>How Is It Done?</h4>
<p>At first glance it appears that this is some type of jQuery plugin or something similar. However this is a pure CSS-based solution that uses Flash-elements for hover-effects. This technique starts out with some markup. There is a main div that contains the Flash movie (inside a containing div), then four distinct divs, one for each of the sections.</p>
<p>These four divs have a heading and then an unordered list containing the individual links. The main containing div is positioned relatively to its parent. These four URLs are positioned absolutely inside of the relative main container div – this puts the URLs on the top of the Flash movie. When you move your mouse over the four implied columns, this triggers a rollover animation in the Flash movie, because your mouse is actually <em>over</em> the Flash movie. Since the links sit above the Flash you can still click on them with no unfcomfortable side effects.</p>
<p><strong>HTML</strong></p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">view plain</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">print</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">?</a></div>
</div>
<ol>
<li><span><span>&lt;!&#8211; the flash container &#8211;&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>div</span><span> </span><span>id</span><span>=</span><span>&#8220;featurePanelHomeFlashBoxCntr&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;the flash movie is inserted here via SWFObject&#8230; </span></li>
<li><span> &#8230;it&#8217;s important to note that the .swf&#8217;s wmode is set to transparent&#8230; </span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
<li><span> </span></li>
<li><span>&lt;!&#8211; the product category links &#8211; <span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>div</span><span> </span><span>class</span><span>=</span><span>&#8220;homeFlashListFun&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;</span><span>li</span><span>&gt;</span><span>&lt;</span><span>a</span><span> </span><span>href</span><span>=</span><span>&#8220;/product/link/goes/here&#8221;</span><span> </span><span>&gt;</span><span>Link Text</span><span>&lt;/</span><span>a</span><span>&gt;</span><span>&lt;/</span><span>li</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;repeat li&#8217;s for each link </span></li>
<li><span><span>&lt;/</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>div</span><span> </span><span>class</span><span>=</span><span>&#8220;homeFlashListSport&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;</span><span>li</span><span>&gt;</span><span>&lt;</span><span>a</span><span> </span><span>href</span><span>=</span><span>&#8220;/product/link/goes/here&#8221;</span><span> </span><span>&gt;</span><span>Link Text</span><span>&lt;/</span><span>a</span><span>&gt;</span><span>&lt;/</span><span>li</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;repeat li&#8217;s for each link </span></li>
<li><span><span>&lt;/</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>div</span><span> </span><span>class</span><span>=</span><span>&#8220;homeFlashListWork&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;</span><span>li</span><span>&gt;</span><span>&lt;</span><span>a</span><span> </span><span>href</span><span>=</span><span>&#8220;/product/link/goes/here&#8221;</span><span> </span><span>&gt;</span><span>Link Text</span><span>&lt;/</span><span>a</span><span>&gt;</span><span>&lt;/</span><span>li</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;repeat li&#8217;s for each link </span></li>
<li><span><span>&lt;/</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>div</span><span> </span><span>class</span><span>=</span><span>&#8220;homeFlashListKids&#8221;</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span> <span>&lt;</span><span>li</span><span>&gt;</span><span>&lt;</span><span>a</span><span> </span><span>href</span><span>=</span><span>&#8220;/product/link/goes/here&#8221;</span><span> </span><span>&gt;</span><span>Link Text</span><span>&lt;/</span><span>a</span><span>&gt;</span><span>&lt;/</span><span>li</span><span>&gt;</span><span> </span></span></li>
<li><span> &#8230;repeat li&#8217;s for each link </span></li>
<li><span><span>&lt;/</span><span>ul</span><span>&gt;</span><span> </span></span></li>
<li><span><span>&lt;/</span><span>div</span><span>&gt;</span><span> </span></span></li>
</ol>
</div>
<pre style="display:none;">	&lt;!-- the flash container --&gt;
	&lt;div id="featurePanelHomeFlashBoxCntr"&gt;
	   ...the flash movie is inserted here via SWFObject...
	   ...it's important to note that the .swf's wmode is set to transparent...
	&lt;/div&gt;

	&lt;!-- the product category links -- &gt;
	&lt;div&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="/product/link/goes/here" &gt;Link Text&lt;/a&gt;&lt;/li&gt;
		...repeat li's for each link
	&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="/product/link/goes/here" &gt;Link Text&lt;/a&gt;&lt;/li&gt;
		...repeat li's for each link
	&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="/product/link/goes/here" &gt;Link Text&lt;/a&gt;&lt;/li&gt;
		...repeat li's for each link
	&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="/product/link/goes/here" &gt;Link Text&lt;/a&gt;&lt;/li&gt;
		...repeat li's for each link
	&lt;/ul&gt;
	&lt;/div&gt;</pre>
<p><strong>CSS</strong></p>
<div>
<div>
<div><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">view plain</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">copy to clipboard</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">print</a><a href="http://www.smashingmagazine.com/2009/07/06/10-useful-cssjs-coding-solutions-for-web-developers/#">?</a></div>
</div>
<ol>
<li><span><span>.featurePanelHomeFlashBox { </span><span>margin</span><span>: </span><span>0px</span><span>; </span><span>padding</span><span>: </span><span>0px</span><span>; </span><span>float</span><span>: </span><span>left</span><span>; </span><span>height</span><span>: </span><span>528px</span><span>; </span><span>width</span><span>: </span><span>720px</span><span>; </span><span>position</span><span>: </span><span>relative</span><span>; } </span></span></li>
<li><span><span>#featur</span><span>ePanelHomeFlashBoxCntr { </span><span>width</span><span>: </span><span>720px</span><span>; </span><span>height</span><span>: </span><span>528px</span><span>; </span><span>position</span><span>: </span><span>absolute</span><span>; top: </span><span>0px</span><span>; left: </span><span>0px</span><span>; </span><span>background</span><span>: </span><span>#ffffff</span><span>; </span><span>z-index</span><span>: </span><span>300</span><span>; } </span></span></li>
<li><span> </span></li>
<li><span>&#8212;This chunk of CSS is repeated for each of the lists, with the difference being the positioning of the ul&#8212; </span></li>
<li><span>.homeFlashListFun ul { <span>position</span><span>: </span><span>absolute</span><span>; top: </span><span>380px</span><span>; left: </span><span>15px</span><span>; </span><span>z-index</span><span>: </span><span>599</span><span>; </span><span>width</span><span>: </span><span>100px</span><span>; </span><span>background</span><span>: </span><span>transparent</span><span>; </span><span>list-style</span><span>: </span><span>none</span><span>; </span><span>list-style-image</span><span>: </span><span>none</span><span>; </span><span>list-style-type</span><span>: </span><span>none</span><span>; </span><span>margin</span><span>: </span><span>0px</span><span>; </span><span>padding</span><span>: </span><span>10px</span><span> </span><span>0px</span><span> </span><span>0px</span><span> </span><span>0px</span><span>; } </span></span></li>
<li><span>.homeFlashListFun ul li { <span>margin</span><span>: </span><span>0px</span><span>; </span><span>padding</span><span>: </span><span>0px</span><span> </span><span>0px</span><span> </span><span>6px</span><span> </span><span>0px</span><span>; </span><span>background</span><span>: </span><span>transparent</span><span>; </span><span>text-decoration</span><span>: </span><span>none</span><span>; </span><span>line-height</span><span>: </span><span>1em</span><span>; } </span></span></li>
<li><span>.homeFlashListFun ul li a { <span>text-decoration</span><span>: </span><span>none</span><span>; </span><span>color</span><span>: </span><span>#999</span><span>; </span><span>font-size</span><span>: </span><span>0.95em</span><span>; </span><span>letter-spacing</span><span>: </span><span>-0.00em</span><span>; </span><span>background</span><span>: </span><span>transparent</span><span>; } </span></span></li>
<li><span>.homeFlashListFun ul li a:hover { <span>text-decoration</span><span>: </span><span>underline</span><span>; </span><span>color</span><span>: </span><span>#bf0000</span><span>; }<br />
</span></span></li>
</ol>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/code4free.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/code4free.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/code4free.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=code4free.wordpress.com&amp;blog=8503208&amp;post=1&amp;subd=code4free&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://code4free.wordpress.com/2009/07/09/cssjs-coding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ea4b752e0faec1aef2bd193b49be5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">elangomms</media:title>
		</media:content>

		<media:content url="http://media2.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/tree.gif" medium="image">
			<media:title type="html">Transparent Rollovers</media:title>
		</media:content>

		<media:content url="http://media1.smashingmagazine.com/wp-content/uploads/images/css-code-snippets/hunter2.jpg" medium="image">
			<media:title type="html">Transparent Rollovers</media:title>
		</media:content>
	</item>
	</channel>
</rss>
