<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vivian Crap</title>
	<atom:link href="http://www.lingihuang.com/viviancrap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lingihuang.com/viviancrap</link>
	<description>trust no one</description>
	<lastBuildDate>Sun, 11 Apr 2010 15:16:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Christmas, Bon Appetit</title>
		<link>http://www.lingihuang.com/viviancrap/archives/christmas-bon-appetit/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/christmas-bon-appetit/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 15:15:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[French Cuisine]]></category>
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=335</guid>
		<description><![CDATA[




Seafood Pumpkin Bisque






Ingredients

12 &#8211; 15 pieces of shrimp shells
1 onion
1 tablespoon of butter
170 grams of sherry
170 grams of sherry
1 thyme
1 cup of cream
3 pumpkins
1 and half cups of chicken/seafood stock
12 &#8211; 15 pieces of shrimp meat
6 scallops
18 clams
6 pieces of crab legs with shell
1 and half tablespoon of olive oil
Some ginger
Some clove
Some nutmeg
Some cinnamon
1 tablespoon [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Seafood Pumpkin Bisque</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clear-float">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>12 &#8211; 15 pieces of shrimp shells</li>
<li>1 onion</li>
<li>1 tablespoon of butter</li>
<li>170 grams of sherry</li>
<li>170 grams of sherry</li>
<li>1 thyme</li>
<li>1 cup of cream</li>
<li>3 pumpkins</li>
<li>1 and half cups of chicken/seafood stock</li>
<li>12 &#8211; 15 pieces of shrimp meat</li>
<li>6 scallops</li>
<li>18 clams</li>
<li>6 pieces of crab legs with shell</li>
<li>1 and half tablespoon of olive oil</li>
<li>Some ginger</li>
<li>Some clove</li>
<li>Some nutmeg</li>
<li>Some cinnamon</li>
<li>1 tablespoon of chives</li>
<li>Some salt</li>
<li>Some pepper</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clear-float">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-01.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-02.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-03.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-04.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-05.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-06.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-07.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-08.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-09.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-10.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-11.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/seafood-pumpkin-bisque-1-12.jpg" alt="Seafood Pumpkin Bisque" title="Seafood Pumpkin Bisque" width="160" height="120" /></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Creamed Spinach</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clearfix">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>1 kilogram of spinach</li>
<li>100 grams of butter</li>
<li>200 milliliters of cream</li>
<li>100 grams of parmesan cheese</li>
<li>2 garlics</li>
<li>Some salt</li>
<li>Some pepper</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clear-float">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-01.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-02.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-03.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-04.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-05.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/creamed-spinach-2-06.jpg" alt="Creamed Spinach" title="Creamed Spinach" width="160" height="120" /></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Roast Chicken with Rosemary Potatoes</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clearfix">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>1 chicken</li>
<li>200 grams of butter</li>
<li>100 milliliters of olive oil</li>
<li>4 garlics</li>
<li>1 lemon</li>
<li>Some salt</li>
<li>Some pepper</li>
<li>Some thyme</li>
<li>Rosemary</li>
<li>2 kilograms of potatoes</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clearfix">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-01.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-02.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-03.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-04.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-05.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2010/04/recipes/roast-chicken-with-rosemary-potatoes-3-06.jpg" alt="Roast Chicken with Rosemary Potatoes" title="Roast Chicken with Rosemary Potatoes" width="160" height="120" /></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/christmas-bon-appetit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Liquid Round Corners</title>
		<link>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 08:45:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=327</guid>
		<description><![CDATA[




Liquid PNG 8 Round Corners




HTML

          			&#60;div id="wrapperDiv" class="wrapper"&#62;
          				&#60;div class="top-left"&#62;&#60;/div&#62;
          				&#60;div class="top-right"&#62;&#60;/div&#62;
          				&#60;div class="top-center"&#62;&#60;div class="hack-ie6"&#62;&#60;/div&#62;&#60;/div&#62;
     [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Liquid PNG 8 Round Corners</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">HTML</h4>
<pre>
          			<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapperDiv"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyCenterDiv"</span> <span class="class">class</span>=<span class="string">"body-center"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"contents"</span><span class="element">&gt;</span><span class="comment">contents right here</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          			<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet</h4>
<pre>
          			<code class="text-indent-0"><span class="class">.wrapper</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">500px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">10px auto</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left, .wrapper .top-center, .wrapper .top-right,</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left, .wrapper .bottom-center, .wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/png8.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">left top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">-15px top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">right top</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">496px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-color</span>: <span class="value">#fff</span>;</code>
          				<code class="text-indent-1"><span class="attribute">border-left</span>: <span class="value">2px solid #333</span>;</code>
          				<code class="text-indent-1"><span class="attribute">border-right</span>: <span class="value">2px solid #333</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">left -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">-15px -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">15px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">31px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background-position</span>: <span class="value">right -46px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/liquid_round_corners/png8.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Liquid PNG 24 Round Corners with Outer Shadows</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">HTML</h4>
<pre>
          			<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapperDiv"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"top-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"body-left"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"body-right"</span><span class="element">&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyLeftDiv"</span> <span class="class">class</span>=<span class="string">"body-left-hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyRightDiv"</span> <span class="class">class</span>=<span class="string">"body-right-hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bodyCenterDiv"</span> <span class="class">class</span>=<span class="string">"body-center"</span><span class="element">&gt;</span></code>
          							<code class="text-indent-4"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"contents"</span><span class="element">&gt;</span><span class="comment">contents right here</span><span class="element">&lt;/div&gt;</span></code>
          						<code class="text-indent-3"><span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-2"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-left"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-right"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-1"><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"bottom-center"</span><span class="element">&gt;</span><span class="element">&lt;div</span> <span class="class">class</span>=<span class="string">"hack-ie6"</span><span class="element">&gt;</span><span class="element">&lt;/div&gt;</span><span class="element">&lt;/div&gt;</span></code>
          			<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet</h4>
<pre>
          			<code class="text-indent-0"><span class="class">.wrapper</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">500px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">10px auto</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-left-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-center-png24.png) left top scroll repeat-x</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/top-right-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/body-left-png24.png) left top scroll repeat-y</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background-color</span>: <span class="value">#e9f2f5</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 40px</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .body-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/body-right-png24.png) 100% top scroll repeat-y</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-left-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">left</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-center-png24.png) left top scroll repeat-x</span>;</code>
          				<code class="text-indent-1"><span class="attribute">_float</span>: <span class="value">left</span>;</code>
          				<code class="text-indent-1"><span class="attribute">overflow</span>: <span class="value">hidden</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">.wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">transparent url(../images/bottom-right-png24.png) left top scroll no-repeat</span>;</code>
          				<code class="text-indent-1"><span class="attribute">float</span>: <span class="value">right</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<h4 class="subtitle align-subtitle">Stylesheet For IE 6</h4>
<pre>
          			<code class="text-indent-0"><span class="class">*html .wrapper .hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">100%</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-left-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-center-png24.png', sizingMethod='scale');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .top-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/top-right-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-left, *html .wrapper .body-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">expression(document.getElementById('wrapperDiv').offsetWidth - document.getElementById('bodyLeftDiv').offsetWidth - document.getElementById('bodyRightDiv').offsetWidth + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 40px</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-left-hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">expression(document.getElementById('bodyCenterDiv').offsetHeight + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/body-left-png24.png', sizingMethod='scale')</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 -40px 0 0</span></code>
          				<code class="text-indent-1"><span class="attribute">float</span>:<span class="value">left</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .body-right-hack-ie6</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">width</span>: <span class="value">40px</span>;</code>
          				<code class="text-indent-1"><span class="attribute">height</span>: <span class="value">expression(document.getElementById('bodyCenterDiv').offsetHeight + "px")</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/body-right-png24.png', sizingMethod='scale')</span>;</code>
          				<code class="text-indent-1"><span class="attribute">margin</span>: <span class="value">0 0 0 -40px</span></code>
          				<code class="text-indent-1"><span class="attribute">float</span>:<span class="value">right</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-left</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-left-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-center</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-center-png24.png', sizingMethod='scale');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="class">*html .wrapper .bottom-right</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="attribute">background</span>: <span class="value">none</span>;</code>
          				<code class="text-indent-1"><span class="attribute">filter</span>:<span class="value">progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bottom-right-png24.png', sizingMethod='image');</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/liquid_round_corners/png24.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://home.tiscali.nl/developerscorner/liquidcorners/liquidcorners.htm" target="_blank">Liquid Round Corners</a></li>
<li><a href="http://www.positioniseverything.net/articles/dropshadows.html" target="_blank">PNG Drop Shadows</a></li>
<li><a href="http://www.positioniseverything.net/articles/dropshadows2.html" target="_blank">Four Sided PNG Drop Shadows</a></li>
<li><a href="http://www.webmonkey.com/tutorial/Get_Started_with_CSS_3" target="_blank">Get Started With CSS 3</a></li>
<li><a href="http://www.alistapart.com/articles/mountaintop" target="_blank">Mountaintop Corners</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/liquid-round-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Luncheon with Monet</title>
		<link>http://www.lingihuang.com/viviancrap/archives/luncheon-with-monet/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/luncheon-with-monet/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 02:29:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[French Cuisine]]></category>
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=324</guid>
		<description><![CDATA[




Soupe à Loignon Gratinée






Ingredients

6 onions
Extra virgin olive oil
2 Garlics
8 cups of chicken stock
A half cup of white wine
Some bay leaves
Some thymes
Salt
Pepper
8 pieces of french bread
1 and half cups of Gruyere cheese/Parmesa cheese





Preparation















Salade Niçoise






Ingredients

2 red-skinned potatoes
16 green beans
4 cups of butter lettuce leaves
420 grams of canned tuna
2 tomatoes
1/4 red onion
4 anchovies
3 eggs
16 black olives
3 tablespoons extra [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Soupe à Loignon Gratinée</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clear-float">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>6 onions</li>
<li>Extra virgin olive oil</li>
<li>2 Garlics</li>
<li>8 cups of chicken stock</li>
<li>A half cup of white wine</li>
<li>Some bay leaves</li>
<li>Some thymes</li>
<li>Salt</li>
<li>Pepper</li>
<li>8 pieces of french bread</li>
<li>1 and half cups of Gruyere cheese/Parmesa cheese</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clear-float">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-01.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-02.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-03.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-04.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-05.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-06.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-07.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-08.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/soupe-a-loignon-gratinee-1-09.jpg" alt="Soupe à Loignon Gratinée" title="Soupe à Loignon Gratinée" width="160" height="120" /></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Salade Niçoise</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clearfix">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>2 red-skinned potatoes</li>
<li>16 green beans</li>
<li>4 cups of butter lettuce leaves</li>
<li>420 grams of canned tuna</li>
<li>2 tomatoes</li>
<li>1/4 red onion</li>
<li>4 anchovies</li>
<li>3 eggs</li>
<li>16 black olives</li>
<li>3 tablespoons extra olive oil</li>
<li>3 tablespoons red/white wine vinegar</li>
<li>1 garlic</li>
<li>Some Dijon mustard</li>
<li>Some salt</li>
<li>Some pepper</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clear-float">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-01.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-02.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-03.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-04.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-05.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/salade-nicoise-2-06.jpg" alt="Salade Niçoise" title="Salade Niçoise" width="160" height="120" /></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Rataouille</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clearfix">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>2 tablespoons olive oil</li>
<li>2 garlics</li>
<li>1 onion</li>
<li>2 eggplants</li>
<li>2 red bell peppers</li>
<li>4 canned tomatoes</li>
<li>3 to 4 zucchinis</li>
<li>1 tablespoon basil</li>
<li>A half tablespoon of oregano</li>
<li>1/4 tablespoon of thyme</li>
<li>2 tablespoons of parsley</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3.jpg" alt="Rataouille" title="Rataouille" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clearfix">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-01.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-02.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-03.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-04.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-05.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/ratatouille-3-06.jpg" alt="Rataouille" title="Rataouille" width="160" height="120" /></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Pissaladière</div>
</p></div>
</p></div>
</p></div>
</p></div>
<div class="entry-container clearfix">
<div class="left-col">
<h4 class="subtitle">Ingredients</h4>
<ul class="entry-list">
<li>60 milliliters oilive oil</li>
<li>500 grams/around 4 onions</li>
<li>2 garlics</li>
<li>1 tablespoon thyme</li>
<li>2 ripe tomatoes</li>
<li>1 tablespoon sugar</li>
<li>12 anchovies</li>
<li>16 black olives</li>
<li>Some salt</li>
<li>Some pepper</li>
</ul>
<h4 class="subtitle">Dough</h4>
<ul class="entry-list">
<li>30 grams plain flour</li>
<li>120 grams cold butter</li>
<li>28 grams dried yeast</li>
<li>2 eggs</li>
</ul></div>
<div class="right-col">
<p class="thumbnail-container"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4.jpg" alt="Pissaladière" title="Pissaladière" width="220" height="165" /></p>
</p></div>
</p></div>
<h4 class="subtitle">Preparation</h4>
<ul class="thumbnails thumbnails-border clearfix">
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-01.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-02.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-03.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-04.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-05.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-06.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-07.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-08.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-09.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-10.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-11.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
<li class="thumbnail-width-1"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/10/recipes/pissaladiere-4-12.jpg" alt="Pissaladière" title="Pissaladière" width="160" height="120" /></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/luncheon-with-monet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stack Order</title>
		<link>http://www.lingihuang.com/viviancrap/archives/stack-order/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/stack-order/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=310</guid>
		<description><![CDATA[




What is z-index?




The z-index property determines the stack level of an HTML element. The stack level refers to the element&#8217;s position on the Z axis (as opposed to the X axis or Y axis). A higher z-index value means the element will be closer to the top of the stacking order. This stacking order runs [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">What is z-index?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>The <span class="highlighted">z-index</span> property determines <span class="highlighted">the stack level of an HTML element</span>. The stack level refers to the element&#8217;s position on the <span class="highlighted">Z axis</span> (as opposed to the X axis or Y axis). A higher z-index value means the element will be closer to the top of the stacking order. This stacking order runs perpendicular ot the display, or viewport.</p>
<p>          		<img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/graphical-z-index.gif" alt="Graphical Z Index" title="Graphical Z Index" width="450" height="399" class="alignnone size-full wp-image-311" /></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">The Natural Stacking Order</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>In an HTML page, the natural <span class="highlighted">stacking order</span> (i.e. the order of elements on the Z axis) is determined by <span class="highlighted">a number of factors</span>. Below is a list showing the order that iterms fit into <span class="highlighted">a stacking context</span>, starting with the bottom of the stack. This list assumes none of the items has z-index applied:</p>
<ul class="entry-list">
<li>Background and borders of the element that establish stacking context.</li>
<li>Elements with negative stacking contexts, in order of appearance.</li>
<li>Non-positioned, non-floated, block-level elements, in order of appearance.</li>
<li>Non-positioned, floated elements, in order of appearances.</li>
<li>Inline elements, in order of appearance.</li>
<li>Positioned elements, in order of appearance.</li>
</ul>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:250%;background-color:#facdc5;border:1px solid #bf250a;margin:0;">Red Box</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:250%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-120px 0 0 50px;">Green Box</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:250%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-120px 0 0 100px;">Blue Box</div>
<p><span class="highlighted">The elements above do not have z-index values set</span>; their stacking order is the natural, or default, order. The overlaps that occur are due to the negative margins.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Why Does It Cause Confusion?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>Although z-index is not a difficult proerpty to understand, due to false assumptions it can cause confusion for beginning developers. This confusion occurs because <span class="highlighted">z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative</span>.</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:1000;">z-index:1000;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-120px 0 0 50px;z-index:500;">z-index:500;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-120px 0 0 100px;z-index:1;">z-index:1;</div>
<p>&nbsp;</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:1000;position:absolute;">z-index:1000;<br />position:absolute;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-50px 0 0 70px;z-index:1;position:relative;">
<p>z-index:1;<br />position:relative;</div>
<p>&nbsp;</p>
<p>The z-index property can affect the stack order of both block-level and inline elements, and is declared by <span class="highlighted">a positive or negative integer value</span>, or a vluae of <span class="highlighted">auto</span>. <span class="highlighted">A value of auto gives the element the same stack order as its parent.</span></p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:1000;position:absolute;">z-index:1000;<br />position:absolute;</p>
<div style="width:100px;height:100px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:0 0 0 -20px;z-index:auto;position:relative;">z-index:auto;<br />position:relative;</div>
</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div style="width:150px;height:150px;font-size:12px;color:#bf250a;text-align:center;line-height:200%;background-color:#facdc5;border:1px solid #bf250a;margin:0;z-index:500;position:relative;">z-index:500;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#4cbf0a;text-align:center;line-height:200%;background-color:#d7fac3;border:1px solid #4cbf0a;margin:-110px 0 0 130px;z-index:0;position:relative;">z-index:0;<br />position:relative;</div>
<div style="width:150px;height:150px;font-size:12px;color:#1e7bcc;text-align:center;line-height:200%;background-color:#c3e0fa;border:1px solid #1e7bcc;margin:-100px 0 0 70px;z-index:100;">
<p>z-index:100;</div>
<p>&nbsp;</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/" target="_blank">The Z-Index CSS Property: A Comprehensive Look</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/stack-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breadcrumb Showcase</title>
		<link>http://www.lingihuang.com/viviancrap/archives/breadcrumb-showcase/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/breadcrumb-showcase/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:26:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=285</guid>
		<description><![CDATA[




What&#8217;s a breadcrumb?




A “breadcrumb” (or “breadcrumb trail”) is a type of secondary navigation scheme that reveals the user’s location in a website or Web application. The term comes from the Hansel and Gretel fairy tale in which the two title children drop breadcrumbs to form a trail back to their home. Just like in the [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">What&#8217;s a breadcrumb?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>A “breadcrumb” (or “breadcrumb trail”) is a type of <span class="highlighted">secondary navigation scheme</span> that reveals the user’s location in a website or Web application. The term comes from the Hansel and Gretel fairy tale in which the two title children drop breadcrumbs to form a trail back to their home. Just like in the tale, breadcrumbs in real-world applications offer users a way to trace the path back to their original landing point.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://delicious.com/SixRevisions/webdesign+design" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/interactive-delicious.jpg" width="243" height="99" title="SixRevision's Web Design and Design Bookmarks on Delicious" alt="SixRevision's Web Design and Design Bookmarks on Delicious" /></a></p>
<p>You can usually find breadcrumbs in websites that have a large amount of content organized in a hierarchical manner. You also see them in Web applications that have more than one step, where they function similar to a progress bar. In their simplest form, breadcrumbs are horizontally arranged text links separated by the “greater than” symbol (>); the symbol indicates the level of that page relative to the page links beside it.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">When Should You Use Breadcrumbs?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><span class="highlighted">Use breadcrumb navigation for large websites and websites that have hierarchically arranged pages.</span> An excellent scenario is <span class="highlighted">e-commerce websites</span>, in which a large variety of products is grouped into logical categories.</p>
<p>You shouldn’t use breadcrumbs for single-level websites that have no logical hierarchy or grouping. A great way to determine if a website would benefit from breadcrumb navigation is to construct <span class="highlighted">a site map</span> or <span class="highlighted">a diagram</span> representing the website’s navigation architecture, and then analyze whether breadcrumbs would improve the user’s ability to navigate within and between categories.</p>
<p>Breadcrumb navigation should be regarded as an extra feature and shouldn’t replace effective primary navigation menus. It’s a convenience feature; a secondary navigation scheme that allows users to establish where they are; and an alternative way to navigate around your website.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Types of Breadcrumbs</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Location-based</li>
<p><span class="highlighted">Location-based breadcrumbs</span> show the user where they are in the website’s hierarchy. They are typically used for navigation schemes that have multiple levels (usually more than two levels). In the example below (from <a href="http://www.sitepoint.com/article/introducing-joomla/" target="_blank">SitePoint</a>), each text link is for a page that is one level higher than the one on its right.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.sitepoint.com/article/introducing-joomla/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/location-based-breadcrumb-example-sitepoint.jpg" width="450" height="161" title="SitePoint" alt="SitePoint" /></a></p>
<li>Attribute-based</li>
<p><span class="highlighted">Attribute-based breadcrumb trails</span> display the attributes of a particular page. For example, in <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811112143" target="_blank">Newegg</a>, breadcrumb trails show the attributes of the items displayed on a particular page:</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811112143" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/newegg-attribute-based-navigation.jpg" width="450" height="98" title="Newegg" alt="Newegg" /></a></p>
<p>This page displays all computer cases that have the attributes of being manufactured by Lian Li and having a MicroATX Mini Tower form factor.</p>
<li>Path-based</li>
<p><span class="highlighted">Path-based breadcrumb trails</span> show users the steps they’ve taken to arrive at a particular page. Path-based breadcrumbs are dynamic in that they display the pages the user has visited before arriving on the current page.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="https://www.statementstacker.com/register/step2" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/sequential-statementtracker.jpg" width="450" height="184" title="Statement Tracker" alt="Statement Tracker" /></a></p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Benefits of Using Breadcrumbs</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Convenient for users</li>
<p>Breadcrumbs are used primarily to give users a secondary means of navigating a website. By offering a breadcrumb trail for all pages on a large multi-level website, users can navigate to higher-level categories more easily.</p>
<li>Reduces clicks or actions to return to higher-level pages</li>
<p>Instead of using the browser’s “Back” button or the website’s primary navigation to return to a higher-level page, users can now use the breadcrumbs with a fewer number of clicks.</p>
<li>Doesn’t usually hog screen space</li>
<p>Because they’re typically horizontally oriented and plainly styled, breadcrumb trails don’t take up a lot of space on the page. The benefit is that they have little to no negative impact in terms of content overload, and they outweigh any negatives if used properly.</p>
<li>Reduces bounce rates</li>
<p>Breadcrumb trails can be a great way to entice first-time visitors to peruse a website after having viewed the landing page. For example, say a user arrives on a page through a Google search, seeing a breadcrumb trail may tempt that user to click to higher-level pages to view related topics of interests. This, in turn, reduces the overall website bounce rate.</p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Mistakes in Breadcrumb Trail Implementation</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Using breadcrumbs when you don’t need to</li>
<p>In the below example, <a href="http://www.slicethepie.com/Music/Default.aspx" target="_blank">Slicethepie</a> risks overwhelming users with too many navigation options. The (1) <span class="highlighted">primary navigation</span>, (2) <span class="highlighted">breadcrumb trail</span> and (3) <span class="highlighted">secondary navigation</span> are very close together. The breadcrumb trail in this application offers users no added convenience because the secondary navigation for lower-level pages sits right below it. Additionally, clicking on the second-level link in the breadcrumb trail (”Music”) takes you back to the first tab (”Listen”), which mistakenly suggests that the first tab is on a higher level than the other two (”Search” and “Artist hall of fame”).</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.slicethepie.com/Music/Default.aspx" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/simple-pie-mistake.jpg" width="450" height="180" title="Slicethepie" alt="Slicethepie" /></a></p>
<li>Using breadcrumb trails as primary navigation</li>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.mefeedia.com/entry/fri-feb-27-2009/14804198" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/mefeedia.jpg" width="450" height="116" title="mefeedia" alt="mefeedia" /></a></p>
<p>In the above example, <a href="http://www.mefeedia.com/entry/fri-feb-27-2009/14804198" target="_blank">mefeedia</a> does not offer a primary navigation menu for viewing videos. Though there is text link navigation in the footer section, there’s no navigation menu in the body of the pages, making it hard to navigate to other sections of the website.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.mefeedia.com/entry/fri-feb-27-2009/14804198" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/mefeedia-2-primary-nav.jpg" width="450" height="343" title="mefeedia" alt="mefeedia" /></a></p>
<p>If you arrive on a video page directly — say, for example, through a Google search result — the only navigation option you may have is the breadcrumb trail. Or if you’ve already been browsing a website’s pages and reach a page that does not display the primary navigation menu, you will have to hit the “Back” button in your browser to access the main menu.</p>
<li>Using breadcrumbs when pages have multiple categories</li>
<p>Breadcrumb trails have a linear structure, so using them will be difficult if your pages can’t be classified into neat categories. Deciding whether to use breadcrumbs largely depends on how you’ve designed your website hierarchy. When a lower-level page is (or can be put) in more than one parent category, breadcrumb trails are ineffective, inaccurate and confusing to the user.</p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Breadcrumb Navigation Design Considerations</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>What should be used to separate link items?</li>
<p>The commonly accepted and most recognizable symbol for separating hyperlinks in breadcrumb trails is <span class="highlighted">the “greater than” symbol (></span>)</span>. Typically, the > sign is used to denote hierarchy, as in the format of Parent category > Child category.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.google.com/support/websearch/bin/answer.py?hl=en&#038;answer=134479" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/greater-than-symbol-google.jpg" width="433" height="136" title="Google" alt="Google" /></a></p>
<p>Other symbols used are arrows pointing to the right, <span class="highlighted">right angle quotation marks (»)</span> and <span class="highlighted">slashes (/)</span>.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.uxmatters.com/topics/ajax-rias-web-20-apps/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/forward-slashes-uxmatters.jpg" width="438" height="100" title="UXmatters :: Ajax / RIAs / Web 2.0 Apps" alt="UXmatters :: Ajax / RIAs / Web 2.0 Apps" /></a></p>
<p>The choice depends on the aesthetics of the website and the type of breadcrumb used. For example, for path-based breadcrumbs in which the links do not necessarily have a hierarchical relationship to each other, using a “greater than” symbol may not convey their relationship accurately.</p>
<li>How big should it be?</li>
<p>You don’t want your breadcrumbs to dominate the page. A breadcrumb trail functions merely as an aid to users (a convenience); its size should convey this to users and thus should at least be smaller, or less prominent, than the primary navigation menu. A good rule of thumb to follow when sizing your breadcrumb trail is that it shouldn’t be the first item that grabs the user’s attention when arriving on a page.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.campaignmonitor.com/features/make-and-send-great-looking-emails/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/size-of-breadcrumb-campaign-monitor.jpg" width="450" height="287" title="Campaign Monitor" alt="Campaign Monitor" /></a></p>
<li>Where should breadcrumbs be located?</li>
<p>Breadcrumb trails are usually displayed <span class="highlighted">in the top half of the page</span>, below the primary navigation menu if a horizontal menu layout is used.</p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Classic Text-Based Breadcrumbs</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.typepad.com/go/design-assistant/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/typical-breadcrumb-typepad.jpg" width="450" height="71" title="TypePad Design Assistant" alt="TypePad Design Assistant" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.nasa.gov/news/budget/index.html" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/greater-than-symbol-nasa.jpg" width="280" height="132" title="NASA" alt="NASA" /></a></p>
<p><a href="http://www.nestle.com/CSV/CSVHome.htm" target="_blank">Nestle</a> uses a breadcrumb trail whose text is significantly smaller than the text on the rest of the page, effectively making it unobtrusive.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.nestle.com/CSV/CSVHome.htm" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/greater-than-symbol-nestle.jpg" width="450" height="427" title="CSV" alt="CSV" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.marchanddetrucs.com/magasin-de-magie/thematiques/close-up/autres/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/typical-breadcrumb-marchand.jpg" width="450" height="135" title="Merchand de Trucs" alt="Merchand de Trucs" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.bridge55.com/t-shirts/gio-goi/gio-goi-key-t-shirt-bas100202-black.html" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/typical-breadcrumb-bridge-55.jpg" width="450" height="135" title="Bridge 55" alt="Bridge 55" /></a></p>
<p><a href="http://www.overstock.com/" target="_blank">Overstock.com</a> uses the standard “greater than” symbol for its attribute-based breadcrumb trail. Checkboxes for product attributes are used so that users can uncheck them to filter them out.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.overstock.com/Home-Garden/Beds/Twin,/bed-size,/2013/subcat.html" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/typical-breadcrumb-overstock.jpg" width="450" height="149" title="Overstock" alt="Overstock" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Replacing “>” with Other Symbols</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">Right-pointing Triangles</h4>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.techradar.com/news/computing" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-techradar.jpg" width="450" height="71" title="Computing | News | TechRadar UK" alt="Computing | News | TechRadar UK" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.bp.com/bodycopyarticle.do?categoryId=1&#038;contentId=7052055" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-bp.jpg" width="413" height="136" title="BP Global" alt="BP Global" /></a></p>
<h4 class="subtitle align-subtitle">Slashes</h4>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://psd.tutsplus.com/category/tutorials/drawing/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-psdtuts.jpg" width="450" height="100" title="Psdtuts+" alt="Psdtuts+" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.uniquemartique.com/site/martique/product/291" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-martique.jpg" width="450" height="95" title="Unique Martique" alt="Unique Martique" /></a></p>
<h4 class="subtitle align-subtitle">Right-angled Quotation Mark</h4>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.mousetominx.co.uk/products.php?cat=7" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-mouse-to-minx.jpg" width="450" height="95" title="Mouse to Minx" alt="Mouse to Minx" /></a></p>
<h4 class="subtitle align-subtitle">Right-pointing Arrows</h4>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.useit.com/alertbox/pr.html" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-usitdotcome.jpg" width="450" height="71" title="Use It" alt="Use It" /></a></p>
<h4 class="subtitle align-subtitle">Semi-colons (:)</h4>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.target.com/Beach-Towels-Bath-Bed/b/ref=sc_fe_l_2/176-1138487-8856958?ie=UTF8&#038;node=1041470" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/replacing-target.jpg" width="413" height="88" title="Target" alt="Target" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Beyond Simple Text Links</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://listen.grooveshark.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-groove-shark.jpg" width="450" height="79" title="Grooveshark" alt="Grooveshark" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://tv.yahoo.com/the-10-000-pyramid/show/28443/castcrew" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-yahootv.jpg" width="378" height="98" title="Yahoo! TV" alt="Yahoo! TV" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.ideo.com/work/item/s500/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-ideo.jpg" width="450" height="149" title="IDEO" alt="IDEO" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://store.apple.com/us/product/MB352LL/B?fnode=MTY1NDA4NA&#038;mco=MTY1OTg1Nw" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-apple.jpg" width="450" height="149" title="Apple Store" alt="Apple Store" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://coolspotters.com/entertainment/websites" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-coolspotters.jpg" width="450" height="149" title="Coolspotters" alt="Coolspotters" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.devlounge.net/design/sidebars-that-rock" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-devlounge.jpg" width="450" height="115" title="Devlounge" alt="Devlounge" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="https://launchpad.net/lottanzb" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-launchpad.jpg" width="330" height="74" title="Launchpad Lottanzb" alt="Launchpad Lottanzb" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.pixelpoodle.com/?action=news&#038;id=24" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-pixeldoodle.jpg" width="425" height="65" title="Pizelpoodle" alt="Pizelpoodle" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.guardian.co.uk/world/obama-administration" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/beautifully-guardianuk.jpg" width="450" height="135" title="Guardian" alt="Guardian" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Breadcrumbs for Multi-Step Processes</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a href="https://www.statementstacker.com/register/step2" target="_blank">Statement Tracker</a> uses a breadcrumb trail to indicate the steps involved in registering for an account, as well as a progress indicator.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="https://www.statementstacker.com/register/step2" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/sequential-statementtracker.jpg" width="450" height="184" title="StatementStacker" alt="StatementStacker" /></a></p>
<p><a href="http://www.flickr.com/tour/" target="_blank">Flickr</a> uses a breadcrumb trail to indicate the number of sections in the Flickr tour.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.flickr.com/tour/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/sequential-flickr.jpg" width="372" height="84" title="Flickr: Tour" alt="Flickr: Tour" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Breadcrumbs with Sub-Navigation</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a href="http://www.marketwatch.com/tech" target="_blank">MarketWatch</a> has a fly-out sub-navigation menu that appears when you hover over a breadcrumb link.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.marketwatch.com/tech" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/subnav-marketwatch.jpg" width="413" height="166" title="Marketwatch" alt="Marketwatch" /></a></p>
<p><a href="http://www.profoto.com/products/profoto/lightshapingtools" target="_blank">Profoto</a> has a unique breadcrumb trail: clicking on a breadcrumb link opens an area below it that gives users additional attributes to select from.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.profoto.com/products/profoto/lightshapingtools" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/primary-nav-protofoto.jpg" width="450" height="137" title="Profoto" alt="Profoto" /></a></p>
<p><a href="http://www.som.cranfield.ac.uk/som/p858/About-Cranfield/Location/Getting-to-Cranfield-via-Public-Transport" target="_blank">Cranfield University</a> has a similar fly-out breadcrumb scheme, which serves a dual function: as an location indicator for the user and as a robust and interactive secondary navigation scheme.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.som.cranfield.ac.uk/som/p858/About-Cranfield/Location/Getting-to-Cranfield-via-Public-Transport" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/primary-nav-cranfield.jpg" width="366" height="291" title="Cranfield School" alt="Cranfield School" /></a></p>
<p><a href="http://www.lonelyplanet.com/germany/north-rhine-westphalia/cologne" target="_blank">Lonely Planet</a> also has a fly-out breadcrumb trail in which you can change attributes.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.lonelyplanet.com/germany/north-rhine-westphalia/cologne" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/primary-nav-lonely-planet.jpg" width="450" height="71" title="Lonely Planet" alt="Lonely Planet" /></a></p>
<p>Clicking on a breadcrumb link takes you to that item’s page, while clicking on the downward-pointing arrow opens additional options.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.lonelyplanet.com/germany/north-rhine-westphalia/cologne" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/primary-nav-lonely-planet-2.jpg" width="450" height="272" title="Lonely Planet" alt="Lonely Planet" /></a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/cc295790.aspx" target="_blank">MSDN</a> has a breadcrumb trail that opens a scrollable sub-navigation list when the user hovers over a link.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://msdn.microsoft.com/en-us/library/cc295790.aspx" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/subnav-msdn.jpg" width="428" height="250" title="MSDN" alt="MSDN" /></a></p>
<p><a href="http://www.wowhead.com/?spells=7.11.574" target="_blank">Wowhead</a> has a multi-level sub-navigation scheme.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.wowhead.com/?spells=7.11.574" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/subnav-wowhead.jpg" width="399" height="154" title="Wowhead" alt="Wowhead" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Interactive Breadcrumbs</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a href="http://delicious.com/SixRevisions/webdesign+design" target="_blank">Delicious</a> lets you remove items in the breadcrumb trail of keyword tags to help you quickly find bookmarks.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://delicious.com/SixRevisions/webdesign+design" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/interactive-delicious.jpg" width="243" height="99" title="SixRevisions's Web Design and Design Bookmarks on Delicious" alt="SixRevisions's Web Design and Design Bookmarks on Delicious" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Experimental Examples</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a href="http://www.booreiland.nl/" target="_blank">Booreiland</a> uses a breadcrumb-style navigation scheme for its primary menu, allowing visitors to quickly understand what they’re currently viewing.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.booreiland.nl/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/breadcrumb/primary-nav-booreiland.jpg" width="450" height="194" title="Booreiland" alt="Booreiland" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2009/03/17/breadcrumbs-in-web-design-examples-and-best-practices-2/" target="_blank">Breadcrumbs in Web Design: Examples and Best Practices</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/breadcrumb-showcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pagination Showcase</title>
		<link>http://www.lingihuang.com/viviancrap/archives/pagination-showcase/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/pagination-showcase/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 14:17:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=279</guid>
		<description><![CDATA[




Good Practices Of Pagination Design





Provide large clickable areas
Don’t use underlines
Identify the current page
Space out page links
Provide Previous and Next links
Use First and Last links (where applicable)
Put First and Last links on the outside





Bad Practices Of Pagination Design





Navigation options are invisible
The color of the links on Hugg.com has a very low contrast with the white background. [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Good Practices Of Pagination Design</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Provide large clickable areas</li>
<li>Don’t use underlines</li>
<li>Identify the current page</li>
<li>Space out page links</li>
<li>Provide Previous and Next links</li>
<li>Use First and Last links (where applicable)</li>
<li>Put First and Last links on the outside</li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Bad Practices Of Pagination Design</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Navigation options are invisible</li>
<p>The color of the links on <a href="http://www.hugg.com/" target="_blank">Hugg.com</a> has a very low contrast with the white background. The hover-effect isn’t provided.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.hugg.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/hugg.gif" width="284" height="47" title="Hugg" alt="Hugg" /></a></p>
<li>Pagination isn’t intuitive</li>
<p><a href="http://www.helium.com/" target="_blank">Helium.com</a> is a perfect example for this mistake. Take a look at the screenshot below: what do the arrows stand for? For the page you’ve already visited or for the page you are currently on? And why does the link to the second page have a white background color? Why do the arrows have different colors? This is unintuitive.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.helium.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/helium.gif" width="454" height="33" title="Helium" alt="Helium" /></a></p>
<p>Unintuitive designs result from the lack of structure, hierarchy and well thought-out design decisions. “Blank” pagination is as unintuitive as overcrowded design solution.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.helium.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/helium2.png" width="223" height="33" title="Helium" alt="Helium" /></a></p>
<p>Not spaced out page links are harder to scan and to navigate through. <a href="http://make-believe.org/" target="_blank">Make-Believe.org</a> as an example. The design is unintuitive.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://make-believe.org/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/makeblieve.gif" width="107" height="44" title="Make Believe" alt="Make Believe" /></a></p>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Creative Solutions Can Be User-Friendly</div>
</p></div>
</p></div>
</p></div>
</p></div>
<h4 class="subtitle align-subtitle">Slider-based Pagination Menu</h4>
<p><a href="http://www.dirty.ru/" target="_blank">Dirty.ru</a> uses a slider-based pagination menu; users can drag it to get more available options, that means links to the older pages of the site.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.dirty.ru/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/dirtyru.gif" width="240" height="71" title="DirtyRu" alt="DirtyRu" /></a></p>
<h4 class="subtitle align-subtitle">Further Navigation Options</h4>
<p><a href="http://www.erweiterungen.de/" target="_blank">Erweiterungen.de</a>, the German version of the official Firefox extensions web-site, provides more navigation options once the visitor clicks on the “…”-button.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.erweiterungen.de/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/erweiterungen.gif" width="412" height="149" title="Erweiterungen" alt="Erweiterungen" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Simple Enumeration</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.facebook.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/facebook.gif" width="93" height="43" title="Facebook" alt="Facebook" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.businessweek.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/bw.gif" width="168" height="50" title="Business Week" alt="Business Week" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.slanted.de/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/slanted.gif" width="342" height="41" title="Slanted" alt="Slanted" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.cpluv.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/cpluv.png" width="394" height="49" title="Computerlove" alt="Computerlove" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.stylegala.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/stylegala.gif" width="223" height="50" title="Stylegala" alt="Stylegala" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.everyzing.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/everyzing.gif" width="212" height="57" title="EveryZing, Inc." alt="EveryZing, Inc." /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.subcide.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/subcide.gif" width="275" height="62" title="Subcide" alt="Subcide" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Colors and Shapes In Use</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.stylishlabs.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/stylishlabs.png" width="228" height="44" title="Fashion Style Blog" alt="Fashion Style Blog" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://store.apple.com/us" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/apple.gif" width="229" height="60" title="Apple Store" alt="Apple Store" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.bildblog.de/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/bildblog.gif" width="233" height="45" title="BilDblog" alt="BilDblog" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://nnm.ru/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/nnmru.gif" width="241" height="48" title="nnmru" alt="nnmru" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.sitepoint.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/sitepoint.png" width="272" height="59" title="SitePoint" alt="SitePoint" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.amazon.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/amazon.gif" width="270" height="43" title="Amazon" alt="Amazon" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.maple.nu/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/maple.png" width="278" height="46" title="Maple" alt="Maple" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.chow.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/chow-pagination.gif" width="304" height="51" title="Chow" alt="Chow" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.italknews.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/italknews.gif" width="303" height="42" title="iTalk News" alt="iTalk News" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.empressr.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/empressr.png" width="316" height="53" title="Empressr" alt="Empressr" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.flickr.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/flickr.gif" width="335" height="54" title="Flickr" alt="Flickr" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.ttiqq.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/ttiqq.gif" width="395" height="72" title="TTiqq" alt="TTiqq" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.ebizmba.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/ebizma.gif" width="386" height="49" title="eBizMBA" alt="eBizMBA" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.uxmag.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/uxmag.gif" width="389" height="87" title="UX Magazine" alt="UX Magazine" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://digg.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/digg.gif" width="427" height="62" title="Digg" alt="Digg" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.wykop.pl/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/wykop.gif" width="459" height="49" title="Wykop" alt="Wykop" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.wikio.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/wikio.gif" width="361" height="50" title="Wikio" alt="Wikio" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.become.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/become.gif" width="257" height="52" title="Bcome" alt="Become" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://meneame.net/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/meneame.gif" width="496" height="53" title="meneame" alt="meneame" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://msdn.microsoft.com/en-us/default.aspx" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/msdn.gif" width="240" height="58" title="MSDN" alt="MSDN" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.tutorialsgarden.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/tutorialsgarden.gif" width="286" height="56" title="TutorialsGarden" alt="TutorialsGarden" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.pixsy.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/pixsy.gif" width="325" height="66" title="Pixsy" alt="Pixsy" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://drupal.org/forum/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/drupal.gif" width="469" height="55" title="Drupal" alt="Drupal" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.ulf-theis.de/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/technorati.gif" width="270" height="58" title="ulf-theis" alt="ulf-theis" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.quintura.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/quintura.gif" width="243" height="61" title="Quintura" alt="Quintura" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.programmableweb.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/programmableweb.gif" width="239" height="51" title="ProgrammableWeb" alt="ProgrammableWeb" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.newsgarbage.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/newsgarbage.gif" width="326" height="47" title="News Garbage" alt="News Garbage" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.drweb.de/start/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/drweb.gif" width="479" height="67" title="Dr. Web Magazin" alt="Dr. Web Magazin" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.toplinks.gr/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/toplinks.gif" width="410" height="59" title="Top Links" alt="Top Links" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.blogmarks.net/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/blogmarks.gif" width="376" height="44" title="Blogmarks" alt="Blogmarks" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.ulf-theis.de/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/ulf.gif" width="326" height="50" title="ulf-theis" alt="ulf-theis" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.designsnack.com/?page=browse&#038;asc_desc=desc&#038;site_level=approved&#038;order_by=approved_id&#038;category=all&#038;rows=40" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/designshack.gif" width="443" height="44" title="Design Snack" alt="Design Snack" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.sproose.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/sproose.gif" width="489" height="62" title="Sproose" alt="Sproose" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.mister-wong.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/mister-wong.gif" width="166" height="55" title="Mister Wong" alt="Mister Wong" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://justice.anglican.org.nz/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/social.gif" width="304" height="55" title="Social" alt="Social" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://codesnipers.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/codesnipers.gif" width="413" height="53" title="CodeSnipers" alt="CodeSnipers" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Pagination with Manual Page Input</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>In some cases users can provide the number of the page they’d like to see manually, via the input-element. This is common for paginations with the limited number of options — e.g. in these designs you can’t jump to the last page if you’d like to.</p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.newyorker.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/newyorker.gif" width="226" height="42" title="New Yorker" alt="New Yorker" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.veer.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/veer.gif" width="392" height="89" title="Veer" alt="Veer" /></a></p>
<p><a class="thumbnail-container-anchor anchor-with-no-border" href="http://www.talkdigger.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/pagination/talkdigger.gif" width="459" height="57" title="Talk Digger" alt="Talk Digger" /></a></p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/" target="_blank">Pagination Gallery: Examples and Good Practices</a></li>
<li><a href="http://mis-algoritmos.com/2007/03/16/some-styles-for-your-pagination/" target="_blank">Some Styles for Your Pagination</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/pagination-showcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2008 Design Trends</title>
		<link>http://www.lingihuang.com/viviancrap/archives/2008-design-trends/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/2008-design-trends/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 11:48:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=273</guid>
		<description><![CDATA[
Vintage/Retro Styles








Handwritten Notes and Paper Clips







Grungy





Splatter Ink




Watercolor





Collage

 Welcome to Free People&#8221; alt=&#8221;Free People Clothing Boutique > Welcome to Free People&#8221; />



Sketches and Handwritten Fonts







Big Fonts




Script Fonts




Wood Pattern





Zig Zag Pattern








Related Posts





2008 Design Trends
Grunge Style In Modern Web Design
The Secrets Of Grunge Design
Hand-Drawing Style In Modern Web Design
Hand-Drawing Style In Modern Web Design &#8211; Volume 2
Retro and [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<h4 class="subtitle align-subtitle">Vintage/Retro Styles</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.ernesthemingwaycollection.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/ernesthemingwaycollection.jpg" width="220" height="160" title="The Ernest Hemingway Collection" alt="The Ernest Hemingway Collection" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://radio.nymoon.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/ny-moon.jpg" width="220" height="160" title="Radio - The New York Moon" alt="Radio - The New York Moon" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.macsbeer.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/macsbeer.jpg" width="220" height="160" title="MacTarnahan's Brewing Company" alt="MacTarnahan's Brewing Company" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.coalmarch.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/coalmarch.jpg" width="220" height="160" title="Web Development Firm" alt="Web Development Firm" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.redblu.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/redblu.jpg" width="220" height="160" title="Red&#038;blu Clothing" alt="Red&#038;blu Clothing" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.fortysevenmedia.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/vintage-retro/painisgood.jpg" width="220" height="160" title="FortySeven Media" alt="FortySeven Media" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Handwritten Notes and Paper Clips</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.viget.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/handwritten-notes-and-papper-clips/viget.jpg" width="220" height="160" title="Viget Labs | We Build Web Business" alt="Viget Labs | We Build Web Business" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.pointofe.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/handwritten-notes-and-papper-clips/pointofe.jpg" width="220" height="160" title="Web Site Content Writers | Point of Entry Consulting, Inc." alt="Web Site Content Writers | Point of Entry Consulting, Inc." /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.homedesignfind.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/handwritten-notes-and-papper-clips/homedesignfind.jpg" width="220" height="160" title="Home Design Find" alt="Home Design Find" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.chemistryrecruitment.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/handwritten-notes-and-papper-clips/chemistryrecruitment.jpg" width="220" height="160" title="Chemistry Recruitment" alt="Chemistry Recruitment" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://onwired.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/handwritten-notes-and-papper-clips/onwire.jpg" width="220" height="160" title="Web Design &#038; Development" alt="Web Design &#038; Development" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Grungy</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://ma.tt/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/grungy/matt.jpg" width="220" height="160" title="Matt Mullenweg - aka Photo Matt - on WordPress, Web, Jazz, Life, and Photography" alt="Matt Mullenweg - aka Photo Matt - on WordPress, Web, Jazz, Life, and Photography" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.basmatitree.net/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/grungy/basmatitree.jpg" width="220" height="160" title="Basmati Tree" alt="Basmati Tree" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.edgepointchurch.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/grungy/edgepointchurch.jpg" width="220" height="160" title="Edgepoint Church | Awesomely Different" alt="Edgepoint Church | Awesomely Different" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Splatter Ink</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.olliekav.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/splatter-ink/olliekav.jpg" width="220" height="160" title="olliekav.com: All Things Design, Music and More" alt="olliekav.com: All Things Design, Music and More" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.timkadlec.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/splatter-ink/timkadlec.jpg" width="220" height="160" title="Tim Kadlec" alt="Tim Kadlec" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Watercolor</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://spring.tnvacation.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/watercolor/spring.jpg" width="220" height="160" title="Springtime in Tennessee" alt="Springtime in Tennessee" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.viget.com/inspire/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/watercolor/inspire.jpg" width="220" height="160" title="Web Design Blog | Web Design Standards | Viget Inspire" alt="Web Design Blog | Web Design Standards | Viget Inspire" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.dailycandy.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/watercolor/dailycandy.jpg" width="220" height="160" title="DailyCandy - The Latest Fashion Designers, Weekend Events &#038; Products" alt="DailyCandy - The Latest Fashion Designers, Weekend Events &#038; Products" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Collage</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.freepeople.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/collage/freepeople.jpg" width="220" height="160" title="Free People Clothing Boutique > Welcome to Free People&#8221; alt=&#8221;Free People Clothing Boutique > Welcome to Free People&#8221; /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://summer.tnvacation.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/collage/summer.jpg" width="220" height="160" title="Summertime in Tennessee" alt="Summertime in Tennessee" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.designspongeonline.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/collage/designsponge.jpg" width="220" height="160" title="Design*Sponge" alt="Design*Sponge" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Sketches and Handwritten Fonts</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.njrebel.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/sketches-and-handwritten-fonts/njrebel.jpg" width="220" height="160" title="NJ REBEL | New Jersey Youth Anti Tobacco Movement" alt="NJ REBEL | New Jersey Youth Anti Tobacco Movement" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://bootb.com/en/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/sketches-and-handwritten-fonts/bootb.jpg" width="220" height="160" title="The Official Online Marketplace for Creative Services - Unlimited Creativity - BootB" alt="The Official Online Marketplace for Creative Services - Unlimited Creativity - BootB" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.bnweiss.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/sketches-and-handwritten-fonts/bnweiss.jpg" width="220" height="160" title="B.N.WEISS | MUnich | New York | Corporate Design" alt="B.N.WEISS | MUnich | New York | Corporate Design" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.threadless.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/sketches-and-handwritten-fonts/theadless.jpg" width="220" height="160" title="Threadless Graphic T-shirt Designs" alt="Threadless Graphic T-shirt Designs" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.mccoy.co.uk/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/sketches-and-handwritten-fonts/mccoy.jpg" width="220" height="160" title="Freelance Web Designer - Richard McCoy" alt="Freelance Web Designer - Richard McCoy" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Big Fonts</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://rediswhite.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/big-fonts/rediswhite.jpg" width="220" height="160" title="Red is White T-shirts - Faith Inspired Designer Tees | Submit, Rate, Buy" alt="Red is White T-shirts - Faith Inspired Designer Tees | Submit, Rate, Buy" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.ijsfontein.nl/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/big-fonts/ijsfontein.jpg" width="220" height="160" title="IJsfontein: home" alt="IJsfontein: home" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Script Fonts</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.darasgarden.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/script-fonts/darasgarden.jpg" width="220" height="160" title="Dara's Garden - Weddings, Receptions, and Events in Knoxville, TN" alt="Dara's Garden - Weddings, Receptions, and Events in Knoxville, TN" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.hotmeteor.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/script-fonts/hot-meteor.jpg" width="220" height="160" title="Hot Meteor" alt="Hot Meteor" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Wood Pattern</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.komodomedia.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/wood-pattern/komodomedia.jpg" width="220" height="160" title="Komodo Media - Web, Logo &#038; Identity Design Company - CSS, jQuery, Javascript, &#038; Web Design Blog" alt="Komodo Media - Web, Logo &#038; Identity Design Company - CSS, jQuery, Javascript, &#038; Web Design Blog" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.davidhellmann.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/wood-pattern/david.jpg" width="220" height="160" title="David Hellmann - Grafikdesign, Webdesign, Entwicklung, (X)HTML, CSS, Wordpress" alt="David Hellmann - Grafikdesign, Webdesign, Entwicklung, (X)HTML, CSS, Wordpress" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.candesprojects.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/wood-pattern/candes.jpg" width="220" height="160" title="Candes | Cristian Neagu - UI Designer, Developer, Consultant" alt="Candes | Cristian Neagu - UI Designer, Developer, Consultant" /></a></li>
</ul>
<h4 class="subtitle align-subtitle">Zig Zag Pattern</h4>
<ul class="thumbnails clearfix">
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://www.ewedding.com/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/zig-zag-pattern/ewedding.jpg" width="220" height="160" title="Wedding Websites by eWedding.com" alt="Wedding Websites by eWedding.com" /></a></li>
<li class="thumbnail-width-2"><a class="thumbnail-container-anchor" href="http://shop.uppercasegallery.ca/" target="_blank"><img src="http://www.lingihuang.com/viviancrap/wp-content/uploads/2009/09/zig-zag-pattern/uppercasegallery.jpg" width="220" height="160" title="UPPERCASE - Welcome" alt="UPPERCASE - Welcome" /></a></li>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.webdesignerwall.com/trends/2008-design-trends/" target="_blank">2008 Design Trends</a></li>
<li><a href="http://www.smashingmagazine.com/2008/01/29/grunge-style-in-modern-web-design/" target="_blank">Grunge Style In Modern Web Design</a></li>
<li><a href="http://www.smashingmagazine.com/2008/03/11/the-secrets-of-grunge-design/" target="_blank">The Secrets Of Grunge Design</a></li>
<li><a href="http://www.smashingmagazine.com/2008/01/03/hand-drawing-style-in-modern-web-design/" target="_blank">Hand-Drawing Style In Modern Web Design</a></li>
<li><a href="http://www.smashingmagazine.com/2008/06/18/hand-drawing-style-in-modern-web-design-volume-2/" target="_blank">Hand-Drawing Style In Modern Web Design &#8211; Volume 2</a></li>
<li><a href="http://www.smashingmagazine.com/2008/10/07/retro-and-vintage-in-modern-web-design/" target="_blank">Retro and Vintage In Modern Web Design</a></li>
<li><a href="http://www.smashingmagazine.com/2008/10/14/30-beautiful-vintageretro-photoshop-tutorials/" target="_blank">35 Beautiful Vintage and Retro Photoshop Tutorials</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/2008-design-trends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The XMLHttpRequest Object</title>
		<link>http://www.lingihuang.com/viviancrap/archives/the-xmlhttprequest-object/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/the-xmlhttprequest-object/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 04:54:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=262</guid>
		<description><![CDATA[




What is the XMLHttpRequest object?





Creating an XMLHttpRequest object.
Specifying and submitting your HTTP request to a web server.
Synchronously or asynchronously retrieving the server&#8217;s response.



Propertie Name
Description


onreadystatechange
An event handler for an event that fires at every state change.


readyState

          					The readyState property defines the current state of the XMLHttpRequest object.

								State [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">What is the XMLHttpRequest object?</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Creating an XMLHttpRequest object.</li>
<li>Specifying and submitting your HTTP request to a web server.</li>
<li>Synchronously or asynchronously retrieving the server&#8217;s response.</li>
</ul>
<div class="entry-table">
<div class="table-heading-row">
<div class="property-col">Propertie Name</div>
<div class="description-col">Description</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">onreadystatechange</div>
<div class="description-col" style="height:36px;">An event handler for an event that fires at every state change.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:370px;">readyState</div>
<div class="description-col" style="height:370px;">
          					The readyState property defines the current state of the XMLHttpRequest object.</p>
<p>
								<strong>State Description</strong><br />
								0: The request is not initialized.<br />
								1: The request has been set up.<br />
								2: The request has been sent.<br />
								3: The request is in process.<br />
								4: The request is completed.
          					</p>
<p>
          						<strong>readyState = 0</strong> after you have created the XMLHttpRequest object, but before you have called the open() method.<br />
          						<strong>readyState = 1</strong> after you have called the open() method, but before you have called send().<br />
          						<strong>readyState = 2</strong> after you have called the send() method.<br />
          						<strong>readyState = 3</strong> after browser has established a communication with the server, but before the server has completed the response.<br />
          						<strong>readyState = 4</strong> after the request has been completed, and the response data have been completely received from the server.
          					</p>
</p></div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:18px;">responseText</div>
<div class="description-col" style="height:18px;">Returns the response as a string.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:140px;">responseXML</div>
<div class="description-col" style="height:140px;">Returns the response as XML, which can be examined and parsed using W3C DOM node tree methods and properties. This property returns an XML document object, when the Content-Type header specifies the MIME(media) type as text/xml, application/xml, or ends in +xml. If the Content-Type header does not contain one of these media types, the responseXML value is null.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">status</div>
<div class="description-col" style="height:36px;">Returns the status as a number (e.g. 404 for &#8220;Not Found&#8221; and 200 for &#8220;OK&#8221;).</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:36px;">statusText</div>
<div class="description-col" style="height:36px;">Returns the status as a string (e.g. &#8220;Not Found&#8221; or &#8220;OK&#8221;).</div>
</p></div>
</p></div>
<div class="entry-table">
<div class="table-heading-row">
<div class="property-col">Method Name</div>
<div class="description-col">Description</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:18px;">abort()</div>
<div class="description-col" style="height:18px;">Cancel the current request.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:68px;">getAllResponseHeaders()</div>
<div class="description-col" style="height:68px;">The getAllResponseHeaders() method returns all the response headers as a single string with each header on a separate line. The method returns null if readyState value is not 3 or 4.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:86px;">getResponseHeader(DOMString header)</div>
<div class="description-col" style="height:86px;">Returns the value of the specified HTTP header. Call getResponseHeader() only when the readyState value is 3 or 4 (in other words, after the response headers are available); otherwise, the method returns an empty string.</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:210px;">open(DOMString method, DOMString url, boolean async, DOMString username, DOMString password)</div>
<div class="description-col" style="height:210px;">
          					Specify the method, url, and other optional attributes of a request.<br />
          					The method parameter can have a value of &#8220;GET&#8221;, &#8220;POST&#8221;, or &#8220;HEAD&#8221;. Other HTTP methods, such as &#8220;PUT&#8221; and &#8220;DELETE&#8221; (primarily used in REST applications), may be possible.<br />
          					The <strong>async</strong> parameter specifies whether the request should be handled asynchronously or not. &#8220;true&#8221; means that script processing carries on after the send() method, without waiting for a response, and &#8220;false&#8221; means that the script waits for a response before continuing script processing.
          				</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:510px;">send()</div>
<div class="description-col" style="height:510px;">
          					After preparing a request by calling the open() method, you send the request to the server. You may call send() only when the readyState value is 1, otherwise the XMLHttpRequest object raises an exception. The request gets sent to the server using the parameters supplied to the open() method. The send() method returns immediately when the async parameter is true, letting other client script processing continue. The XMLHttpRequest object sets the readyState value to 2 (Sent) after the send() method has been called. When the server responds, before receiving the message body, if any, the XMLHttpRequest object sets readState to 3 (Receiving). When the request has completed loading it sets readyState to 4 (Loaded). For a request of type HEAD, it sets the readyState value to 4 immediately after setting it to 3.<br />
          					The send() method takes an optional parameter that may contain data of varying types. Typically, you use this to send data to the server using the POST method. You can explicitly invoke the send() method with null, which is the same as invoking it with no argument. For most other data types, set the Content-Type header using the setReuqestHeader() method before invoking the send() method. If the data parameter in the send(data) method is of type DOMString, encode the data as UTF-8. If data is of type Document, serialize the data using the encoding specified by data.xmlEncoding, if supported or UTF-8 otherwise.
          				</div>
</p></div>
<div class="table-row">
<div class="property-col" style="height:74px;">setRequestHeader(DOMString header, DOMString value)</div>
<div class="description-col" style="height:74px;">The setRequestHeader() method sets request headers. You may call this method after calling the open() method when the readyState value is 1; otherwise you will get an exception.</div>
</p></div>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Create an XMLHttpRequest Object</div>
</p></div>
</p></div>
</p></div>
</p></div>
<pre>
          			<code class="text-indent-0"><span class="keyword">function</span> <span class="variable">createHttpRequest()</span> <span class="keyword">{</span></code>
          				<code class="text-indent-1"><span class="keyword">var</span> <span class="variable">httpRequest</span> = <span class="value">null</span>;</code>
          					<code class="text-indent-2"><span class="keyword">if (</span><span class="element">window</span>.<span class="keyword">ActiveXObject</span><span class="keyword">)</span> <span class="comment">// For IE6 and below</span></code>
          						<code class="text-indent-3"><span class="variable">httpRequest</span> = <span class="keyword">new</span> <span class="keyword">ActiveXObject(</span><span class="string">"Microsoft.XMLHTTP"</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-2"><span class="keyword">else</span> <span class="comment">// For IE7 and Modern Browsers</span></code>
          						<code class="text-indent-3"><span class="variable">httpRequest</span> = <span class="keyword">new</span> <span class="keyword">XMLHttpRequest()</span>;</code>
          				<code class="text-indent-1"><span class="keyword">return</span> <span class="variable">httpRequest</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          		</pre>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Submit a Request</div>
</p></div>
</p></div>
</p></div>
</p></div>
<pre>
          			<code class="text-indent-0"><span class="keyword">XMLHttpRequest.open(</span><span class="string">"GET"</span>, <span class="variable">url</span>, <span class="value">true</span><span class="keyword">)</span>;</code>
          		</pre>
<p>If you pass <span class="highlighted">false</span> as the third argument to open(), the send() method is <span class="highlighted">synchronous</span>: it blocks and does not return until the server&#8217;s response has arrived. Asynchronous responses are generally preferred.</p>
<h4 class="subtitle align-subtitle">HTTP GET</h4>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">xmlHttpRequest</span> = <span class="element">window</span>.<span class="keyword">ActiveXObject</span> <span class="keyword">?</span> <span class="keyword">new</span> <span class="keyword">ActiveXObject(</span><span class="string">"Microsoft.XMLHTTP"</span><span class="keyword">)</span> <span class="keyword">:</span> <span class="keyword">new</span> <span class="keyword">XMLHttpRequest()</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">onreadystatechange = function() {</span></code>

          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">open(</span><span class="string">"GET"</span>, <span class="string">"query.php?username=vivian"</span>, <span class="value">false</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">send(</span><span class="value">null</span><span class="keyword">)</span>;</code>
          		</pre>
<h4 class="subtitle align-subtitle">HTTP POST</h4>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">xmlHttpRequest</span> = <span class="element">window</span>.<span class="keyword">ActiveXObject</span> <span class="keyword">?</span> <span class="keyword">new</span> <span class="keyword">ActiveXObject(</span><span class="string">"Microsoft.XMLHTTP"</span><span class="keyword">)</span> <span class="keyword">:</span> <span class="keyword">new</span> <span class="keyword">XMLHttpRequest()</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">onreadystatechange = function() {</span></code>

          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">open(</span><span class="string">"POST"</span>, <span class="string">"query.php"</span>, <span class="value">false</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">setRequestHeader(</span><span class="string">"Content-Type"</span>, <span class="value">"application/x-www-form-urlencoded"</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">send(</span><span class="string">"username=vivian"</span><span class="keyword">)</span>;</code>
          		</pre>
<p>With POST requests, data is passed to the server in the body of the request, rather than encoding it into the URL itself. Since request parameters are encoded into the URL of a GET request, the GET method is suitable only when the request has no side effects on the server &#8212; that is, when repeated GET requests for the same URL with the same parameters can be expected to return the same result. When there are side effects to a request (such as when the server stores some of the parameters in a database), a POST request should be used instead.</p>
<h4 class="subtitle align-subtitle">Escape the Data</h4>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">HTTPUTILITY</span> <span class="keyword">= {</span></code>
          				<code class="text-indent-1"><span class="variable">encodeFormData</span><span class="keyword">: function(</span><span class="variable">data</span><span class="keyword">) {</span></code>
          					<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">!</span><span class="variable">data</span><span class="keyword">)</span> <span class="keyword">return</span>;</code>
          					<code class="text-indent-2"><span class="keyword">var</span> <span class="variable">pairs</span> <span class="keyword">=</span> <span class="keyword">[]</span>;</code>
          					<code class="text-indent-2"><span class="keyword">var</span> <span class="variable">regexp</span> <span class="keyword">=</span> <span class="value">/%20/g</span>; <span class="comment">// A regular expression to match an encoded space.</span></code>
          					<code class="text-indent-2"><span class="keyword">for (</span><span class="keyword">var</span> <span class="string">name</span> <span class="keyword">in</span> <span class="variable">data</span><span class="keyword">) {</span></code>
          						<code class="text-indent-3"><span class="comment">// Create a name/value pair, but encode name and value first. The global function encodeURIComponent does almost what we want,</span></code>
          						<code class="text-indent-3"><span class="comment">// but it encodes spaces as %20 instead of as "+". We have to fix that with String.replace().</span></code>
          						<code class="text-indent-3"><span class="keyword">var</span> <span class="variable">value</span> <span class="keyword">=</span> <span class="variable">data</span><span class="keyword">[</span><span class="string">name</span><span class="keyword">]</span>.<span class="keyword">toString()</span>;</code>
          						<code class="text-indent-3"><span class="keyword">var</span> <span class="variable">pair</span> <span class="keyword">=</span> <span class="keyword">encodeURIComponent(</span><span class="string">name</span><span class="keyword">)</span>.<span class="keyword">replace(</span><span class="variable">regexp</span>, <span class="string">"+"</span><span class="keyword">)</span> <span class="keyword">+</span> <span class="string">"="</span> <span class="keyword">+</span> <span class="keyword">encodeURIComponent(</span><span class="value">value</span><span class="keyword">)</span>.<span class="keyword">replace(</span><span class="variable">regexp</span>, <span class="string">"+"</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-3"><span class="variable">pairs</span>.<span class="keyword">push(</span><span class="variable">pair</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-2"><span class="keyword">}</span></code>
          					<code class="text-indent-2"><span class="keyword">return</span> <span class="variable">pairs</span>.<span class="keyword">join(</span><span class="string">"&#038;"</span><span class="keyword">)</span>; <span class="comment">// Concatenate all the name/value pairs, separating them with &#038;.</span></code>
          				<code class="text-indent-1"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="keyword">};</span></code>
          		</pre>
<p>The POST method uses the AJAX.encodeFormData() function to convert the properties of an object to a string form that can be used as the body of a POST request. This string is then passed to the XMLHttpRequest.send() method and becomes the body of the request. (The string returned by AJAX.encodeFormData() can also be appended to a GET URL; just use a quest-mark character to separate the URL from the data.)</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Retrieve the Response</div>
</p></div>
</p></div>
</p></div>
</p></div>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">xmlHttpRequest</span> = <span class="element">window</span>.<span class="keyword">ActiveXObject</span> <span class="keyword">?</span> <span class="keyword">new</span> <span class="keyword">ActiveXObject(</span><span class="string">"Microsoft.XMLHTTP"</span><span class="keyword">)</span> <span class="keyword">:</span> <span class="keyword">new</span> <span class="keyword">XMLHttpRequest()</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">onreadystatechange = function() {</span></code>
          				<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">readyState</span> <span class="keyword">!=</span> <span class="value">4</span><span class="keyword">) {</span></code>
          					<code class="text-indent-2"><span class="comment">// Start to progress</span></code>
          				<code class="text-indent-1"><span class="keyword">} else {</span> <span class="comment">// The server's response is complete.</span></code>
          					<code class="text-indent-2"><span class="keyword">if (</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">status</span> <span class="keyword">==</span> <span class="value">0</span> <span class="keyword">||</span> <span class="variable">xmlHttpRequest</span>.<span class="attribute">status</span> <span class="keyword">==</span> <span class="value">200</span><span class="keyword">)</span></code>
          						<code class="text-indent-3"><span class="variable">callback</span><span class="keyword">(</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">responseText</span><span class="keyword">)</span></code>
          					<code class="text-indent-2"><span class="keyword">else</span></code>
          						<code class="text-indent-3"><span class="comment">// Error</span></code>
          				<code class="text-indent-1"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">open(</span><span class="string">"POST"</span>, <span class="string">"query.php"</span>, <span class="value">false</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">setRequestHeader(</span><span class="string">"Content-Type"</span>, <span class="value">"application/x-www-form-urlencoded"</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">send(</span><span class="string">"username=vivian"</span><span class="keyword">)</span>;</code>
          		</pre>
<h4 class="subtitle align-subtitle">Notes on readyState 3</h4>
<p>Data is being received from the server.<span class="highlighted">readyState 3</span> differs somewhat in Firefox and Internet Explorer. Firefox invokes the <span class="highlighted">onreadystatechange</span> handler multiple times in <span class="highlighted">readyState 3</span>, to provide download progress feedback. A script might use these multiple invocations to display a progress indicator to the user. Internet Explorer, on the other hand, interprets the event handler name strictly, and invokes it only when the readyState value actualy changes. This means that it is invoked only once for readyState 3, no matter how large downloaded document is.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Time Out a Request</div>
</p></div>
</p></div>
</p></div>
</p></div>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">timer</span> <span class="keyword">=</span> <span class="value">null</span>;</code>
          			<code class="text-indent-0"><span class="keyword">var<span class="keyword"> <span class="variable">timeout</span> <span class="keyword">=</span> <span class="value">1000</span>;</code>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">xmlHttpRequest</span> = <span class="element">window</span>.<span class="keyword">ActiveXObject</span> <span class="keyword">?</span> <span class="keyword">new</span> <span class="keyword">ActiveXObject(</span><span class="string">"Microsoft.XMLHTTP"</span><span class="keyword">)</span> <span class="keyword">:</span> <span class="keyword">new</span> <span class="keyword">XMLHttpRequest()</span>;</code>
          			<code class="text-indent-0"><span class="keyword">if (</span><span class="variable">timeout</span><span class="keyword">) {</span></code>
          				<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">timer</span><span class="keyword">)</span> <span class="keyword">clearTimeout(</span><span class="variable">timer</span><span class="keyword">)</span>;</code>
          				<code class="text-indent-1"><span class="variable">timer</span> <span class="keyword">=</span> <span class="keyword">setTimeout(</span><span class="keyword">function(){</span></code>
          					<code class="text-indent-2"><span class="variable">xmlHttpRequest</span>.<span class="keyword">abort()</span>;</code>
          				<code class="text-indent-1"><span class="keyword">}</span>, <span class="variable">timeout</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">onreadystatechange = function() {</span></code>
          				<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">readyState</span> <span class="keyword">!=</span> <span class="value">4</span><span class="keyword">) {</span></code>
          					<code class="text-indent-2"><span class="comment">// Start to progress</span></code>
          				<code class="text-indent-1"><span class="keyword">} else {</span> <span class="comment">// The server's response is complete.</span></code>
          					<code class="text-indent-2"><span class="keyword">if (</span><span class="variable">timer</span><span class="keyword">)</span> <span class="keyword">clearTimeout(</span><span class="variable">timer</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-2"><span class="keyword">if (</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">status</span> <span class="keyword">==</span> <span class="value">0</span> <span class="keyword">||</span> <span class="variable">xmlHttpRequest</span>.<span class="attribute">status</span> <span class="keyword">==</span> <span class="value">200</span><span class="keyword">)</span></code>
          						<code class="text-indent-3"><span class="variable">callback</span><span class="keyword">(</span><span class="variable">xmlHttpRequest</span>.<span class="attribute">responseText</span><span class="keyword">)</span></code>
          					<code class="text-indent-2"><span class="keyword">else</span></code>
          						<code class="text-indent-3"><span class="comment">// Error</span></code>
          				<code class="text-indent-1"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">open(</span><span class="string">"POST"</span>, <span class="string">"query.php"</span>, <span class="value">false</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">setRequestHeader(</span><span class="string">"Content-Type"</span>, <span class="value">"application/x-www-form-urlencoded"</span><span class="keyword">)</span>;</code>
          			<code class="text-indent-0"><span class="variable">xmlHttpRequest</span>.<span class="keyword">send(</span><span class="string">"username=vivian"</span><span class="keyword">)</span>;</code>
          		</pre>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Prevent Caching for Internet Explorer</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>By appending the julian day number to the end of the URL(?timestamp=123412341234), we effectively make each call unique and that means Internet Explorer will not cache the Ajax call as it is wont to do.</p>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/xmlhttprequest_object/index.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.w3.org/TR/XMLHttpRequest/" target="_blank">The XMLHttpRequest Object</a></li>
<li><a href="http://www.w3.org/TR/XMLHttpRequest2/" target="_blank">XMLHttpRequest Level 2</a></li>
<li><a href="http://www.w3.org/TR/access-control/" target="_blank">Access Control</a></li>
<li><a href="http://www.hunlock.com/blogs/The_Ultimate_Ajax_Object" target="_blank">The Ultimate AJAX Object</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/the-xmlhttprequest-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Window onResize Handler</title>
		<link>http://www.lingihuang.com/viviancrap/archives/window-onresize-handler/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/window-onresize-handler/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 14:58:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=256</guid>
		<description><![CDATA[
There is a bug in IE (version 6 and 7) in which the clarity between window.onresize and body.onresize is muddied. This can cause quite a problem for developers and even render the client&#8217;s browser unresponsive (throttling the CPU to near 100%) if you&#8217;re not very careful. IE fires the onresize multiple times while Firefox only [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<p>There is a bug in IE (version 6 and 7) in which the clarity between <span class="highlighted">window.onresize</span> and <span class="highlighted">body.onresize</span> is muddied. This can cause quite a problem for developers and even render the client&#8217;s browser unresponsive (throttling the CPU to near 100%) if you&#8217;re not very careful. IE fires the onresize multiple times while Firefox only fires it once after the browser has completed resizing.</p>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Prevent IE from Firing onResize Multiple Times</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li>Solution One: setTimeout()</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">elements</span> = <span class="keyword">{</span><span class="string">"wrapper":</span> <span class="value">null</span>, <span class="string">"topHeader":</span> <span class="value">null</span>, <span class="string">"bottomFooter":</sapn> <span class="value">null</span>, <span class="string">"leftSide":</span> <span class="value">null</span>, <span class="string">"rightSide":</sapn> <span class="value">null</span>, <span class="string">"content":</sapn> <span class="value">null</sapn><span class="keyword">}</sapn>;</code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">properties</span> = <span class="keyword">[</span><span class="value">"clientWidth"</span>, <span class="value">"clientHeight"</span>, <span class="value">"offsetWidth"</span>, <span class="value">"offsetHeight"</span><span class="keyword">]</span>;</code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">resizeTimeout</span> = <span class="value">null</span>;</code>
          				<code class="text-indent-0"><span class="keyword">var</sapn> <span class="variable">onloadHandler</span> <span class="keyword">= function() {</span></code>
          					<code class="text-indent-1"><span class="keyword">for (</span><span class="keyword">var</span> <span class="string">name</span> <span class="keyword">in</span> <span class="variable">elements</span><span class="keyword">)</span></code>
          						<code class="text-indent-2"><span class="variable">elements</span><span class="keyword">[</span><span class="string">name</span><span class="keyword">]</span> <span class="keyword">=</span> <span class="element">document</span>.<span class="keyword">getElementById(</span><span class="string">name</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="keyword">onresizeHandler();</span></code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">onresizeHandler</span> <span class="keyword">= function() {</span></code>
          					<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">resizeTimeout</span><span class="keyword">)</span> <span class="keyword">clearTimeout(</span><span class="variable">resizeTimeout</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="variable">resizeTimeout</span> <span class="keyword">=</span> <span class="keyword">setTimeout(function(){</span></code>
          						<code class="text-indent-2"><span class="keyword">var</span> <span class="variable">height</span> <span class="keyword">=</span> <span class="variable">GEOMETRY</span>.<span class="keyword">getViewportHeight()</span> <span class="keyword">-</span> <span class="element">elements.topHeader</span>.<span class="attribute">offsetHeight</span> <span class="keyword">-</span> <span class="element">elements.bottomFooter</span>.<span class="attribute">offsetHeight</span>;</code>
          						<code class="text-indent-2"><span class="variable">height</span> <span class="keyword">-=</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.topHeader</span>, <span class="string">"margin-top"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.topHeader</span>, <span class="string">"margin-bottom"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.bottomFooter</span>, <span class="string">"margin-top"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.bottomFooter</span>, <span class="string">"margin-bottom"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.leftSide</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.rightSide</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.content</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="keyword">}</span>, <span class="value">400</span><span class="keyword">)</span>;</code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          				<code class="text-indent-0"><span class="variable">GENERIC</span>.<span class="keyword">addEvent(</span><span class="element">window</span>, <span class="string">"load"</span>, <span class="variable">onloadHandler</span><span class="keyword">)</span>;</code>
          				<code class="text-indent-0"><span class="variable">GENERIC</span>.<span class="keyword">addEvent(</span><span class="element">window</span>, <span class="string">"resize"</span>, <span class="variable">onresizeHandler</span><span class="keyword">)</span>;</code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapper"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"topHeader"</span> <span class="class">class</span>=<span class="string">"top-header"</span><span class="element">&gt;</span>Header<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"leftSide"</span> <span class="class">class</span>=<span class="string">"side-bar align-left"</span><span class="element">&gt;</span>Side Bar<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"rightSide"</span> <span class="class">class</span>=<span class="string">"side-bar align-right"</span><span class="element">&gt;</span>Side Bar<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"content"</span> <span class="class">class</span>=<span class="string">"content"</span><span class="element">&gt;</span>Content<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bottomFooter"</span> <span class="class">class</span>=<span class="string">"bottom-footer"</span><span class="element">&gt;</span>Footer<span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          			</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/window_onresize_handler/setTimeout.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<li>Solution Two: setInterval()</li>
<pre>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">elements</span> = <span class="keyword">{</span><span class="string">"wrapper":</span> <span class="value">null</span>, <span class="string">"topHeader":</span> <span class="value">null</span>, <span class="string">"bottomFooter":</sapn> <span class="value">null</span>, <span class="string">"leftSide":</span> <span class="value">null</span>, <span class="string">"rightSide":</sapn> <span class="value">null</span>, <span class="string">"content":</sapn> <span class="value">null</sapn><span class="keyword">}</sapn>;</code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">properties</span> = <span class="keyword">[</span><span class="value">"clientWidth"</span>, <span class="value">"clientHeight"</span>, <span class="value">"offsetWidth"</span>, <span class="value">"offsetHeight"</span><span class="keyword">]</span>;</code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">initHeight</span> = <span class="value">0</span>;</code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">resizeInterval</span> = <span class="value">null</span>;</code>
          				<code class="text-indent-0"><span class="keyword">var</sapn> <span class="variable">onloadHandler</span> <span class="keyword">= function() {</span></code>
          					<code class="text-indent-1"><span class="keyword">for (</span><span class="keyword">var</span> <span class="string">name</span> <span class="keyword">in</span> <span class="variable">elements</span><span class="keyword">)</span></code>
          						<code class="text-indent-2"><span class="variable">elements</span><span class="keyword">[</span><span class="string">name</span><span class="keyword">]</span> <span class="keyword">=</span> <span class="element">document</span>.<span class="keyword">getElementById(</span><span class="string">name</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">resizeInterval</span><span class="keyword">)</span> <span class="keyword">clearInterval(</span><span class="variable">resizeInterval</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="variable">resizeInterval</span> <span class="keyword">=</span> <span class="keyword">setInterval(function(){</span></code>
          						<code class="text-indent-2"><span class="keyword">onresizeHandler()</span>;</code>
          					<code class="text-indent-1"><span class="keyword">}</span>, <span class="value">100</span><span class="keyword">)</span>;</code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          				<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">onresizeHandler</span> <span class="keyword">= function() {</span></code>
          					<code class="text-indent-1"><span class="keyword">var</span> <span class="variable">height</span> <span class="keyword">=</span> <span class="variable">GEOMETRY</span>.<span class="keyword">getViewportHeight()</span> <span class="keyword">-</span> <span class="element">elements.topHeader</span>.<span class="attribute">offsetHeight</span> <span class="keyword">-</span> <span class="element">elements.bottomFooter</span>.<span class="attribute">offsetHeight</span>;</code>
          					<code class="text-indent-1"><span class="variable">height</span> <span class="keyword">-=</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.topHeader</span>, <span class="string">"margin-top"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.topHeader</span>, <span class="string">"margin-bottom"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.bottomFooter</span>, <span class="string">"margin-top"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">-</span> <span class="keyword">parseInt(</span><span class="variable">CSS</span>.<span class="keyword">get(</span><span class="element">elements.bottomFooter</span>, <span class="string">"margin-bottom"</span><span class="keyword">)</span>, <span class="value">10</span><span class="keyword">)</span>;</code>
          					<code class="text-indent-1"><span class="keyword">if (</span><span class="variable">initHeight</span> <span class="keyword">!=</span> <span class="variable">height</span><span class="keyword">)</span></code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.leftSide</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.rightSide</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">CSS</span>.<span class="keyword">set(</span><span class="element">elements.content</span>, <span class="keyword">{</span><span class="string">"height":</span> <span class="value">height</span><span class="keyword">}</span><span class="keyword">)</span>;</code>
          						<code class="text-indent-2"><span class="variable">initHeight</span> <span class="keyword">=</span> <span class="variable">height</span>;</code>
          					<code class="text-indent-1"><span class="keyword">}</span></code>
          				<code class="text-indent-0"><span class="keyword">};</span></code>
          				<code class="text-indent-0"><span class="variable">GENERIC</span>.<span class="keyword">addEvent(</span><span class="element">window</span>, <span class="string">"load"</span>, <span class="variable">onloadHandler</span><span class="keyword">)</span>;</code>
          			</pre>
<pre>
          				<code class="text-indent-0"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"wrapper"</span> <span class="class">class</span>=<span class="string">"wrapper"</span><span class="element">&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"topHeader"</span> <span class="class">class</span>=<span class="string">"top-header"</span><span class="element">&gt;</span>Header<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"leftSide"</span> <span class="class">class</span>=<span class="string">"side-bar align-left"</span><span class="element">&gt;</span>Side Bar<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"rightSide"</span> <span class="class">class</span>=<span class="string">"side-bar align-right"</span><span class="element">&gt;</span>Side Bar<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"content"</span> <span class="class">class</span>=<span class="string">"content"</span><span class="element">&gt;</span>Content<span class="element">&lt;/div&gt;</span></code>
          					<code class="text-indent-1"><span class="element">&lt;div</span> <span class="id">id</span>=<span class="string">"bottomFooter"</span> <span class="class">class</span>=<span class="string">"bottom-footer"</span><span class="element">&gt;</span>Footer<span class="element">&lt;/div&gt;</span></code>
          				<code class="text-indent-0"><span class="element">&lt;/div&gt;</span></code>
          			</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/window_onresize_handler/setInterval.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
</ul>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/f01d6ab8-01a7-417b-b2ac-e94e677b2182" target="_blank">Is it possible to have .NET chart auto-resize to fill area on a page?</a></li>
<li><a href="http://blog.stchur.com/2006/09/06/the-ie-resize-bug-revisited/" target="_blank">Beat the IE Resize Bug</a></li>
<li><a href="http://www.jaceju.net/blog/?p=268" target="_blank">window.onresize 連續觸發的問題</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/window-onresize-handler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work with Style Properties</title>
		<link>http://www.lingihuang.com/viviancrap/archives/work-with-style-properties/</link>
		<comments>http://www.lingihuang.com/viviancrap/archives/work-with-style-properties/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 15:48:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.lingihuang.com/viviancrap/?p=238</guid>
		<description><![CDATA[




Scripting Computed Styles




The W3C standard API for determining the computed style of an element is the getComputedStyle() method of the Window object. The first argument to this method is the element whose computed style is desired. The second argument is any CSS pseudoelement, such as &#8220;:before&#8221; or &#8220;:after&#8221; whose style is desired. In the Mozilla [...]]]></description>
			<content:encoded><![CDATA[<div class="entry-content">
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Scripting Computed Styles</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>The W3C standard API for determining the computed style of an element is the <span class="highlighted">getComputedStyle()</span> method of the <span class="highlighted">Window object</span>. The first argument to this method is the element whose computed style is desired. The second argument is any <span class="highlighted">CSS pseudoelement</span>, such as <span class="minor">&#8220;:before&#8221;</span> or <span class="minor">&#8220;:after&#8221;</span> whose style is desired. In the Mozilla and Firefox implementation of this method, the second argument is required and may not be omitted. As a result, you&#8217;ll usually see getComputedStyle() invoked with <span class="highlighted">null</span> as its second argument.</p>
<p>IE provides a simpler alternative: every HTML element has a <span class="highlighted">currentStyle</span> property that holds its computed style.</p>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">CSS</span> <span class="keyword">=  {</span></code>
						<code class="text-indent-1"><span class="variable">getStyle</span><span class="keyword">: function(</span><span class="element">element</span><span class="keyword">) {</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">!</span><span class="element">element</span><span class="keyword">)</span> <span class="keyword">return</span>;</code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">typeof</span> <span class="element">element</span> <span class="keyword">==</span> <span class="string">"string"</span><span class="keyword">)</span> <span class="element">element</span> <span class="keyword">=</span> <span class="element">document</span>.<span class="keyword">getElementById(</span><span class="string">element</span><span class="keyword">)</span>;</code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="element">element</span>.<span class="attribute">currentStyle</span><span class="keyword">)</span> <span class="comment">// For IE</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">element</span>.<span class="attribute">currentStyle</span>;</code>
							<code class="text-indent-2"><span class="keyword">else if (</span><span class="element">document</span>.<span class="attribute">defaultView</span> <span class="keyword">&#038;&#038;</span> <span class="element">document</span>.<span class="attribute">defaultView</span>.<span class="keyword">getComputedStyle</span><span class="keyword">)</span> <span class="comment">// For Modern Browsers</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">document</span>.<span class="attribute">defaultView</span>.<span class="keyword">getComputedStyle(</span><span class="element">element</span>, <span class="value">null</span><span class="keyword">)</span>;</code>
							<code class="text-indent-2"><span class="keyword">else</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">element</span>.<span class="attribute">style</span>;</code>
						<code class="text-indent-1"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="keyword">};</span></code>
          		</pre>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Retrive Global/External CSS Properties</div>
</p></div>
</p></div>
</p></div>
</p></div>
<p>These two approaches frequently require different ways of referring to the style properties. In the case of the IE <span class="highlighted">currentStyle</span> object, references are made via the same object model syntax as is used for getting and setting style values. Therefore, hyphenated CSS property names must be referenced via the <span class="highlighted">intercapitalization system</span> (e.g., <span class="minor">margin-left</span> becomes <span class="minor">marginLeft</span>). But the property name for the W3C DOM <span class="highlighted">getPropertyValue()</span> method must be in the CSS property format (e.g., <span class="minor">margin-left</span> is <span class="minor">margin-left</span>).</p>
<p>Also be aware that for some CSS properties, different browser versions may return different value types-especially in colors that are specified by CSS syntax other than rgb(r, g, b). For example, if you set the color with a plain-language color name (e.g., orange), the value returned from the browsers may be in a different format. For the most part, if you specify colors in rgb(r, g, b) format, you&#8217;ll get that back.</p>
<p>CSS values consisting of length measurements typically contain units (pixels, points, ems, and so on). If you tend to utilize the value of a style property for any math, such as adding five pixels to the left edge of a positioned element, be sure to extract the numeric portion of sorting values that include units. Use the <span class="highlighted">parseInt()</span> function for integers and the <span class="highlighted">parseFloat()</span> function for numeric values that may have digits to the right of the decimal (e.g., 0.5em).</p>
<p>Once you assign a value to a property of an element&#8217;s <span class="highlighted">style object</span>, the value can be read subsequently through the <span class="highlighted">style property</span>. But for consistency&#8217;s sake, you can continue to read a value the getPropertyValue() method and currentStyle object because it returns the effective value applied to the element at any instant.</p>
<pre>
          			<code class="text-indent-0"><span class="keyword">var</span> <span class="variable">CSS</span> <span class="keyword">=  {</span></code>
						<code class="text-indent-1"><span class="variable">get</span><span class="keyword">: function(</span><span class="element">element</span>, <span class="string">name</span><span class="keyword">) {</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">!</span><span class="element">element</span><span class="keyword">)</span> <span class="keyword">return;</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">typeof</span> <span class="element">element</span> <span class="keyword">==</span> <span class="string">"string"</span><span class="keyword">)</span> <span class="element">element</span> <span class="keyword">=</span> <span class="element">document</span>.<span class="keyword">getElementById(</span><span class="element">element</span><span class="keyword">);</span></code>
							<code class="text-indent-2"><span class="comment">// Convert "background-color" to "backgroundColor"</span></code>
							<code class="text-indent-2"><span class="keyword">var</span> <span class="variable">camelCase</span> <span class="keyword">=</span> <span class="string">name</span>.<span class="keyword">replace(</span><span class="value">/\-(\w)/g</span>, <span class="keyword">function(</span><span class="variable">all</span>, <span class="variable">letter</span><span class="keyword">) {</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="variable">letter</span><span class="keyword">.toUpperCase()</span>;</code>
							<code class="text-indent-2"><span class="keyword">});</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="element">element</span>.<span class="attribute">currentStyle</span><span class="keyword">) {</span> <span class="comment">// For IE</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">element</span>.<span class="attribute">currentStyle</span><span class="keyword">[</span><span class="string">name</span><span class="keyword">]</span> <span class="keyword">||</span> <span class="element">element</span>.<span class="attribute">currentStyle</span><span class="keyword">[</span><span class="variable">camelCase</span><span class="keyword">]</span>;</code>
							<code class="text-indent-2"><span class="keyword">} else if (</span><span class="element">document</span>.<span class="attribute">defaultView</span> <span class="keyword">&#038;&#038;</span> <span class="element">document</span>.<span class="attribute">defaultView</span>.<span class="keyword">getComputedStyle</span><span class="keyword">) {</span> <span class="comment">// // For Modern Browsers</span></code>
								<code class="text-indent-3"><span class="string">name</span> <span class="keyword">=</span> <span class="string">name</span>.<span class="keyword">replace(</span><span class="value">/([A-Z])/g</span>, <span class="string">"-$1"</span><span class="keyword">)</span>.<span class="keyword">toLowerCase()</span>;</code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">document</span>.<span class="attribute">defaultView</span>.<span class="keyword">getComputedStyle(</span><span class="element">element</span>, <span class="value">null</span><span class="keyword">)</span>.<span class="keyword">getPropertyValue(</span><span class="string">name</span><span class="keyword">)</span>;</code>
							<code class="text-indent-2"><span class="keyword">} else {</span></code>
								<code class="text-indent-3"><span class="keyword">return</span> <span class="element">element</span>.<span class="attribute">style</span><span class="keyword">[</span><span class="string">name</span><span class="keyword">]</span> <span class="keyword">||</span> <span class="element">element</span>.<span class="attribute">style</span><span class="keyword">[</span><span class="variable">camelCase</span><span class="keyword">]</span>;</code>
							<code class="text-indent-2"><span class="keyword">}</span></code>
						<code class="text-indent-1"><span class="keyword">},</span></code>
						<code class="text-indent-1"><span class="variable">set</span><span class="keyword">: function(</span><span class="element">element</span>, <span class="variable">properties</span><span class="keyword">) {</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">!</span><span class="element">element</span><span class="keyword">)</span> <span class="keyword">return;</span></code>
							<code class="text-indent-2"><span class="keyword">if (</span><span class="keyword">typeof</span> <span class="element">element</span> <span class="keyword">==</span> <span class="string">"string"</span><span class="keyword">)</span> <span class="element">element</span> <span class="keyword">=</span> <span class="element">document</span>.<span class="keyword">getElementById(</span><span class="element">element</span><span class="keyword">);</span></code>
							<code class="text-indent-2"><span class="keyword">for (</span><span class="keyword">var</span> <span class="variable">name</span> <span class="keyword">in</span> <span class="variable">properties</span><span class="keyword">) {</span></code>
								<code class="text-indent-3"><span class="comment">// Convert "background-color" to "backgroundColor"</span></code>
								<code class="text-indent-3"><span class="keyword">var</span> <span class="variable">camelCase</span> <span class="keyword">=</span> <span class="string">name</span>.<span class="keyword">replace(</span><span class="value">/\-(\w)/g</span>, <span class="keyword">function(</span><span class="variable">all</span>, <span class="variable">letter</span><span class="keyword">) {</span></code>
									<code class="text-indent-4"><span class="keyword">return</span> <span class="variable">letter</span><span class="keyword">.toUpperCase()</span>;</code>
								<code class="text-indent-3"><span class="keyword">});</span></code>
								<code class="text-indent-3"><span class="keyword">if (</span><span class="keyword">typeof</span> <span class="variable">properties</span><span class="keyword">[</span><span class="variable">name</span><span class="keyword">]</span> <span class="keyword">==</span> <span class="string">"number"</span><span class="keyword">)</span> <span class="element">element</span>.<span class="attribute">style</span><span class="keyword">[</span><span class="variable">camelCase</span><span class="keyword">]</span> <span class="keyword">=</span> <span class="keyword">(</span><span class="keyword">parseInt(</span><span class="variable">properties</span><span class="keyword">[</span><span class="variable">name</span><span class="keyword">]</span>, <span class="value">10</span><span class="keyword">)</span> <span class="keyword">||</span> <span class="value">0</span><span class="keyword">)</span> <span class="keyword">+</span> <span class="string">"px"</span>;</code>
								<code class="text-indent-3"><span class="keyword">if (</span><span class="keyword">typeof</span> <span class="variable">properties</span><span class="keyword">[</sapn><span class="variable">name</span><span class="keyword">]</span> <span class="keyword">==</span> <span class="string">"string"</span><span class="keyword">)</span> <span class="element">element</span>.<span class="attribute">style</span><span class="keyword">[</span><span class="variable">camelCase</span><span class="keyword">]</span> <span class="keyword">=</span> <span class="variable">properties</span><span class="keyword">[</span><span class="variable">name</sapn><span class="keyword">]<span>;</code>
							<code class="text-indent-2"><span class="keyword">}</span></code>
						<code class="text-indent-1"><span class="keyword">}</span></code>
          			<code class="text-indent-0"><span class="keyword">};</span></code>
          		</pre>
<div class="button-row clearfix">
<p class="button-style preview-icon"><a href="http://www.lingihuang.com/viviancrap/wp-content/uploads/work_with_style_properties/index.html" target="_blank">View<span>Demo</span></a></p>
</p></div>
<div class="heading-row">
<div class="left-col">
<div class="right-col">
<div class="body-col">
<div class="title">Related Posts</div>
</p></div>
</p></div>
</p></div>
</p></div>
<ul class="entry-list">
<li><a href="http://www.quirksmode.org/dom/getstyles.html" target="_blank">Javascript Get Styles</a></li>
<li><a href="http://www.oreillynet.com/pub/a/javascript/excerpt/JSDHTMLCkbk_chap5/index5.html" target="_blank">Reading Effective Style Sheet Property Values</a></li>
</ul></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lingihuang.com/viviancrap/archives/work-with-style-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
