<?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>cssgallery.info &#187; MooTools</title>
	<atom:link href="http://cssgallery.info/category/mootools/feed/" rel="self" type="application/rss+xml" />
	<link>http://cssgallery.info</link>
	<description>Resources for web developers</description>
	<lastBuildDate>Sun, 11 Jul 2010 16:19:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to make a glowing menu with MooTools in 3 easy steps</title>
		<link>http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/</link>
		<comments>http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 12:11:17 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[glowing menu]]></category>
		<category><![CDATA[how to make a menu]]></category>
		<category><![CDATA[javascript menu]]></category>
		<category><![CDATA[mootools tutorial]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=906</guid>
		<description><![CDATA[<h3>Ingredients:</h3> sprites, unorderdered lists, Mootools knowledge.
<h3>Cooking time:</h3> 1 hr
<h3>Result:</h3>
Can be seen on our website -  <a title="Rborn web development agency" href="http://rborn.info" target="_blank">Rborn Web development</a> -  mouse-over the top menu.
<img class="alignnone size-full wp-image-907" title="Rborn web development glowing menu" src="http://cssgallery.info/wp-content/uploads/2010/04/capture-13.png" alt="Rborn web development glowing menu" width="380" height="110" />]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-make-a-glowing-menu-with-mootools-in-3-easy-steps%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-make-a-glowing-menu-with-mootools-in-3-easy-steps%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Ingredients:</strong> sprites, unorderdered lists, Mootools knowledge.<br />
<strong>Cooking time:</strong> 1 hr<br />
<strong>Result:</strong><br />
Can be seen on our website &#8211;  <a title="Rborn web development agency" href="http://rborn.info" target="_blank">Rborn Web development</a> &#8211;  mouse-over the top menu.<br />
<img class="alignnone size-full wp-image-907" title="Rborn web development glowing menu" src="http://cssgallery.info/wp-content/uploads/2010/04/capture-13.png" alt="Rborn web development glowing menu" width="380" height="110" /></p>
<h2>Preparation of the Mootools glowing menu</h2>
<p>The menu is a list containing an <strong>A</strong> tag for each menu item. We are using <em>sprites</em> and <em>text-indent:-5000px</em> for accessibility purposes. <strong>The trick</strong> is that we use the image <strong>positioned top for LI</strong> and <strong>bottom for A HREF</strong></p>
<p><img class="alignnone size-full wp-image-908" title="menu sprite" src="http://cssgallery.info/wp-content/uploads/2010/04/capture-23.png" alt="" width="83" height="151" /></p>
<h2>Step 1: cook the HTML code</h2>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;mainnav&quot;&gt;
&lt;li&gt;&lt;a href=&quot;/&quot;&gt;home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;products&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;portfolio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/blog/&quot;&gt;news&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<h2>Step 2: add the CSS code</h2>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.home</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;../img/home.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
li<span style="color: #6666ff;">.home</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">29px</span><span style="color: #00AA00;">;</span>background<span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;../img/home.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This is the positioning of the background image I was talking about earlier.<br />
Now the magic of the glowing is made with few lines of code using MooTools.</p>
<h2>Step 3: spice with MooTools code</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'mainnav'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</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: #000066; font-weight: bold;">item</span><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> <span style="color: #339933;">!</span><span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'clicked'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'opacity'</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0.01</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'mouseenter'</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>        
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">fade</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'mouseleave'</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><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">fade</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0.01</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;">&#41;</span></pre></div></div>

<p>The code is triggered either on <strong>domready</strong> event, or put inside a <strong>script</strong> tag just before the body ends  so have the dom loaded and ready to be accessed by javascript.</p>
<p>Basically all we are doing is to get all the <strong>A</strong> tags inside the menu, set the opacity to <strong>0.01</strong> because if you set it to <strong>0</strong> MooTools will add <strong>display:none</strong> to the style and the links won&#8217;t be visible anymore.</p>
<p>Further we play with the <strong>fade</strong> method to increase the <strong>opacity</strong> to <strong>1</strong> or decrease back to <strong>0.01</strong> on the <strong>mouseenter</strong> and <strong>mouseleave</strong> event.</p>
<p>We also check if the menu is active or not &#8211; we are on the menu  page or not &#8211;  verifying if the item has a <strong>class &#8216;clicked&#8217;</strong>, set by the backend. If the item contains this class  we simply leave it alone and the item is <strong>&#8216;on&#8217;</strong> all the time.</p>
<p>That&#8217;s it. Let me know your thoughts.</p>
<p><strong class="spanish">Check the Spanish version of this post:<br />
<a href="http://nosoloweb.es/como-hacer-menu-brillante-mootools/" rel="me">Cómo hacer un menú brillante con MooTools en 3 pasos</a></strong></p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps&amp;description=Ingredients%3A%20sprites%2C%20unorderdered%20lists%2C%20Mootools%20knowledge.%0D%0ACooking%20time%3A%201%20hr%0D%0AResult%3A%0D%0ACan%20be%20seen%20on%20our%20website%20-%20%20Rborn%20Web%20development%20-%20%20mouse-over%20the%20top%20menu.%0D%0A" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;t=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;title=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps&amp;srcUrl=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/&amp;srcTitle=How+to+make+a+glowing+menu+with+MooTools+in+3+easy+steps&amp;snippet=Ingredients%3A%20sprites%2C%20unorderdered%20lists%2C%20Mootools%20knowledge.%0D%0ACooking%20time%3A%201%20hr%0D%0AResult%3A%0D%0ACan%20be%20seen%20on%20our%20website%20-%20%20Rborn%20Web%20development%20-%20%20mouse-over%20the%20top%20menu.%0D%0A" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/how-to-make-a-glowing-menu-with-mootools-in-3-easy-steps/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Website of the day: Floom</title>
		<link>http://cssgallery.info/website-of-the-day-floom/</link>
		<comments>http://cssgallery.info/website-of-the-day-floom/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:08:11 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Website of the day]]></category>
		<category><![CDATA[floom]]></category>
		<category><![CDATA[mootools gallery]]></category>
		<category><![CDATA[mootools script]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=696</guid>
		<description><![CDATA[Well, is not actually the site but the script behind.

Floom is a beautiful MooTools plugin, that takes a collection of images and creates a blinds-effect slideshow.

The  demo is simply outstanding, so that's why this is the today's website.
More info, specs and docs on the developer's site]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fwebsite-of-the-day-floom%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fwebsite-of-the-day-floom%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, is not actually the site but the script behind.</p>
<p>Floom is a beautiful MooTools plugin, that takes a collection of images and creates a blinds-effect slideshow.</p>
<p>The  <a href="http://nouincolor.com/floom/1.0/Demos/">demo</a> is simply outstanding, so that&#8217;s why this is the today&#8217;s website.</p>
<p><img class="alignnone size-full wp-image-697" title="capture-4" src="http://cssgallery.info/wp-content/uploads/2009/10/capture-44.png" alt="capture-4" width="450" height="243" /></p>
<p>More info, specs and docs on the developer&#8217;s site: <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre-wrap;"><a href="http://blog.olicio.us/2009/07/25/floom/">Oskar Krawczyk</a>.</span></p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom&amp;description=Well%2C%20is%20not%20actually%20the%20site%20but%20the%20script%20behind.%0D%0A%0D%0AFloom%20is%20a%20beautiful%20MooTools%20plugin%2C%20that%20takes%20a%20collection%20of%20images%20and%20creates%20a%20blinds-effect%20slideshow.%0D%0A%0D%0AThe%20%20demo%20is%20simply%20outstanding%2C%20so%20that%27s%20why%20this%20is%20the%20today%27s%20website.%0D%0AMore%20info%2C%20specs%20and%20docs%20on%20the%20developer%27s%20site" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/website-of-the-day-floom/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/website-of-the-day-floom/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/website-of-the-day-floom/&amp;t=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/website-of-the-day-floom/&amp;title=Website+of+the+day%3A+Floom&amp;srcUrl=http://cssgallery.info/website-of-the-day-floom/&amp;srcTitle=Website+of+the+day%3A+Floom&amp;snippet=Well%2C%20is%20not%20actually%20the%20site%20but%20the%20script%20behind.%0D%0A%0D%0AFloom%20is%20a%20beautiful%20MooTools%20plugin%2C%20that%20takes%20a%20collection%20of%20images%20and%20creates%20a%20blinds-effect%20slideshow.%0D%0A%0D%0AThe%20%20demo%20is%20simply%20outstanding%2C%20so%20that%27s%20why%20this%20is%20the%20today%27s%20website.%0D%0AMore%20info%2C%20specs%20and%20docs%20on%20the%20developer%27s%20site" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/website-of-the-day-floom/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/website-of-the-day-floom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clientside validation for accessible forms with mootools</title>
		<link>http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/</link>
		<comments>http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:11:27 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[accessible forms]]></category>
		<category><![CDATA[class required]]></category>
		<category><![CDATA[clientside validation]]></category>
		<category><![CDATA[form validator class]]></category>
		<category><![CDATA[mootools validation]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=421</guid>
		<description><![CDATA[Validate forms client side with MooTools.]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fclientside-validation-for-accessible-forms-with-mootools%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fclientside-validation-for-accessible-forms-with-mootools%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>As we discussed in a previous article about forms -<a title="Basic copy-paste accessible contact form" rel="bookmark" href="http://cssgallery.info/basic-copy-paste-accessible-contact-form/">Basic copy-paste accessible contact form</a> -  we made the form validation accessible using a class that will highlight and point to the elements that need to be filled or corrected in case the validation failed.</p>
<p>Now, the only weak point form the user&#8217;s point of view is the fact that we need to refresh the page every time he hits submit, this being somehow annoying. Nowadays most browsers offer a client-side processing capabilities ( javascript ) that can be used for local validation &#8211; avoiding the refresh of the page.</p>
<p>Don&#8217;t get me wrong. The server side part needs to remain intact for accessibility purposes. </p>
<p>The last MooTools version offers a validation plugin in the mootools-more package, that will help us to solve our task. Basicaly we need to add some classes to out inputs, to reflect the type of validation we want. For our form, we need only name &#8211; mandatory, and email &#8211;  mandatory + correct email formating.</p>
<p>So we&#8217;ll use <strong>required</strong> and <strong>validate-email</strong> from the <a title="Mootools validators" href="http://mootools.net/docs/more/Forms/FormValidator#Validators" target="_blank">list of the validators</a> already included, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;label for=&quot;name&quot;&gt; Name &lt;span&gt; (required) &lt;/span&gt;&lt;/label&gt;
&lt;input  tabindex=&quot;1&quot; type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot; class=&quot;required&quot; /&gt;
&lt;label for=&quot;mail&quot;&gt; Email &lt;span&gt; (required)&lt;/span&gt;&lt;/label&gt;
&lt;input  tabindex=&quot;2&quot; type=&quot;text&quot; name=&quot;mail&quot; id=&quot;mail&quot; class=&quot;validate-email required&quot; /&gt;</pre></div></div>

<h2>The next step is to create the code that does the validation:</h2>
<p>On the <strong>domready</strong> event of the window (we need to allow the html to load and therefore to be able to access it)  we attach the validator to our form with the methods needed to show the user what he did wrong (in case he did it). To keep the presentation and the accessibility intact &#8211; as in the back-end validation &#8211; we  will add the next code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">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>
	<span style="color: #003366; font-weight: bold;">var</span> myFormValidator <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> FormValidator<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'contact'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
		onFormValidate<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>ok<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'error_wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dispose</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>ok<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'contact'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElements</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.validation-failed'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Element<span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'href'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;#add&quot;</span><span style="color: #009900;">&#125;</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><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> el.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
                            .<span style="color: #660066;">set</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'text'</span><span style="color: #339933;">,</span> el.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">capitalize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
                            .<span style="color: #660066;">inject</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'error_wrapper'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
&nbsp;
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'error_wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'block'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'error_wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'none'</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: #339933;">,</span>
		stopOnFailure<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		evaluateFieldsOnBlur<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</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></pre></div></div>

<p>Ok, it&#8217;s a little long but basically it&#8217;s validating each field it needs to, as specified in the class, and  attach in the error_wrapper the labels to the erroneous inputs.  It&#8217;s better  to study the code and see exactly how it&#8217;s done.</p>
<p><strong>Now, what is happening?</strong></p>
<p>The MooTools library is validating each field we specified on the <strong>submit event</strong> of the form and adds by default a class <strong>validation-failed</strong> or <strong>validation-passed</strong> to each field that was submitted to the validation routine.</p>
<p>We can use these two classes to visually improve the form &#8211;  here I just made the faulty ones red. If the validation failed the <strong>submit event</strong> of the form is stopped  and the incomplete data is not reaching the server.</p>
<p><strong>Next step:</strong> to complete the correct data, and resubmit.</p>
<p><a href="http://cssgallery.info/wp-content/accessible-contact-form/index_mootools_validation.php">Here is the DEMO</a></p>
<p>The form validator class is more powerful than this so take a look at the documentation on the MooTools site.<br />
Anyway, no matter what you do, <strong>do not forget</strong> to make the server side validation too. It is mandatory for your (server&#8217;s ) security.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools&amp;description=Validate%20forms%20client%20side%20with%20MooTools." rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;t=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;title=Clientside+validation+for+accessible+forms+with+mootools&amp;srcUrl=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/&amp;srcTitle=Clientside+validation+for+accessible+forms+with+mootools&amp;snippet=Validate%20forms%20client%20side%20with%20MooTools." rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/clientside-validation-for-accessible-forms-with-mootools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mootools with touch events</title>
		<link>http://cssgallery.info/mootools-with-touch-events/</link>
		<comments>http://cssgallery.info/mootools-with-touch-events/#comments</comments>
		<pubDate>Tue, 05 May 2009 11:55:48 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Mobile web]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Element class]]></category>
		<category><![CDATA[mootools iphone events]]></category>
		<category><![CDATA[touch events]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=379</guid>
		<description><![CDATA[I am so used with MooTools as I started to forgot the basic Javascript and more, I started to dislike a lot to write code in pure js. But MooTools lacks the touch events ipod and iphone has. So I wrote a small code that adds the touchevents &#8211;  well, touch, gesture, animation and transform [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fmootools-with-touch-events%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fmootools-with-touch-events%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I am so used with MooTools as I started to forgot the basic Javascript  and more, I started to dislike a lot to write code in pure js. But MooTools lacks the touch events ipod and iphone has. So I wrote a small code that adds the touchevents &#8211;  well, touch, gesture, animation and transform &#8211;  to the Element class.</p>
<p>This will only  help you to add and remove the touch events the MooTools way, you still need to use e.preventDefault() as e.stop() is not working  and to detect touches by yourself. But at least you can use addEvent and removeEvent.</p>
<p>I am sure it can be improved, so If you have any ideas, just let me know.</p>
<p>Oh, yes, the code is here: <a href="http://cssgallery.info/wp-content/mootouch.js" target="_blank">mootouch.js</a></p>
<p><strong class="spanish">Check the Spanish version of this post:<br />
<a href="http://nosoloweb.es/motools-con-eventos-de-toque/" rel="me">Motools con eventos de toque</a></strong></p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events&amp;description=I%20am%20so%20used%20with%20MooTools%20as%20I%20started%20to%20forgot%20the%20basic%20Javascript%20%20and%20more%2C%20I%20started%20to%20dislike%20a%20lot%20to%20write%20code%20in%20pure%20js.%20But%20MooTools%20lacks%20the%20touch%20events%20ipod%20and%20iphone%20has.%20So%20I%20wrote%20a%20small%20code%20that%20adds%20the%20touchevents%20-%20%C2%A0well%2C%20touch%2C%20gesture%2C%20animation%20and%20transform%20-%20%C2%A0to%20t" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/mootools-with-touch-events/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/mootools-with-touch-events/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/mootools-with-touch-events/&amp;t=Mootools+with+touch+events" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/mootools-with-touch-events/&amp;title=Mootools+with+touch+events&amp;srcUrl=http://cssgallery.info/mootools-with-touch-events/&amp;srcTitle=Mootools+with+touch+events&amp;snippet=I%20am%20so%20used%20with%20MooTools%20as%20I%20started%20to%20forgot%20the%20basic%20Javascript%20%20and%20more%2C%20I%20started%20to%20dislike%20a%20lot%20to%20write%20code%20in%20pure%20js.%20But%20MooTools%20lacks%20the%20touch%20events%20ipod%20and%20iphone%20has.%20So%20I%20wrote%20a%20small%20code%20that%20adds%20the%20touchevents%20-%20%C2%A0well%2C%20touch%2C%20gesture%2C%20animation%20and%20transform%20-%20%C2%A0to%20t" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/mootools-with-touch-events/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/mootools-with-touch-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools &#8211; browser sniffing</title>
		<link>http://cssgallery.info/mootools-browser-sniffing/</link>
		<comments>http://cssgallery.info/mootools-browser-sniffing/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 17:12:54 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[browser sniff]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[function $]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=344</guid>
		<description><![CDATA[I know, I know, browser sniffing is a bad habit and it should not be used, but still, there are cases when you will want to display a message to the user (ordinary users, that don&#8217;t hack their&#8217;s browser navigator.userAgent) or you really need to know what browser is he using. For example Chrome. It&#8217;ss [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fmootools-browser-sniffing%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fmootools-browser-sniffing%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I know, I know, browser sniffing is a bad habit and it should not be used, but still, there are cases when you will want to display a message to the user (ordinary users, that don&#8217;t hack their&#8217;s browser navigator.userAgent)  or you really need to know what browser is he using.</p>
<p>For example Chrome. It&#8217;ss ok, is using webkit, but it&#8217;s not webkit&#8230; transparent png, with opacity set lower then 1 will look just awful in  Chrome.</p>
<p>So I wrote a simple function, &#8220;stealing&#8221; some code from <a href="http://www.quirksmode.org/js/detect.html" target="_blank">PPK.</a></p>
<p>Include <a href="http://cssgallery.info/wp-content/browser_sniff.js" target="_blank">the script</a> in your pages, and it will give you 2 more variables in Browser. Engine:</p>
<p>Browser.Engine.browserName</p>
<p>Browser.Engine.browserVersion</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing&amp;description=I%20know%2C%20I%20know%2C%20browser%20sniffing%20is%20a%20bad%20habit%20and%20it%20should%20not%20be%20used%2C%20but%20still%2C%20there%20are%20cases%20when%20you%20will%20want%20to%20display%20a%20message%20to%20the%20user%20%28ordinary%20users%2C%20that%20don%27t%20hack%20their%27s%20browser%20navigator.userAgent%29%20%20or%20you%20really%20need%20to%20know%20what%20browser%20is%20he%20using.%0D%0A%0D%0AFor%20example%20Chrome." rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/mootools-browser-sniffing/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/mootools-browser-sniffing/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/mootools-browser-sniffing/&amp;t=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/mootools-browser-sniffing/&amp;title=Mootools+-+browser+sniffing&amp;srcUrl=http://cssgallery.info/mootools-browser-sniffing/&amp;srcTitle=Mootools+-+browser+sniffing&amp;snippet=I%20know%2C%20I%20know%2C%20browser%20sniffing%20is%20a%20bad%20habit%20and%20it%20should%20not%20be%20used%2C%20but%20still%2C%20there%20are%20cases%20when%20you%20will%20want%20to%20display%20a%20message%20to%20the%20user%20%28ordinary%20users%2C%20that%20don%27t%20hack%20their%27s%20browser%20navigator.userAgent%29%20%20or%20you%20really%20need%20to%20know%20what%20browser%20is%20he%20using.%0D%0A%0D%0AFor%20example%20Chrome." rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/mootools-browser-sniffing/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/mootools-browser-sniffing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>testing mootools apps using rhino shell</title>
		<link>http://cssgallery.info/testing-mootools-apps-using-rhino-shell/</link>
		<comments>http://cssgallery.info/testing-mootools-apps-using-rhino-shell/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 13:53:25 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Development tools]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[javascript shell]]></category>
		<category><![CDATA[rhino]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=257</guid>
		<description><![CDATA[As the guys from Mozilla say &#8220;The JavaScript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.&#8221; So basically you can create some tests for you app based on javascript without needing a browser, but using rhino. With Mootools is a little complicated, as it needs [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Ftesting-mootools-apps-using-rhino-shell%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Ftesting-mootools-apps-using-rhino-shell%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>As the guys from Mozilla say &#8220;The JavaScript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.&#8221;</p>
<p>So basically you can create some tests for you app based on javascript  without needing a browser, but using rhino.<br />
With Mootools is a little complicated, as it needs a browser environment to run, and rhino does not provide this.<br />
The solution for this is to simulate a browser.</p>
<p>A great work in this direction is made by John Resig, the guy behind jQuery, <a href="http://ejohn.org/blog/bringing-the-browser-to-the-server/">here</a>. Only that you will need to modify a little the script, to work with Mootools.</p>
<p>Add the following lines at the very end of the env.js script</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> document <span style="color: #339933;">=</span>  window.<span style="color: #660066;">document</span><span style="color: #339933;">;</span>
window.<span style="color: #660066;">Element</span> <span style="color: #339933;">=</span> window.<span style="color: #660066;">DOMElement</span><span style="color: #339933;">;</span>
window.<span style="color: #660066;">navigator</span>.<span style="color: #660066;">platform</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;MacPPC&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>window.navigator.platform can be any platform, I used this to reflect my own platform.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell&amp;description=As%20the%20guys%20from%20Mozilla%20say%20%22The%20JavaScript%20shell%20provides%20a%20simple%20way%20to%20run%20scripts%20in%20batch%20mode%20or%20an%20interactive%20environment%20for%20exploratory%20programming.%22%0D%0A%0D%0ASo%20basically%20you%20can%20create%20some%20tests%20for%20you%20app%20based%20on%20javascript%20%20without%20needing%20a%20browser%2C%20but%20using%20rhino.%0D%0AWith%20Mootools%20is%20a" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;t=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;title=testing+mootools+apps+using+rhino+shell&amp;srcUrl=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/&amp;srcTitle=testing+mootools+apps+using+rhino+shell&amp;snippet=As%20the%20guys%20from%20Mozilla%20say%20%22The%20JavaScript%20shell%20provides%20a%20simple%20way%20to%20run%20scripts%20in%20batch%20mode%20or%20an%20interactive%20environment%20for%20exploratory%20programming.%22%0D%0A%0D%0ASo%20basically%20you%20can%20create%20some%20tests%20for%20you%20app%20based%20on%20javascript%20%20without%20needing%20a%20browser%2C%20but%20using%20rhino.%0D%0AWith%20Mootools%20is%20a" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/testing-mootools-apps-using-rhino-shell/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/testing-mootools-apps-using-rhino-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools &#8216;ajax&#8217; request for local files</title>
		<link>http://cssgallery.info/mootools-ajax-request-for-local-files/</link>
		<comments>http://cssgallery.info/mootools-ajax-request-for-local-files/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 18:40:27 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[local file request]]></category>
		<category><![CDATA[xmlhttprequest]]></category>

		<guid isPermaLink="false">http://cssgallery.info/mootools-ajax-request-for-local-files/</guid>
		<description><![CDATA[Mootools 'ajax' request for local files or how to make ajax requests to a local file without the need of a web server.]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fmootools-ajax-request-for-local-files%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fmootools-ajax-request-for-local-files%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, ok, I know it&#8217;s a contradiction in terms, but this is a problem encountered by a lot of newbies, and sometimes a feature like this would be useful to be able to copy the whole js into a local folder, and run it form here, without being forced to start a web server on the local machine.</p>
<p>How can this be accomplished without too much hassle or code change?</p>
<p>I created a function that tests the protocol used by the browser, and decides how to load the requested file, with <strong>xmlhttprequest</strong> or <strong>iframe</strong>.</p>
<p>Please be warned that this is just an exercise, and not a final solution. It can be improved and it should be <img src='http://cssgallery.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The example is <a href="http://cssgallery.info/wp-content/local_ajax_request.html">here</a>.<br />
Obviously this will use the xmlhttprequest, but if you download <a href="http://cssgallery.info/wp-content/local_ajax_request.zip">this zip</a>, and unzip it in a local folder, you will see working the iframe method.</p>
<p>The code is below:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #003366; font-weight: bold;">function</span> get_content<span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span>update<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> document.<span style="color: #660066;">location</span>.<span style="color: #660066;">protocol</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;file:&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #006600; font-style: italic;">// console.log('local');</span>
						<span style="color: #003366; font-weight: bold;">var</span> ifr <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> IFrame<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
							src<span style="color: #339933;">:</span>url<span style="color: #339933;">,</span>
							events<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
								load<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>update<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">set</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'html'</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">contentWindow</span>.<span style="color: #660066;">document</span>.<span style="color: #660066;">body</span>.<span style="color: #660066;">innerHTML</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;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">inject</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #006600; font-style: italic;">// console.log('server');</span>
						<span style="color: #003366; font-weight: bold;">var</span> myHTMLRequest <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Request.<span style="color: #660066;">HTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
							update<span style="color: #339933;">:</span>update<span style="color: #339933;">,</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span>url<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Let me know your thoughts.</p>
<blockquote>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files&amp;description=Mootools%20%27ajax%27%20request%20for%20local%20files%20or%20how%20to%20make%20ajax%20requests%20to%20a%20local%20file%20without%20the%20need%20of%20a%20web%20server." rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/mootools-ajax-request-for-local-files/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;t=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;title=Mootools+%27ajax%27+request+for+local+files&amp;srcUrl=http://cssgallery.info/mootools-ajax-request-for-local-files/&amp;srcTitle=Mootools+%27ajax%27+request+for+local+files&amp;snippet=Mootools%20%27ajax%27%20request%20for%20local%20files%20or%20how%20to%20make%20ajax%20requests%20to%20a%20local%20file%20without%20the%20need%20of%20a%20web%20server." rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/mootools-ajax-request-for-local-files/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/mootools-ajax-request-for-local-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mootools off-line documentation</title>
		<link>http://cssgallery.info/mootools-off-line-documentation/</link>
		<comments>http://cssgallery.info/mootools-off-line-documentation/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 10:02:50 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[mootools documentation]]></category>

		<guid isPermaLink="false">http://cssgallery.info/mootools-off-line-documentation/</guid>
		<description><![CDATA[Here we have documentation for both versions of mootools: 1.11 and 1.2 as chm files and cheatsheets. Cheatsheets are from http://mediavrog.net, but chm files I don&#8217;t know where are from, so if you know the author please let me know so I can link to his page here. The chm files can be opened in [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fmootools-off-line-documentation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fmootools-off-line-documentation%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-5.png" title="mootools documentation"><img src="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-5.png" alt="mootools documentation" /></a></p>
<p>Here we have documentation for both versions of mootools: 1.11 and 1.2  as chm files  and cheatsheets.</p>
<p>Cheatsheets are from <a href="http://mediavrog.net" target="_blank">http://mediavrog.net,</a> but chm files I don&#8217;t know where are from, so if you know the author  please let me know so I can link to his page here.</p>
<p>The chm files can be opened in linux with Kchmviewer.</p>
<p><a href="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-6.png" title="kchmviewer"><img src="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-6.png" alt="kchmviewer" /></a></p>
<p>and in os x with Chmox.</p>
<p><a href="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-7.png" title="chmox"><img src="http://67.220.197.3/~cssgalle/wp-content/uploads/2008/08/capture-7.png" alt="chmox" height="247" width="496" /></a></p>
<p><a href="http://cssgallery.info/wp-content/mootools_documentation.zip" title="mootools documentation">DOWNLOAD</a> the motools documentation.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation&amp;description=%0D%0A%0D%0AHere%20we%20have%20documentation%20for%20both%20versions%20of%20mootools%3A%201.11%20and%201.2%20%20as%20chm%20files%20%20and%20cheatsheets.%0D%0A%0D%0ACheatsheets%20are%20from%20http%3A%2F%2Fmediavrog.net%2C%20but%20chm%20files%20I%20don%27t%20know%20where%20are%20from%2C%20so%20if%20you%20know%20the%20author%20%20please%20let%20me%20know%20so%20I%20can%20link%20to%20his%20page%20here.%0D%0A%0D%0AThe%20chm%20files%20can%20be%20op" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/mootools-off-line-documentation/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/mootools-off-line-documentation/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/mootools-off-line-documentation/&amp;t=Mootools+off-line+documentation" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/mootools-off-line-documentation/&amp;title=Mootools+off-line+documentation&amp;srcUrl=http://cssgallery.info/mootools-off-line-documentation/&amp;srcTitle=Mootools+off-line+documentation&amp;snippet=%0D%0A%0D%0AHere%20we%20have%20documentation%20for%20both%20versions%20of%20mootools%3A%201.11%20and%201.2%20%20as%20chm%20files%20%20and%20cheatsheets.%0D%0A%0D%0ACheatsheets%20are%20from%20http%3A%2F%2Fmediavrog.net%2C%20but%20chm%20files%20I%20don%27t%20know%20where%20are%20from%2C%20so%20if%20you%20know%20the%20author%20%20please%20let%20me%20know%20so%20I%20can%20link%20to%20his%20page%20here.%0D%0A%0D%0AThe%20chm%20files%20can%20be%20op" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/mootools-off-line-documentation/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/mootools-off-line-documentation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to create a product viewer using mooZoom</title>
		<link>http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/</link>
		<comments>http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 15:27:00 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[free zooming scipt]]></category>
		<category><![CDATA[javascript zoom image]]></category>
		<category><![CDATA[mooZoom]]></category>
		<category><![CDATA[scroll zoom]]></category>
		<category><![CDATA[zoom gallery]]></category>

		<guid isPermaLink="false">http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/</guid>
		<description><![CDATA[There are moments when we need to show a zoomed image of a product (or something else) that requires to be as much as user friendly as possible. An example is e-commerce sites that use high quality images for high impact over the client&#8217;s mind (jewelery for example). In this case zooming a particular point [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-create-a-product-viewer-using-moozoom%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-create-a-product-viewer-using-moozoom%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>There are moments when we need to show a zoomed image of a product (or something else)  that requires to be as much as user friendly as possible. An example is e-commerce sites that use  high quality images for high impact over the client&#8217;s mind (jewelery for example).</p>
<p>In this case zooming a particular point (but arbitrary chosen by visitor/client) would be very useful,  but without forcing it to leave the page or hide some page controls &#8211;  maybe buy button <img src='http://cssgallery.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211;  like a &#8220;lightbox&#8221; script would do.</p>
<h2>So we created <strong>mooZoom</strong>.</h2>
<p><img src="http://cssgallery.info/wp-content/uploads/2008/07/capture-6.png" alt="mooZoom - a mootools class for zooming images" /> </p>
<p>mooZoom is unobtrusive and allows a visitor to zoom an image in a very friendly way &#8211; just scroll the mouse in a desired point.</p>
<p>The image will zoom in/zoom out  depending on the direction of the wheel.  In a zoomed stage a simple drag will reveal the hidden part of the image.</p>
<p>The  setup is ultra easy &#8211; you just need to add  <strong>class=&#8217;moozoom&#8217; </strong> to the zoomable images and give at least one dimension &#8211;  width or height.</p>
<p>something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;img class=&quot;moozoom&quot; src=&quot;flower.jpg&quot; alt=&quot;mooZoom&quot; style=&quot;width:200px;&quot;&gt;</pre></div></div>

<p>and mooZoom will take care of the rest. You will  also need  mootools v1.2 </p>
<p>We setup here a small <a href="http://www.rborn.info/blog/moozoom/" title="moozoom demo page" target="_blank">demo</a>, making a nice frame for a virtual product presentation.</p>
<p>There is always room for improvements  so if you have any suggestion  or found a bug  don&#8217;t hesitate to comment here.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom&amp;description=There%20are%20moments%20when%20we%20need%20to%20show%20a%20zoomed%20image%20of%20a%20product%20%28or%20something%20else%29%20%20that%20requires%20to%20be%20as%20much%20as%20user%20friendly%20as%20possible.%20An%20example%20is%20e-commerce%20sites%20that%20use%20%20high%20quality%20images%20for%20high%20impact%20over%20the%20client%27s%20mind%20%28jewelery%20for%20example%29.%0D%0A%0D%0AIn%20this%20case%20zooming%20a%20part" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;t=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;title=How+to+create+a+product+viewer+using+mooZoom&amp;srcUrl=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/&amp;srcTitle=How+to+create+a+product+viewer+using+mooZoom&amp;snippet=There%20are%20moments%20when%20we%20need%20to%20show%20a%20zoomed%20image%20of%20a%20product%20%28or%20something%20else%29%20%20that%20requires%20to%20be%20as%20much%20as%20user%20friendly%20as%20possible.%20An%20example%20is%20e-commerce%20sites%20that%20use%20%20high%20quality%20images%20for%20high%20impact%20over%20the%20client%27s%20mind%20%28jewelery%20for%20example%29.%0D%0A%0D%0AIn%20this%20case%20zooming%20a%20part" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/how-to-create-a-product-viewer-using-moozoom/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create window-like element with mootools</title>
		<link>http://cssgallery.info/create-window-like-element-with-mootools/</link>
		<comments>http://cssgallery.info/create-window-like-element-with-mootools/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 23:53:01 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[build windlow element]]></category>
		<category><![CDATA[domready]]></category>
		<category><![CDATA[drag]]></category>
		<category><![CDATA[draggable]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[mootools window like element]]></category>
		<category><![CDATA[resizer]]></category>
		<category><![CDATA[topbar]]></category>

		<guid isPermaLink="false">http://cssgallery.info/create-window-like-element-with-mootools/</guid>
		<description><![CDATA[We continue our series related to mootools with a tutorial that shows us how to build a window-like element on our page that can be resized and moved. Based on previous tutorials we will will create first the html and apply some js code to it in order to obtain what we want. This tutorial [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fcreate-window-like-element-with-mootools%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fcreate-window-like-element-with-mootools%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>We continue our series related to mootools with a tutorial that shows us how to build a window-like element on our page  that can be resized and moved. Based on previous tutorials  we will will create first the html and apply some js code to it in order to obtain what we want. This tutorial is a simple one, so will cover only the basics to help a beginner to understand easier. A future tutorial will show, based on this, ho to create a class for windows.</p>
<p>So, for the beginning we need to set the html. We need next elements:</p>
<p>the &#8216;<strong>window</strong>&#8216; div = the window itslef;</p>
<p>the &#8216;<strong>topbar</strong>&#8216; &#8211;  the window&#8217;s topbar, that will be used to move the window and to hold the title;</p>
<p>the &#8216;<strong>resizer</strong>&#8216; &#8211; the element that will resize the window.</p>
<p>It look something like his:</p>
<p><img src="http://cssgallery.info/wp-content/uploads/2008/06/capture-1.png" alt="window like element made with mootools" /> </p>
<p>Ok, we&#8217;ll give some ids to the elements: &#8220;win&#8221; for window, &#8220;topbar&#8221; for topbar, &#8220;resizer&#8221;  for resizer &#8211; pretty straight  <img src='http://cssgallery.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>the html code will be something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;win&quot;&gt; 
   &lt;div id=&quot;topbar&quot;&gt;window title&lt;/div&gt; 
   &lt;div id=&quot;resizer&quot;&gt;&lt;/div&gt;
   content 
&lt;/div&gt;</pre></div></div>

<p>We won&#8217;t cover here the CSS part, please look at the <a href="http://cssgallery.info/wp-content/mootools_window_like_element.html" title="Mootools window like element" target="_blank">demo</a> for a basic style.</p>
<p>Then on event domready  we set &#8220;win&#8221; to be draggable with handle set to &#8220;topbar&#8221;, set to be resizable, with handle &#8220;resizer&#8221;, and put some limits on resize, using &#8220;limit&#8221; property. This way we avoid some bad behaviour  like minimize too much the window.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">document.<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>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'win'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">makeDraggable</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'handle'</span><span style="color: #339933;">:</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'topbar'</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;">&#40;</span><span style="color: #3366CC;">'win'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">makeResizable</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> 
 		<span style="color: #3366CC;">'handle'</span><span style="color: #339933;">:</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'resizer'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> 
 		<span style="color: #3366CC;">'limit'</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'x'</span><span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">220</span><span style="color: #339933;">,</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'y'</span><span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">120</span><span style="color: #339933;">,</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</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>Well, that is all. Pretty easy and nice, isn&#8217;t it?</p>
<p>Here is the  <a href="http://cssgallery.info/wp-content/mootools_window_like_element.html" title="Mootools window like element" target="_blank">demo.</a></p>
<p>This is done with MooTools V1.11. A later tutorial will explain how to do this with V1.2. Let me know your thoughts or questions.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools&amp;description=We%20continue%20our%20series%20related%20to%20mootools%20with%20a%20tutorial%20that%20shows%20us%20how%20to%20build%20a%20window-like%20element%20on%20our%20page%20%20that%20can%20be%20resized%20and%20moved.%20Based%20on%20previous%20tutorials%20%20we%20will%20will%20create%20first%20the%20html%20and%20apply%20some%20js%20code%20to%20it%20in%20order%20to%20obtain%20what%20we%20want.%20This%20tutorial%20is%20a%20sim" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/create-window-like-element-with-mootools/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/create-window-like-element-with-mootools/&amp;t=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/create-window-like-element-with-mootools/&amp;title=Create+window-like+element+with+mootools&amp;srcUrl=http://cssgallery.info/create-window-like-element-with-mootools/&amp;srcTitle=Create+window-like+element+with+mootools&amp;snippet=We%20continue%20our%20series%20related%20to%20mootools%20with%20a%20tutorial%20that%20shows%20us%20how%20to%20build%20a%20window-like%20element%20on%20our%20page%20%20that%20can%20be%20resized%20and%20moved.%20Based%20on%20previous%20tutorials%20%20we%20will%20will%20create%20first%20the%20html%20and%20apply%20some%20js%20code%20to%20it%20in%20order%20to%20obtain%20what%20we%20want.%20This%20tutorial%20is%20a%20sim" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/create-window-like-element-with-mootools/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/create-window-like-element-with-mootools/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
