<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Code Dreamer : Nitin Hayaran</title>
	
	<link>http://www.nitinh.com</link>
	<description>Nitin Hayaran's Blog</description>
	<lastBuildDate>Wed, 30 Jun 2010 15:01:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheCodeDreamer" /><feedburner:info uri="thecodedreamer" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>TheCodeDreamer</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Introducing PNRCheck.com</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/XHZcv7dWrNU/</link>
		<comments>http://www.nitinh.com/2010/06/introducing-pnrcheck-com/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 08:07:49 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[WebResource]]></category>
		<category><![CDATA[indian]]></category>
		<category><![CDATA[indian railways]]></category>
		<category><![CDATA[PNR]]></category>
		<category><![CDATA[pnr check]]></category>
		<category><![CDATA[railways]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/06/introducing-pnrcheck-com/</guid>
		<description><![CDATA[
I don’t know when this picture was taken, or is it actually of India or not, but condition of Indian Railways is not a lot different from this. The trains are always crowded, and it is difficult to get reservation in train. Every train traveler might faced the problem of non-availability of tickets in Indian [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"></div><p><img src="http://www.timesonline.co.uk/multimedia/archive/00589/India-train_589356a.jpg" alt="" /></p>
<p>I don’t know when this picture was taken, or is it actually of India or not, but condition of Indian Railways is not a lot different from this. The trains are always crowded, and it is difficult to get reservation in train. Every train traveler might faced the problem of non-availability of tickets in Indian Railways. Anyways, here I am not going to discuss the condition of Indian Railways.</p>
<p><span id="more-500"></span></p>
<p>In this post I want to Introduce one of the web-service which I built for my use, and I think it would be useful for you as well.</p>
<p>The name of the website is <a href="http://www.pnrcheck.com"><strong>PNRCheck.com.</strong></a> The website will help you to keep track of your <strong>waiting list / RAC </strong>tickets. The process is very simple:</p>
<ol>
<li>You need to login to the website.</li>
<li>Submit your 10 digit PNR Number for tracking, and relax.</li>
<li>We’ll send you an SMS and E-mail as and when the <strong>ticket gets confirmed</strong>. Even if the ticket doesn’t gets confirmed we’ll send you the <strong>final status of ticket</strong>(on chart preparation).</li>
</ol>
<p>By using this service you won’t have to go and check for ticket confirmation again and again, and I think this will definitely save some of your time.</p>
<h3>How does it work</h3>
<p>Its plain and simple, the service keeps checking for any update of your ticket from indianrail.gov.in. And whenever it sees that your ticket is confirmed, it shoots you an email and SMS about latest status of the ticket.</p>
<p>As this service is dependent on availability from IndianRail.gov.in, there might be some instances where, you are not able to see updated status, or the website is not allowing you  to submit new tickets. In such instances I’d request you to kindly wait for some time and try again later, otherwise you can also try checking your ticket status from <a href="http://indianrail.gov.in/">indianrail.gov.in</a>.</p>
<h4>Why PNRCheck.com?</h4>
<p>The only reason, for creating pnrcheck.com is that, such a service is very much required. This service must be provided by Indian Railways in first place. They take decent amount of service charges from us, and can’t simply send us update about our ticket.</p>
<p>Lets start using this service may be Indian Railways will get some lessons from this and may be later they start sending us these updates. So I’d request you to please tell your friends about this website, so that more and more people can use this service.</p>
<h4>PNRCheck.com Beta</h4>
<p>The website is presently is in beta, so there might be some glitches here and there. I’d request you to kindly post your comments, feedback, errors through feedback button on left side of your screen.</p>
<p>Let me here thoughts about this service through comments.</p>
<img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/XHZcv7dWrNU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/06/introducing-pnrcheck-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/06/introducing-pnrcheck-com/</feedburner:origLink></item>
		<item>
		<title>Energy Saving Javascript</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/fBHh19o2X9w/</link>
		<comments>http://www.nitinh.com/2010/06/energy-saving-javascript/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 18:30:38 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[black]]></category>
		<category><![CDATA[black-screen]]></category>
		<category><![CDATA[Effect]]></category>
		<category><![CDATA[energy]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/?p=483</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/06/energy-saving-javascript/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/06/energy-saving-javascript/",
		size: "large",
		google_analytics: "true"
		}
		Title of this post may seem strange to you but this is true, You can actually save some energy by using this Javascript on your website. Let me tell you how.
This javascript turns the webpage black if there is no user activity on the page [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/06/energy-saving-javascript/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/06/energy-saving-javascript/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img class="size-full wp-image-485 alignleft" style="margin: 0 10px 10px 0;" title="Energy Saving Script" src="http://www.nitinh.com/wp-content/uploads/2010/06/black.jpg" alt="Energy Saving Script" width="191" height="191" />Title of this post may seem strange to you but this is true, You can actually save some energy by using this Javascript on your website. Let me tell you how.</p>
<p>This javascript turns the webpage black if there is no user activity on the page for some time. As the page predominantly turn black the script in-effect saves energy.</p>
<blockquote><p>Image displayed is primarily a function of the user's color settings and desktop graphics, as well as the color and size of open application windows; a given monitor requires more power to display a white (or light) screen than a black (or dark) screen.</p></blockquote>
<p>Roberson et al, 2002.</p>
<h2><span id="more-483"></span></h2>
<p>Just have a look at the Demo to see how it looks:</p>
<p><a class="button" href="/static/energy/">Energy Saving Javascript Demo</a></p>
<h2>How to Use</h2>
<p>Using this script is damn simple just place following script tag anywhere in the page. It would be good if you place this script just before <strong>&lt;/body&gt;</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://apps.nitinh.com/energy.js?time=100&amp;amp;credit=0&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<h3>Configuration</h3>
<p>There are two configurable parameters:</p>
<ul>
<li><strong>time</strong> : This is the amount of idle time before which the screen turn black. The time is in number of seconds and its value should be greater than 10.</li>
<li><strong>credit</strong> : This is boolean field to show / hide credits in Black Screen. Values could be 1 or 0</li>
</ul>
<p>Hope this script saves some of the valuable world energy.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/fBHh19o2X9w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/06/energy-saving-javascript/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/06/energy-saving-javascript/</feedburner:origLink></item>
		<item>
		<title>Wordpress Hacks : Export and Redirect Posts based on their Category</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/_ybIjU_ujSQ/</link>
		<comments>http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:03:06 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[301Redirect]]></category>
		<category><![CDATA[Category]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Posts]]></category>
		<category><![CDATA[Redirect]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/",
		size: "large",
		google_analytics: "true"
		}
		
Wordpress is an excellent blogging engine. It is easy to setup and even easier to use. It has got a huge collection of themes and plugins. Because of all these things Wordpress has got so widespread use.
Wordpress has the concept of categories to segregate posts [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><a href="http://www.nitinh.com/wp-content/uploads/2010/03/wordpress.jpg"><img style="margin: 0px 10px 10px 0px; float: left;" title="wordpress" src="http://www.nitinh.com/wp-content/uploads/2010/03/wordpress_thumb.jpg" border="0" alt="wordpress" width="204" height="204" align="left" /></a></p>
<p><a class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org/">Wordpress</a> is an excellent blogging engine. It is easy to setup and even easier to use. It has got a huge collection of themes and plugins. Because of all these things Wordpress has got so widespread use.</p>
<p>Wordpress has the concept of categories to segregate posts in different types.  When number of posts in some category becomes really huge, its good to make a separate website for this particular category.</p>
<p>I faced similar problem for one of my website and I decided to migrate all of my posts in “XYZ” category to a different domain. But, unfortunately Wordpress Admin Dashboard doesn’t provide any direct method to export all posts in a particular category.</p>
<p><span id="more-477"></span></p>
<p>So, to perform such migration we’ll have to go through several steps. For better understanding we can basically divide this full migration in two steps:</p>
<ol>
<li>Export Posts / Comments based on its category</li>
<li>Redirect posts of this category</li>
</ol>
<h3>Export Posts based on its category</h3>
<p>Wordpress admin panel is very rich, and it does provide direct method to export posts, pages, comments, custom fields, categories, and tags. But you can only export it based on its author, there isn’t any way based on category. So, basically what I did was :</p>
<ol>
<li>Create a new user “AUTHOR_1”</li>
<li>Change author of all the posts in category “CATEGORY_XYZ” to “AUTHOR_1”</li>
<li>Export posts of “AUTHOR_1”</li>
</ol>
<p>Step 1 and 3 are quite obvious and straight, the only challenge is with Step 2. The best way I felt was to dig into the <strong>Wordpress database</strong> and change author on table level itself.</p>
<h4>Database Manipulation</h4>
<p>Wordpress stores all posts in a table called <em>“wp_xxxxxx_posts”. </em>This table consists a column named “<em>post_author”. </em>So basically we’ll have to change this column for our posts. To do this just run following queries on your wordpress database.</p>
<p><strong>NOTE :</strong> Before running any query on database level, I’ll recommend you to take backup of the datebase.</p>
<h5>Get TERM_ID</h5>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>  <span style="color: #ff0000;">`term_id`</span> <span style="color: #66cc66;">,</span>  <span style="color: #ff0000;">`name`</span> <span style="color: #66cc66;">,</span>  <span style="color: #ff0000;">`slug`</span>
<span style="color: #993333; font-weight: bold;">FROM</span>  <span style="color: #ff0000;">`wp_h8kac5_terms`</span>
<span style="color: #993333; font-weight: bold;">WHERE</span>  <span style="color: #ff0000;">`name`</span> <span style="color: #993333; font-weight: bold;">LIKE</span>  <span style="color: #ff0000;">'CATEGORY_XYZ'</span></pre></div></div>

<p>Here you'll have to note the "<strong>term_id</strong>" In following query put term_id taken form above query.</p>
<h5>Get TERM_TAXONOMY_ID</h5>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>  <span style="color: #ff0000;">`term_taxonomy_id`</span> <span style="color: #66cc66;">,</span>  <span style="color: #ff0000;">`term_id`</span> <span style="color: #66cc66;">,</span>  <span style="color: #ff0000;">`taxonomy`</span> <span style="color: #66cc66;">,</span>  <span style="color: #ff0000;">`count`</span>
<span style="color: #993333; font-weight: bold;">FROM</span>  <span style="color: #ff0000;">`wp_h8kac5_term_taxonomy`</span>
<span style="color: #993333; font-weight: bold;">WHERE</span>  <span style="color: #ff0000;">`term_id`</span> <span style="color: #66cc66;">=</span> %term_id%
<span style="color: #993333; font-weight: bold;">AND</span> taxonomy <span style="color: #66cc66;">=</span>  <span style="color: #ff0000;">'category'</span></pre></div></div>

<p>Here you have to note <em>"term_taxonomy_id"</em>. Secondly you can see a column <em>"count"</em>, this count should be equal to the posts returned in :</p>
<p>http://www.example.com/wp-admin/edit.php?category_name=CATEGORY_XYZ</p>
<h5>Update AUTHOR_ID in Posts Table</h5>
<p>This is the final sql query to update author. Before this you need to find the user_id of the user we just created. This can be found in table "wp_h8kac5_users".</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_h8kac5_posts
<span style="color: #993333; font-weight: bold;">SET</span> post_author <span style="color: #66cc66;">=</span> %USER_ID%
<span style="color: #993333; font-weight: bold;">WHERE</span> id <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> object_id <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`wp_h8kac5_term_relationships`</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`term_taxonomy_id`</span> <span style="color: #66cc66;">=</span> %TERM_TAXONOMY_ID% <span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>You need to replace %TERM_TAXONOMY_ID% from the <em>"term_taxonomy_id" </em>returned from the previous query.</p>
<h4>Export Posts</h4>
<p>Hurry !! half the battle is won. We have changed author of all the desired posts. Now we just have to log on to admin panel and export the posts of this <strong>author</strong>. This can be done from:</p>
<p>http://www.example.com/wp-admin/export.php</p>
<h4>Imports Posts on New Domain</h4>
<p>Now log on to the admin dashboard of new domain and <strong>import</strong> these posts from:</p>
<p>http://www.example.com/wp-admin/import.php</p>
<p>At at this point we have done with export part of this migration process. Now the only thing left is to redirect these posts. For redirection we’ll use .htaccess rules.</p>
<h3>Redirect posts of the category</h3>
<p>On my website I have following permalink format :</p>
<pre>/%year%/%monthnum%/%category%/%postname%/</pre>
<p>So, basically “Category” is the 3rd parameter in my URL Scheme. You need to keep similar URL Scheme on your new website. According to this URL pattern we have to write a rule in <strong><a href="http://en.wikipedia.org/wiki/Htaccess" target="_blank">.htaccess</a></strong> file.</p>
<pre># BEGIN Redirection

RewriteEngine On
RewriteCond %{REQUEST_URI} ^(/\d{4}/\d{2}/)([^/]+)(/.*)$
RewriteCond %2 ^CATEGORY_XYZ$
RewriteRule ^(.*)$ http://www.new-domain.com/$1 [redirect=permanent,last]

# END Redirection</pre>
<p>Just put above code in starting of .htaccess, and you are all done.</p>
<p>You can test our implementation by visiting any post of “CATEGORY_XYZ”, it should be redirected to your new domain.</p>
<p>Feel free to shoot any queries through comments.</p>
<img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/_ybIjU_ujSQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/03/wordpress-hacks-export-and-redirect-posts-based-on-their-category/</feedburner:origLink></item>
		<item>
		<title>Sexy Tooltip using CSS3 (no images)</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/RrRuIvfBfSQ/</link>
		<comments>http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 08:45:59 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tooltip]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/",
		size: "large",
		google_analytics: "true"
		}
		CSS is Awesome, but “CSS3” is Awesomely Awesome.
With CSS3 we can make our pages even more beautiful without using additional images and extra markup.
In this post I have tried to make tooltips using CSS3. This is just a sample implementation for tooltip, you can have [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/' rel='bookmark' title='Permanent Link: Drop Shadow in Images : No extra markup'>Drop Shadow in Images : No extra markup</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-and-simple-buttons-with-css/' rel='bookmark' title='Permanent Link: Beautiful and Simple Buttons with CSS'>Beautiful and Simple Buttons with CSS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img style="margin: 0px 10px; width: 150px; float: left;" src="http://imgur.com/ENdKM.jpg" alt="" />CSS is Awesome, but “CSS3” is Awesomely Awesome.</p>
<p>With CSS3 we can make our pages even more beautiful without using additional images and extra markup.</p>
<p>In this post I have tried to make tooltips using CSS3. This is just a sample implementation for tooltip, you can have even better variants.</p>
<p><span id="more-466"></span></p>
<p>Here, this example is semantic <abbr>HTML</abbr>. No empty elements, no unnecessary extra elements, no JavaScript, no images.</p>
<p>The inspiration for these tooltips is from the excellent attempt from “<a href="http://nicolasgallagher.com" target="_blank">Nicolas Gallagher</a>” in <a href="http://nicolasgallagher.com/demo/pure-css-speech-bubbles/bubbles.html" target="_blank">Pure CSS speech bubbles</a>.</p>
<p>Lets first head on to the demo for its actual effect.</p>
<p><a class="button" href="/static/tooltip/">Tooltip Demo</a></p>
<div class="wp-caption alignnone" style="width: 561px"><a href="http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/"><img title="Tooltip using CSS3" src="http://imgur.com/V04da.jpg" alt="Tooltip using CSS3" width="551" height="155" /></a><p class="wp-caption-text">Tooltip using CSS3</p></div>
<p>Interested ??? Lets head on to its code</p>
<h3>HTML Markup</h3>
<p>The HTML used here is very simple, just add class”tooltip” and in title put tooltip text.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tooltip&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;This is first tooltip&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<h3>CSS Code</h3>
<p>The CSS for this effect utilizes :before and :after to show tooltip. Moreover box-shadow, gradient, border-radius properties of CSS3 are used to add some glare. Here is the code.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:after</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span>/<span style="color: #cc66cc;">1.4</span> Arial<span style="color: #00AA00;">,</span>Georgia<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> attr<span style="color: #00AA00;">&#40;</span>title<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">1em</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-20px</span><span style="color: #00AA00;">;</span>
&nbsp;
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#2e88c4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2e88c4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-o-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2e88c4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#2e88c4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">4px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* FF3.5+ */</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">4px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Saf3.0+, Chrome */</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">4px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Opera 10.5, IE 9.0 */</span>
	filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.dropshadow<span style="color: #00AA00;">&#40;</span>OffX<span style="color: #00AA00;">=</span><span style="color: #933;">0px</span><span style="color: #00AA00;">,</span> OffY<span style="color: #00AA00;">=</span><span style="color: #933;">0px</span><span style="color: #00AA00;">,</span> Color<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#000'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* IE6,IE7 */</span>
	-ms-filter<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.dropshadow(OffX=0px, OffY=0px, Color='#000')&quot;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* IE8 */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* creates triangle */</span>
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:before</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">13</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0a0&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">-3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #933;">7px</span> <span style="color: #933;">15px</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #3333ff;">:<span style="color: #993333;">transparent</span> </span>transparent <span style="color: #cc00cc;">#075698</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:before</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:after</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Hope you'll like it.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/' rel='bookmark' title='Permanent Link: Drop Shadow in Images : No extra markup'>Drop Shadow in Images : No extra markup</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-and-simple-buttons-with-css/' rel='bookmark' title='Permanent Link: Beautiful and Simple Buttons with CSS'>Beautiful and Simple Buttons with CSS</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/RrRuIvfBfSQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/</feedburner:origLink></item>
		<item>
		<title>Beautiful Nag Screen using JQuery &amp; CSS3</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/pcphckBBhLw/</link>
		<comments>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:51:18 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[nag screen]]></category>
		<category><![CDATA[nagscreen]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/",
		size: "large",
		google_analytics: "true"
		}
		Yesterday I wrote about a beautiful implementation for nag screen using mootools and CSS3. Thanks for all of my visitor for showing interest in it.
Considering requests from some of the users, I have also worked on its jQuery version. In jQuery version I have also [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/' rel='bookmark' title='Permanent Link: How to Create a Simple Slideshow using Mootools / JQuery'>How to Create a Simple Slideshow using Mootools / JQuery</a></li>
<li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img style="margin: 0px 10px 10px 0px; width: 130px; float: left; height: 130px;" src="http://imgur.com/r4ZM4.jpg" alt="" align="left" />Yesterday I wrote about a <a href="http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/">beautiful implementation for nag screen</a> using mootools and CSS3. Thanks for all of my visitor for showing interest in it.</p>
<p>Considering requests from some of the users, I have also worked on its jQuery version. In jQuery version I have also tried to remove the bugs pointed out by one of the user.</p>
<p><span id="more-457"></span></p>
<p>The new jQuery version also have following improvements:</p>
<ul>
<li>Close button can be used to close nag screen</li>
<li>Now the whole text doesn’t jumps when nag screen sticks to top</li>
</ul>
<p>thanks “<a href="http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/comment-page-1/#comment-5693">Seeker</a>” for pointing out these bugs.</p>
<p>Head over to Demo and download the source for this page.</p>
<p><a class="button" href="http://www.nitinh.com/static/nagScreen/jquery.html" target="_blank">Demo of Nag Screen</a></p>
<p><a class="button" href="http://www.nitinh.com/static/nagScreen/nagScreen_jquery.rar">Download Nag Screen Code</a></p>
<p>Be sure to check out the <a href="http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/">MooTools version</a>.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/' rel='bookmark' title='Permanent Link: How to Create a Simple Slideshow using Mootools / JQuery'>How to Create a Simple Slideshow using Mootools / JQuery</a></li>
<li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/pcphckBBhLw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/</feedburner:origLink></item>
		<item>
		<title>Beautiful Nag Screen using Mootools &amp; CSS3</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/0PnuIH1vFHg/</link>
		<comments>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 12:30:04 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[nag screen]]></category>
		<category><![CDATA[nagscreen]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/",
		size: "large",
		google_analytics: "true"
		}
		Nagscreen : Messages on the webpage that reminds (or nags) the user to register, or show some notification. These messages appear on the webpage in a way to seek user attention. Here in this post we'll be creating beautiful and dynamic Nag Screen using Mootools. [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Beautiful Thumbnail Hover Effect : Using Mootools'>Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><a href="http://www.nitinh.com/wp-content/uploads/2010/03/tweetie2icon.png"><img style="margin: 0px 10px 10px 0px; float: left;" title="Nag Screen" src="http://www.nitinh.com/wp-content/uploads/2010/03/tweetie2icon_thumb.png" border="0" alt="Nag Screen" width="152" height="152" align="left" /></a><strong>Nagscreen</strong> : Messages on the webpage that reminds (or nags) the user to register, or show some notification. These messages appear on the webpage in a way to seek user attention. Here in this post we'll be creating beautiful and dynamic Nag Screen using Mootools. <span id="more-450"></span></p>
<p>The application of nag screen is widespread, it widely used by various websites to show important messages on the webpage. Some examples of such screens are :</p>
<ul>
<li>Update notices in wordpress</li>
<li>Import address book message, which facebook shows</li>
<li>Registration messages shown on various websites</li>
</ul>
<p>So, considering such a wide use of nag screens I’ve tried to make them a little beautiful and flashy.</p>
<p>Just have a look at the demo to see the effect :</p>
<p><a class="button" href="/static/nagScreen/">Nag Screen Demo</a></p>
<p><a href="/static/nagScreen/"><img src="http://www.nitinh.com/wp-content/uploads/2010/03/Clipboard01.jpg" alt="" width="554" height="165" /></a></p>
<p>For capturing the scroll events I have used “<a href="http://mootools.net/forge/p/scrollspy" target="_blank">ScrollSpy</a>” developed by “<a href="http://davidwalsh.name" target="_blank">David Walsh</a>”. Thanks David for make such useful and easy to use plugin.</p>
<p>You can always access source of the webpage for its better understanding. To grab the source please download it here:</p>
<p><a class="button" href="/static/nagScreen/nagScreen.zip">Download Source</a></p>
<p>For further clarification and suggestions please drop comments.</p>
<p>Be sure to check out the <a href="http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/">jQuery version</a>.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Beautiful Thumbnail Hover Effect : Using Mootools'>Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/0PnuIH1vFHg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/</feedburner:origLink></item>
		<item>
		<title>How to Create a Simple Slideshow using Mootools / JQuery</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/U8-sWaa5Uys/</link>
		<comments>http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 17:13:47 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Slideshow]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/",
		size: "large",
		google_analytics: "true"
		}
		 When we want to show lots of content in limited screen space, Slideshows comes to rescue. Making use of slideshows is the optimal way to present large amount of information. In this post i'll walk you through the process of making a very simple(minimilistic) [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img style="margin: 0px 10px 10px 0px; float: left" title="slide_show_icon" border="0" alt="slide_show_icon" align="left" src="http://www.nitinh.com/wp-content/uploads/2010/03/slide_show_icon.gif" width="132" height="132" /> When we want to show lots of content in limited screen space, Slideshows comes to rescue. Making use of slideshows is the optimal way to present large amount of information. In this post i'll walk you through the process of making a very simple(minimilistic) slideshow using Mootools / Jquery. </p>
<p><span id="more-439"></span></p>
<div id='extendedEntryBreak' name='extendedEntryBreak'></div>
<p>&#160;</p>
<p>You must have seen various types of slideshows around the web. Creating such slideshow is also very simple. With little smart code one can make it very quickly.</p>
<p>As it is said “<b><a href="http://en.wikipedia.org/wiki/A_picture_is_worth_a_thousand_words" target="_blank">A picture is worth a thousand words</a></b>”, similarly I believe a demo is worth a thousand words. So lets hit the demo and try it ourselves.</p>
<table border="0" cellspacing="0" cellpadding="0" width="500">
<tbody>
<tr>
<td valign="top" width="250">
<p align="center"><a class="button" href="/static/SlideShow/mootools.html" target="_blank">Demo using Mootools</a></p>
</td>
<td valign="top" width="250">
<p align="center"><a class="button" href="/static/SlideShow/jquery.html" target="_blank">Demo using JQuery</a></p>
</td>
</tr>
</tbody>
</table>
<p>So, Interested ??? Lets head over to its implementation.</p>
<h3>Action Plan</h3>
<ul>
<li><strong>Step 1 :</strong> HTML Code Markup </li>
<li><strong>Step 2 :</strong> Setup CSS for the Slideshow </li>
<li><strong>Step 3 :</strong> Javascript for getting desired effect </li>
</ul>
<h4>Step 1 : HTML code</h4>
<p>In this step we’ll make basic markup for the slideshow. This basically consists two parts, one which shows the bigger picture and second to show list of thumbnails. Here is the necessary HTML code for these two parts.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bigPic&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/1.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/2.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/3.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/4.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/5.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/6.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/7.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/8.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/9.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/10.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;thumbs&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;active&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/1_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/3_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/4_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;4&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/5_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;5&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/6_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;6&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/7_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;7&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/8_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;8&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/9_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;9&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/10_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;10&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;imgs/2_thumb.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>Here fist div#bigPic contains all the big images in the slideshow. Whereas, the ul#thumbs contains thumbnails images. </p>
<h4>Step 2 : Necessary CSS Code</h4>
<p>This section shows, the necessary CSS code. CSS style used in demo for other styles are not included here.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#bigPic</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">940px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#bigPic</span> img<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#thumbs</span> li.active<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>	
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#thumbs</span><span style="color: #00AA00;">,</span> ul<span style="color: #cc00cc;">#thumbs</span> li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#thumbs</span> li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>	
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#thumbs</span> img<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>		
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h4>Step 3 : Javascript Magic</h4>
<p>The basic idea to get the effect is in following steps:</p>
<ol>
<li>Increase the z-index of current shown image</li>
<li>Show next image to be shown just below current image.</li>
<li>Now using fade out current image. This way next image will become visible.</li>
</ol>
<p>Equivalent JS code used is as follows.</p>
<h5>Using Mootools</h5>
<p>If you use JQuery directly head on to next section with JQuery code.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> currentImage<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> currentIndex <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> interval<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> showImage<span style="color: #009900;">&#40;</span>index<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>index<span style="color: #339933;">&lt;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'bigPic'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> indexImage <span style="color: #339933;">=</span> $$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#bigPic img'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>index<span style="color: #009900;">&#93;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>   
            <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>currentImage <span style="color: #339933;">!=</span> indexImage <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'z-index'</span><span style="color: #339933;">,</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                $clear<span style="color: #009900;">&#40;</span>myTimer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #003366; font-weight: bold;">var</span> myFx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Tween</span><span style="color: #009900;">&#40;</span>currentImage<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
                    duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span>
                    onComplete<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyles</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'z-index'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        myTimer <span style="color: #339933;">=</span> showNext.<span style="color: #660066;">delay</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
        indexImage.<span style="color: #660066;">setStyles</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'block'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        currentImage <span style="color: #339933;">=</span> indexImage<span style="color: #339933;">;</span>
        currentIndex <span style="color: #339933;">=</span> index<span style="color: #339933;">;</span>
        $$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#thumbs li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#thumbs li'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>index<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> showNext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> len <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'bigPic'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> next <span style="color: #339933;">=</span> currentIndex <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span>len<span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> currentIndex <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    showImage<span style="color: #009900;">&#40;</span>next<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> myTimer<span style="color: #339933;">;</span>
window.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'domready'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    myTimer <span style="color: #339933;">=</span> showNext.<span style="color: #660066;">delay</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    showNext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//loads first image</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'thumbs'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> count <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        showImage<span style="color: #009900;">&#40;</span>parseInt<span style="color: #009900;">&#40;</span>count<span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h5>JQuery Implementation</h5>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> currentImage<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> currentIndex <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> interval<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> showImage<span style="color: #009900;">&#40;</span>index<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>index <span style="color: #339933;">&lt;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#bigPic img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> indexImage <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#bigPic img'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>index<span style="color: #009900;">&#93;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>   
            <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>currentImage <span style="color: #339933;">!=</span> indexImage <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'z-index'</span><span style="color: #339933;">,</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                clearTimeout<span style="color: #009900;">&#40;</span>myTimer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                $<span style="color: #009900;">&#40;</span>currentImage<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">250</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    myTimer <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;showNext()&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'z-index'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
        $<span style="color: #009900;">&#40;</span>indexImage<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'block'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        currentImage <span style="color: #339933;">=</span> indexImage<span style="color: #339933;">;</span>
        currentIndex <span style="color: #339933;">=</span> index<span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#thumbs li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#thumbs li'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>index<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> showNext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> len <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#bigPic img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> next <span style="color: #339933;">=</span> currentIndex <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span>len<span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> currentIndex <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    showImage<span style="color: #009900;">&#40;</span>next<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> myTimer<span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    myTimer <span style="color: #339933;">=</span> setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;showNext()&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    showNext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Load first image</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#thumbs li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> count <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        showImage<span style="color: #009900;">&#40;</span>parseInt<span style="color: #009900;">&#40;</span>count<span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I have tried to keep the javascript code really simple if you still feel it difficult to understand just drop a comment about it. I'll try to explain your doubts.</p>
<h3>Download Code</h3>
<p>JQuery Implementation : <a href="/static/SlideShow/SlideShow-JQuery.zip" target="_blank"><strong>Sideshow-Jquery.zip</strong></a><br />
Mootools Implementation : <a href="/static/SlideShow/SlideShow-Mootools.zip" target="_blank"><strong>Sideshow-Mootools.zip</strong></a></p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/01/vertical-align-middle-using-javascript-jquery-mootools/' rel='bookmark' title='Permanent Link: Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools'>Vertical-Align : Middle Using Javascript : JQuery &#038; Mootools</a></li>
<li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-jquery-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using JQuery &amp; CSS3'>Beautiful Nag Screen using JQuery &amp; CSS3</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/U8-sWaa5Uys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/03/how-to-create-a-simple-slideshow-using-mootools-jquery/</feedburner:origLink></item>
		<item>
		<title>Django Template Tag to protect the E-mail address</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/bVivefeQH8w/</link>
		<comments>http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 10:26:51 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[Javasript]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamming]]></category>
		<category><![CDATA[spiders]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[template-tag]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/?p=431</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/",
		size: "large",
		google_analytics: "true"
		}
		Here is a Django Template tag which you can use to protect the E-mail address on your website against bots or spiders that index or harvest E-mail addresses. It uses a substitution cipher with a different key for every page load.
This template tag encrypts the [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2009/03/scaling-your-frontend-far-futures-expire-headers/' rel='bookmark' title='Permanent Link: Scaling Your Frontend: Far-Futures Expire Headers'>Scaling Your Frontend: Far-Futures Expire Headers</a></li>
<li><a href='http://www.nitinh.com/2009/10/implementing-search-in-django-site-using-haystack-and-xapian-whoosh/' rel='bookmark' title='Permanent Link: Implementing Search in Django Site using HayStack and Xapian / Whoosh'>Implementing Search in Django Site using HayStack and Xapian / Whoosh</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img class="alignleft" style="margin: 0 10px 10px 0;" src="http://imgur.com/qAuL2.jpg" alt="E-mail Security" width="150" height="86" />Here is a Django Template tag which you can use to protect the E-mail address on your website against bots or spiders that index or harvest E-mail addresses. It uses a substitution cipher with a different key for every page load.<span id="more-431"></span></p>
<p>This template tag encrypts the email address and generates a equivalent Javascript code that can decrypt it. This Javascript produce an email link when it runs on browser. As most bots and spider don't executes Javascript they wouldn't be able to extract mail addresses. While a visitor of your web page will not notice that you used this script as long as he/she has javascript enabled. </p>
<p>A normal visitor with a javascript enabled browser will find no difference.  The visitor with non-javascript browser will see “[javascript protected email address]” in stead of the E-mail address.</p>
<h3>Template Tag Code</h3>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> EncryptEmail<span style="color: black;">&#40;</span>template.<span style="color: black;">Node</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, context_var<span style="color: black;">&#41;</span>:
        <span style="color: #008000;">self</span>.<span style="color: black;">context_var</span> = template.<span style="color: black;">Variable</span><span style="color: black;">&#40;</span>context_var<span style="color: black;">&#41;</span><span style="color: #808080; font-style: italic;"># context_var</span>
    <span style="color: #ff7700;font-weight:bold;">def</span> render<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, context<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">random</span>
        email_address = <span style="color: #008000;">self</span>.<span style="color: black;">context_var</span>.<span style="color: black;">resolve</span><span style="color: black;">&#40;</span>context<span style="color: black;">&#41;</span>
        character_set = <span style="color: #483d8b;">'+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'</span>
        char_list = <span style="color: #008000;">list</span><span style="color: black;">&#40;</span>character_set<span style="color: black;">&#41;</span>
        <span style="color: #dc143c;">random</span>.<span style="color: black;">shuffle</span><span style="color: black;">&#40;</span>char_list<span style="color: black;">&#41;</span>
&nbsp;
        key = <span style="color: #483d8b;">''</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>char_list<span style="color: black;">&#41;</span>
&nbsp;
        cipher_text = <span style="color: #483d8b;">''</span>
        <span style="color: #008000;">id</span> = <span style="color: #483d8b;">'e'</span> + <span style="color: #008000;">str</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">random</span>.<span style="color: black;">randrange</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span>,<span style="color: #ff4500;">999999999</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">for</span> a <span style="color: #ff7700;font-weight:bold;">in</span> email_address:
            cipher_text += key<span style="color: black;">&#91;</span> character_set.<span style="color: black;">find</span><span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span> <span style="color: black;">&#93;</span>
&nbsp;
        script = <span style="color: #483d8b;">'var a=&quot;'</span>+key+<span style="color: #483d8b;">'&quot;;var b=a.split(&quot;&quot;).sort().join(&quot;&quot;);var c=&quot;'</span>+cipher_text+<span style="color: #483d8b;">'&quot;;var d=&quot;&quot;;'</span>
        script += <span style="color: #483d8b;">'for(var e=0;e&lt;c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));'</span>
        script += <span style="color: #483d8b;">'document.getElementById(&quot;'</span>+<span style="color: #008000;">id</span>+<span style="color: #483d8b;">'&quot;).innerHTML=&quot;&lt;a href=<span style="color: #000099; font-weight: bold;">\\</span>&quot;mailto:&quot;+d+&quot;<span style="color: #000099; font-weight: bold;">\\</span>&quot;&gt;&quot;+d+&quot;&lt;/a&gt;&quot;'</span>
&nbsp;
&nbsp;
        script = <span style="color: #483d8b;">&quot;eval(<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>+ script.<span style="color: black;">replace</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span>,<span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\\</span>&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">replace</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'&quot;'</span>,<span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\\</span>&quot;'</span><span style="color: black;">&#41;</span> + <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>)&quot;</span>
        script = <span style="color: #483d8b;">'&lt;script type=&quot;text/javascript&quot;&gt;/*&lt;![CDATA[*/'</span>+script+<span style="color: #483d8b;">'/*]]&gt;*/&lt;/script&gt;'</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #483d8b;">'&lt;span id=&quot;'</span>+ <span style="color: #008000;">id</span> + <span style="color: #483d8b;">'&quot;&gt;[javascript protected email address]&lt;/span&gt;'</span>+ script
&nbsp;
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span>  encrypt_email<span style="color: black;">&#40;</span><span style="color: #dc143c;">parser</span>, <span style="color: #dc143c;">token</span><span style="color: black;">&#41;</span>:
    <span style="color: #483d8b;">&quot;&quot;&quot;
        {% encrypt_email user.email %}
    &quot;&quot;&quot;</span>
&nbsp;
    tokens = <span style="color: #dc143c;">token</span>.<span style="color: black;">contents</span>.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>tokens<span style="color: black;">&#41;</span><span style="color: #66cc66;">!</span>=<span style="color: #ff4500;">2</span>:
        <span style="color: #ff7700;font-weight:bold;">raise</span> template.<span style="color: black;">TemplateSyntaxError</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;%r tag accept two argument&quot;</span> <span style="color: #66cc66;">%</span> tokens<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> EncryptEmail<span style="color: black;">&#40;</span>tokens<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
&nbsp;
register.<span style="color: black;">tag</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'encrypt_email'</span>, encrypt_email<span style="color: black;">&#41;</span></pre></div></div>

<h3>Usage</h3>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: black;">&#123;</span><span style="color: #66cc66;">%</span> encrypt_email <span style="color: #dc143c;">user</span>.<span style="color: #dc143c;">email</span> <span style="color: #66cc66;">%</span><span style="color: black;">&#125;</span></pre></div></div>

<p>The javascript code it generates is something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;e857606962&quot;</span>&gt;</span>[javascript protected email address]<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
/*<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>*<span style="color: #66cc66;">/</span>eval<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;var a=\&quot;</span>cnel8gMuoCjaYRDkv7p+ErHI5qL2x-O3Q@GdtbWKUwT9VfZSN_J04.P1hiFAXz6Bmys\<span style="color: #ff0000;">&quot;;var b=a.split(\&quot;</span>\<span style="color: #ff0000;">&quot;).sort().join(\&quot;</span>\<span style="color: #ff0000;">&quot;);var c=\&quot;</span>AXzVfPXCRgMAhw9fAe91.\<span style="color: #ff0000;">&quot;;var d=\&quot;</span>\<span style="color: #ff0000;">&quot;;for(var e=0;e&lt;c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));document.getElementById(\&quot;</span>e857606962\<span style="color: #ff0000;">&quot;).innerHTML=\&quot;</span>&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span>\\\<span style="color: #ff0000;">&quot;mailto:\&quot;</span>+d+\<span style="color: #ff0000;">&quot;\\\&quot;</span>&gt;</span>\&quot;+d+\&quot;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>\&quot;&quot;)/*]]&gt;*/
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<h4>Demo</h4>
<p>For demo visit : </p>
<p><a class='button' href='http://apps.nitinh.com/encrypt-email/' target="_blank">Demo</a></p>
<p>Hope this template tag will help you to secure your e-mail addresses from bots and spider. </p>
<p>Lets have a spam free web.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2009/03/scaling-your-frontend-far-futures-expire-headers/' rel='bookmark' title='Permanent Link: Scaling Your Frontend: Far-Futures Expire Headers'>Scaling Your Frontend: Far-Futures Expire Headers</a></li>
<li><a href='http://www.nitinh.com/2009/10/implementing-search-in-django-site-using-haystack-and-xapian-whoosh/' rel='bookmark' title='Permanent Link: Implementing Search in Django Site using HayStack and Xapian / Whoosh'>Implementing Search in Django Site using HayStack and Xapian / Whoosh</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/bVivefeQH8w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/02/django-template-tag-to-protect-the-e-mail-address/</feedburner:origLink></item>
		<item>
		<title>Make Your Firefox Even Better by tweaking its looks</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/OwLT65UNR8s/</link>
		<comments>http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:09:28 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Customize]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/?p=423</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/",
		size: "large",
		google_analytics: "true"
		}
		Firefox is my favorite browser. The biggest reason for this is its repository of  useful plugins. The only problem which I see in its default installation is the screen usage. With this I mean, Firefox wastes a lot of screen real estate in unnecessary [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img class="alignleft" style="margin: 0 10px 10px 0;" src="http://imgur.com/5omFL.png" alt="Firefox logo" width="148" height="148" />Firefox is my favorite browser. The biggest reason for this is its repository of  useful plugins. The only problem which I see in its default installation is the screen usage. With this I mean, Firefox wastes a lot of screen real estate in unnecessary menus, buttons. The good news is that it also provides flexibility to customize its overall look and feel.</p>
<p><span id="more-423"></span></p>
<p>I have to tried to optimize my Firefox, and I am pretty happy with the new look. It gives more space for webpage. More emphasis on stuff that is important.</p>
<h3>Previous Look</h3>
<p><img src="http://imgur.com/YePcq.jpg" alt="Firefox Original" /></p>
<h3>New Look</h3>
<p><img src="http://imgur.com/ID71j.jpg" alt="Firefox New Look" /></p>
<h4>Changes</h4>
<p>In new look there are following changes:</p>
<ol>
<li><strong>Hide Menu Bar</strong> : As I have seen from my usage I don't really access menus. I simply use its <a href="http://support.mozilla.com/en-US/kb/Keyboard+shortcuts">keyboard shortcuts</a>. So it is actually not needed for me.</li>
<li><strong>Show Small Icons</strong> : Fairly decent visibility for buttons even when they are smal.</li>
<li><strong>Place Firebug and Web Developer buttons before search bar</strong> : Being a web developer these two plugins are my best friends. So, I have kept their button on the top bar.</li>
<li><strong>Hide Status bar</strong> : After placing Firebug in top bar I realized there is no need for a status bar. I only use it to access Firebug.</li>
<li><strong>Hide Web-Developer Toolbar</strong> : After placing Web Developer Icon in top bar I realized there is no need for a separate menu bar. I can always simple show/hide it on clicking this button.</li>
</ol>
<h4>Analysis</h4>
<p>I have reclaimed 75px from Firefox for my Web Pages. Initially webpage client area was 581px now it is 656px. </p>
<p>I really liked these changes in my browser. Hope you'll also like them.</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/beautiful-nag-screen-using-mootools-css3/' rel='bookmark' title='Permanent Link: Beautiful Nag Screen using Mootools &amp; CSS3'>Beautiful Nag Screen using Mootools &amp; CSS3</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/OwLT65UNR8s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/01/make-your-firefox-even-better-by-tweaking-its-looks/</feedburner:origLink></item>
		<item>
		<title>Drop Shadow in Images : No extra markup</title>
		<link>http://feedproxy.google.com/~r/TheCodeDreamer/~3/MxSy0QPQrQA/</link>
		<comments>http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:01:49 +0000</pubDate>
		<dc:creator>nitin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[shadow]]></category>

		<guid isPermaLink="false">http://www.nitinh.com/?p=367</guid>
		<description><![CDATA[
			tweetmeme_url = "http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/";
			tweetmeme_source = "nitinhayaran";
		
		var fbShare = {
		url: "http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/",
		size: "large",
		google_analytics: "true"
		}
		Drop Shadows adds extra glare to any design. They can be easily accomplished in any graphic editor, however its a little tricky in web programming. In this post I'll walk you through various ways in which you can add shadows to images without any extra [...]


Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/' rel='bookmark' title='Permanent Link: Sexy Tooltip using CSS3 (no images)'>Sexy Tooltip using CSS3 (no images)</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Beautiful Thumbnail Hover Effect : Using Mootools'>Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content"><div class="socialize-in-button"><script type="text/javascript">
			tweetmeme_url = "http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/";
			tweetmeme_source = "nitinhayaran";
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button"><script>var fbShare = {
		url: "http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/",
		size: "large",
		google_analytics: "true"
		}</script>
		<script src="http://widgets.fbshare.me/files/fbshare.js"></script></div></div><p><img class="alignleft" style="margin:0 10px 10px 0;" src="http://imgur.com/KYga8.jpg" alt="Image with shadow" width="150" height="149" />Drop Shadows adds extra glare to any design. They can be easily accomplished in any graphic editor, however its a little tricky in web programming. In this post I'll walk you through various ways in which you can add shadows to images without any extra markup used.<span id="more-367"></span><br />
In all cases i'll use the same HTML code for showing Image.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;thumbnail&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<h3>CSS 3</h3>
<p>In the latest <a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow">public working draft</a> we have a box-shadow property. This property can be used to draw a drop-shadow for a CSS box. </p>
<p>
<img style="padding:4px;border:1px solid #DDD;-moz-box-shadow: 5px 5px 7px #999;box-shadow: 5px 5px 7px #999;-webkit-box-shadow: 5px 5px 7px #999;" src="/static/Thumbnails/1_thumb.jpg" />
</p>
<p>The CSS for the above example is :</p>
<pre language="css">.thumbnail{
    padding:4px;
    border:1px solid #DDD;
    -moz-box-shadow: 5px 5px 7px #999;
    box-shadow: 5px 5px 7px #999;
    -webkit-box-shadow: 5px 5px 7px #999;
}</pre>
<p>Good naa !!!<br/><br />
But the problem with this implementation is that it doesn't work in IE. The Box Shadow property is supported by only :<br />
+ Firefox 3.5<br />
+ Safari (3.2.1)<br />
+ Google Chrome 2<br />
So its up to you whether you want to ignore IE users or not.</p>
<p>Now lets see other approach.</p>
<h3>Using Background Shadow Image</h3>
<p>In this approach we'll be using an extra image in background that will give shadow effect. This technique is also illustrated here "<a href="http://www.alistapart.com/articles/cssdropshadows/">CSS Drop Shadows</a>".<br />
<img style="width:250px;height:250px;padding:8px 13px 14px 10px;background:transparent url('/static/css-shadow/image-bg.png') no-repeat 0 0;border:0px;" src='/static/css-shadow/1.jpg' /><br />
In this case the CSS used is:</p>
<pre language="css">
.thumbnail{
    width:250px;
    height:250px;
    padding:4px 14px 14px 4px;
    background:transparent url('image-bg.png') no-repeat 0 0;
}
</pre>
<p>Some other implementations are </p>
<p><a target="_blank" class='button' href='/static/css-shadow/index1.html'>Demo 1</a></p>
<p><a target="_blank" class='button' href='/static/css-shadow/index.html'>Demo 2</a></p>
<p>Hope this article will give more ideas for similar implementation. </p>
<p>Happy Coding!!!!</p>


<p>Related posts:<ol><li><a href='http://www.nitinh.com/2010/03/sexy-tooltip-using-css3/' rel='bookmark' title='Permanent Link: Sexy Tooltip using CSS3 (no images)'>Sexy Tooltip using CSS3 (no images)</a></li>
<li><a href='http://www.nitinh.com/2009/11/another-beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Another Beautiful Thumbnail Hover Effect : Using Mootools'>Another Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
<li><a href='http://www.nitinh.com/2009/10/beautiful-thumbnail-hover-effect-using-mootools/' rel='bookmark' title='Permanent Link: Beautiful Thumbnail Hover Effect : Using Mootools'>Beautiful Thumbnail Hover Effect : Using Mootools</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/TheCodeDreamer/~4/MxSy0QPQrQA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nitinh.com/2010/01/drop-shadow-in-images-no-extra-markup/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.622 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-08-01 01:56:18 --><!-- Compression = gzip -->
