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

<channel>
	<title>Ștefan Nicolae &#187; javascript</title>
	<atom:link href="http://www.stefan-nicolae.ro/en/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stefan-nicolae.ro/en</link>
	<description>Just another unleashed web programmer</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:59:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery fader</title>
		<link>http://www.stefan-nicolae.ro/en/2010/06/jquery-fader/</link>
		<comments>http://www.stefan-nicolae.ro/en/2010/06/jquery-fader/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 08:47:31 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[The programmers' dilemas]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://shakabut.com/?p=157</guid>
		<description><![CDATA[My friend <a href="http://www.alexserban.ro/">Alex </a>needed a little image fading effect for his blog. As an example, he gave me a nice Earth Hour gallery (i think it was the <a href="http://www.boston.com/bigpicture/2010/03/earth_hour_2010.html">boston.com Earth Hour 2010 article</a>). The idea is to overlap 2 images and provide a fading effect when the visitor clicks them.  I'm sure there are hundreds of scripts that do the exact same thing, but I proffered to write the 10 lines of jQuery code myself. ]]></description>
			<content:encoded><![CDATA[<p>My friend <a href="http://www.alexserban.ro/">Alex </a>needed a little image fading effect for his blog. As an example, he gave me a nice Earth Hour gallery (i think it was the <a href="http://www.boston.com/bigpicture/2010/03/earth_hour_2010.html">boston.com Earth Hour 2010 article</a>). The idea is to overlap 2 images and provide a fading effect when the visitor clicks them.  I&#8217;m sure there are hundreds of scripts that do the exact same thing, but I proffered to write the 10 lines of jQuery code myself. </p>
<p>Here&#8217;s an example of the effect: <a href="http://shakabut.com/examples/jqueryFader/">http://shakabut.com/examples/jqueryFader/</a>.</p>
<p>This is the little piece of code:</p>
<div class="codesnip-container" >
<div class="css codesnip" style="font-family:monospace;">&lt;style type<span class="sy0">=</span><span class="st0">&quot;text/css&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp;.pictureFaderBox<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">margin</span><span class="sy0">:</span>0 <span class="kw2">auto</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">cursor</span><span class="sy0">:</span><span class="kw2">pointer</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">width</span><span class="sy0">:</span><span class="re3">640px</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">height</span><span class="sy0">:</span><span class="re3">427px</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">clear</span><span class="sy0">:</span><span class="kw2">both</span><span class="sy0">;</span><br />
&nbsp; &nbsp;<span class="br0">&#125;</span><br />
&nbsp; &nbsp;<span class="re1">.on</span><span class="sy0">,</span> .off<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">position</span><span class="sy0">:</span><span class="kw2">absolute</span><span class="sy0">;</span><br />
&nbsp; &nbsp;<span class="br0">&#125;</span><br />
&nbsp; &nbsp;.on<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">z-index</span><span class="sy0">:</span><span class="nu0">10</span><span class="sy0">;</span><br />
&nbsp; &nbsp;<span class="br0">&#125;</span><br />
&nbsp; &nbsp;.off<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">z-index</span><span class="sy0">:</span><span class="nu0">5</span><span class="sy0">;</span><br />
&nbsp; &nbsp;<span class="br0">&#125;</span><br />
&lt;/style<span class="sy0">&gt;</span><br />
&lt;script type<span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp;$<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.ready<span class="br0">&#40;</span>function<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;.pictureFaderBox .on&quot;</span><span class="br0">&#41;</span>.toggle<span class="br0">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function <span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span>this<span class="br0">&#41;</span>.animate<span class="br0">&#40;</span><span class="br0">&#123;</span>opacity<span class="sy0">:</span> 0<span class="br0">&#125;</span><span class="sy0">,</span> 900 <span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function <span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span>this<span class="br0">&#41;</span>.animate<span class="br0">&#40;</span><span class="br0">&#123;</span>opacity<span class="sy0">:</span> 1<span class="br0">&#125;</span><span class="sy0">,</span> 900 <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp;<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&lt;/script<span class="sy0">&gt;</span></div>
</div>
<p>Also, please check Alex&#8217;s post to see a great photo project: <a href="http://3punctefoto.blogspot.com/2010/06/pitestiul-urbanizat.html">http://3punctefoto.blogspot.com/2010/06/pitestiul-urbanizat.html</a>. The post is in Romanian, but the pictures are not <img src='http://www.stefan-nicolae.ro/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; don&#8217;t forget to click the images!</p>
<p>PS: If you like nice interface elements, check our <a href="http://www.way2web.ro">web agency website</a> and contact us. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefan-nicolae.ro/en/2010/06/jquery-fader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To my/our/your IE6 users</title>
		<link>http://www.stefan-nicolae.ro/en/2010/02/to-my-our-andyour-ie6-users/</link>
		<comments>http://www.stefan-nicolae.ro/en/2010/02/to-my-our-andyour-ie6-users/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 08:47:15 +0000</pubDate>
		<dc:creator>stefan</dc:creator>
				<category><![CDATA[The programmers' dilemas]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://shakabut.com/?p=61</guid>
		<description><![CDATA[I was thinking to write a script that prevents IE6- users to see the sites I&#8217;m developing a long time ago, but I never seemed to have the time. Fortunately a nice guy (I think his name is Mihai Ile) did, so he wrote this little script &#8220;that displays a warning message politely informing the user to upgrade the browser to a newer version (links to newest IE, Firefox, Opera, Safari, Chrome are provided)&#8221;. Thank [...]]]></description>
			<content:encoded><![CDATA[<p>I was thinking to write a script that prevents IE6- users to see the sites I&#8217;m developing a long time ago, but I never seemed to have the time.</p>
<p>Fortunately a nice guy (I think his name is Mihai Ile) did, so he wrote <a href="http://code.google.com/p/ie6-upgrade-warning/">this little script</a> <em>&#8220;that displays a warning message politely informing the user to upgrade the browser to a newer version (links to newest IE, Firefox, Opera, Safari, Chrome are provided)&#8221;</em>.</p>
<p>Thank you Mihai! Thank you in the name of all frustrated web developers, who spend their precious time downgrading their code to support IE6 or explaining their customers and visitors why it&#8217;s not a good idea to use a browser that was produced 9 years ago.</p>
<p>Also, thanks Mirel for the <a href="http://code.google.com/p/ie6-upgrade-warning/">link</a>!</p>
<p>Update: Smashing Magazine published <a href="http://www.smashingmagazine.com/2010/02/11/the-life-times-and-death-of-internet-explorer-6-comic-strip/" target="_blank">a nice  comic-book-like story about IE6</a>. You might wanna check that too&#8230;</p>
<p><a title="IE6 upgrade warining example" href="http://code.google.com/p/ie6-upgrade-warning/" target="_blank"><img src="http://ie6-upgrade-warning.googlecode.com/svn/trunk/example.png" alt="" width="560" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefan-nicolae.ro/en/2010/02/to-my-our-andyour-ie6-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

