<?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>Young Dutch Design &#187; XML / XHTML</title>
	<atom:link href="http://youngdutchdesign.com/tag/xml-xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://youngdutchdesign.com</link>
	<description>Young Dutch Design is a new platform for young designers with frequently new added postings about productdesign, webdesign and other related subjects.</description>
	<lastBuildDate>Fri, 27 Aug 2010 21:09:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mootools 1.2 cvLinkSelect class 1.2</title>
		<link>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-2</link>
		<comments>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-2#comments</comments>
		<pubDate>Thu, 26 Nov 2009 20:46:01 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Json]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1765</guid>
		<description><![CDATA[I&#8217;ve updated the cvLinkSelect class. Some minor tweaks are added so you can control even more with the class. I hope you like it! Changes Maintain an empty element with a short discription and an empty value in your html page and the class willÂ  not remove this one while you change the parent select [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the cvLinkSelect class. Some minor tweaks are added so you can control even more with the class. I hope you like it!</p>
<h2>Changes</h2>
<ul>
<li> Maintain an empty element with a short discription and an empty value in your html page and the class willÂ  not remove this one while you change the parent select box</li>
<li>Set the value of the first select box to the empty option after page reload</li>
<li>Comments added for developers and curious people</li>
<li>Updated the example</li>
<li>Removed some overhead in the class</li>
</ul>
<p>Go the the original page of the <a href="http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class">cvLinkSelect class</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvLinkSelect class 1.1</title>
		<link>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-1</link>
		<comments>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-1#comments</comments>
		<pubDate>Mon, 02 Nov 2009 06:48:04 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Json]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1708</guid>
		<description><![CDATA[Yesterday I&#8217;ve published the first version of the cvLinkSelect class for Mootools 1.2. Today I&#8217;ve released the new version of this nifty little class. I&#8217;ve completed the class with several finishing touches! View example Download file Changes Multiple GET variables in the request url. After a page refresh the script checks if the first linked [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1712" title="screenshot.185" src="http://youngdutchdesign.com/wp-content/uploads/2009/11/screenshot.185.jpeg" alt="screenshot.185" width="300" height="135" />Yesterday I&#8217;ve published the first version of the <a href="http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class">cvLinkSelect class for Mootools 1.2</a>. Today I&#8217;ve released the new version of this nifty little class. I&#8217;ve completed the class with several finishing touches!</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvlinkselect1.1.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvLinkSelect1.1.js">Download file</a></p>
<h2>Changes</h2>
<ul>
<li>Multiple GET variables in the request url.</li>
<li>After a page refresh the script checks if the first linked selectbox option is not empty. If it isn&#8217;t empty the first request fires.</li>
<li>If the request is empty it&#8217;s the last item in the linked selectboxes range. In this case we have to fire the isLast function.</li>
</ul>
<p>Read more about the usage on the original post for the <a href="http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class">cvLinkSelect class</a>!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class-1-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvLinkSelect class</title>
		<link>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class</link>
		<comments>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class#comments</comments>
		<pubDate>Sun, 01 Nov 2009 22:11:52 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Json]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1680</guid>
		<description><![CDATA[If you&#8217;re making a form with today&#8217;s standards you often have to make several select elements with the options of the next select elements referring to the previous one. It&#8217;s a simple task to create a small Mootool which do it for you but it&#8217;s always a time consuming process, especially if you&#8217;ll have a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1783" title="Screen shot 2009-11-26 at 21.09.16" src="http://youngdutchdesign.com/wp-content/uploads/2009/11/Screen-shot-2009-11-26-at-21.09.16-.png" alt="Screen shot 2009-11-26 at 21.09.16" width="299" height="127" />If you&#8217;re making a form with today&#8217;s standards you often have to make several select elements with the options of the next select elements referring to the previous one. It&#8217;s a simple task to create a small Mootool which do it for you but it&#8217;s always a time consuming process, especially if you&#8217;ll have a lot of select boxes. I thought that if I have use this functionality more than once a class would be helpful.</p>
<p>This class links the select boxes to each other. When you change the first select element the options for the following select boxes are loaded. Simple as that.</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvlinkselect.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvLinkSelect.js">Download file</a> <a class="example_but zipfile" href="http://www.youngdutchdesign.com/downloads/cvLinkSelect_example.zip">Download Zip</a></p>
<p><span id="more-1680"></span></p>
<h2>The html</h2>
<p>Note that only the first select element has some options in it. These can be static html or generated by php.</p>
<pre class="html">
<select id="category" class="inputbox linked" name="category">
<option>-- Select the category --</option>
<option value="car">Car</option>
<option value="bicyle">Bicycle</option>
</select>
<select id="type" class="inputbox linked" name="type">
<option>-- Select the type --</option>
</select>
<select id="function" class="inputbox linked" name="function">
<option>-- Select the function --</option>
</select>
</pre>
<p><!--adsense--></p>
<h2>The css</h2>
<p>These css is only for the style of the form elements. Nothing special.</p>
<p>Do you need a neat little loading gif? Just go to <a href="http://www.ajaxload.info/" target="_blank">Ajaxload</a> and download your own!</p>
<pre class="css">.loading{
	background: url(images/loading.gif) 170px center no-repeat;
	}

.inputbox {
	width: 220px;
	padding: 5px;
	border:1px solid #EEE;
	font: 12px "Courier New", Courier, monospace;
	color: #333;
	}

select.inputbox {
	width: 232px;
	}</pre>
<h2>The javascript</h2>
<p>This is where the magic happens. Two variables are very important to make this class work.</p>
<ul>
<li><strong>value</strong>: This is the name of the object that is the value in the future option element</li>
<li><strong>option</strong>: This is the name of the object that is the visual value of in the option element</li>
</ul>
<pre class="javascript">window.addEvent('domready', function() {
	var l = new cvLinkSelect({
        select_class: '.linked', //the class for the linked select boxes
		url: 'yourajaxurl.php', //pad to ajax file
		multiple_var: true, //use multiple get variables or only one
		loadClass: 'loading', //the css class that is added when a request is made
		isLast: function(){
			alert('Last dynamic selectbox!');
		},
		hasnoSub: function(){
			alert('This option has no depending options. Lets hide the next elements!');

			l.select.each(function(s){
				if(l.select.indexOf(s) &gt;= l.select.indexOf(l.current)){ //if the select depends on the parent
					s.hide();
				}
			});
		},
		hasSub: function(){
			l.select.each(function(s){
				if(l.select.indexOf(s) &gt;= l.select.indexOf(l.current)){ //if the select depends on the parent
					s.show();
				}
			});
		}
	});
});</pre>
<h2>The JSON format</h2>
<p>You have to make sure that the AJAX request returns a JSON format that is formatted like the example below.</p>
<p><strong>NOTE</strong><br />
Be sure that the json always contains a value and a html object. See the demo for a example.</p>
<pre class="html">[{"value":"wheels","html":"Wheels"},
{"value":"body","html":"Body"},
{"value":"exaust","html":"Exaust"}]</pre>
<h2>The php</h2>
<p>The php file has to return a JSON formatted string depending on the selected value. You can use if-statements or use a switch method to print the exact output but the basics are just this:</p>
<pre class="php">if(isset($_GET['category'])){
	echo '[{"value":"wheels","html":"Wheels"},{"value":"body","html":"Body"}]';
}elseif(isset($_GET['type'])){
	echo '[{"value":15,"html":"15 inch"},{"value":17,"html":"17 inch"}]';
}</pre>
<p>When your website is dynamic you probably prefer to use a flexible way of presenting the JSON variable. <a href="http://youngdutchdesign.com/php-part-for-cvlinkselect-class">Read more about this in another article I&#8217;ve wrote</a>. I think it&#8217;s very useful so read it and don&#8217;t reinvent the wheel.</p>
<h2>Multiple GET variables</h2>
<p>In the old version we had only request with this kind of urls:</p>
<p style="padding-left: 30px;"><strong>ajax.php?category=var</strong></p>
<p>But in my opinion this wasn&#8217;t sufficient for the main goal: Get the right data in the select boxes and make programming easier. So that&#8217;s why I&#8217;ve made an update to the class so you can get this kind of requests:</p>
<p style="padding-left: 30px;"><strong>ajax.php?category=var&amp;type=var2</strong></p>
<p>These urls can be activated via the multiple_var option in the class. Before you use them: please make sure that your php script has the correct architecture. A <strong>very basic </strong>example:</p>
<pre class="php">if(!empty($_GET['category'])){
	if($_GET['category'] == 'car'){
		if(!empty($_GET['type'])){
			if($_GET['type'] == 'wheels'){
				/* return the wheels JSON variabele */
			}
		}else{
			/* return the car JSON variable */
		}
	}
}</pre>
<p>I hope you enjoy this class and if you have any questions or suggestions; please leave a comment!</p>
<h2>Changelog</h2>
<ul>
<li><strong>v1.4 30 mrt 2010</strong>
<ul>
<li>Fixed the weird Elements bug in Mootools 1.2.4</li>
<li>Upgraded the speed with document.createDocumentFragment()</li>
</ul>
</li>
<li><strong>V1.3 26 feb 2010</strong>
<ul>
<li>It&#8217;s possible to disable the select elements when no options are available. This is great feedback</li>
</ul>
</li>
<li><strong>V1.2.2 &#8211; 21 feb 2010</strong>
<ul>
<li>Fixed the reset bug. It will be resetting all the select elements if an empty value is set.</li>
</ul>
</li>
<li><strong>V1.2.1 &#8211; 20 feb 2010</strong>
<ul>
<li>Reset the depending select elements if when a user changes the upper select element</li>
</ul>
</li>
<li><strong>V1.2 &#8211; 26 nov 2009</strong>
<ul>
<li> Maintain an empty element with a short discription and an empty value in your html page and the class willÂ  not remove this one while you change the parent select box</li>
<li>Set the value of the first select box to the empty option after page reload</li>
<li>Comments added for developers and curious people</li>
<li>Updated the example</li>
<li>Removed some overhead in the class</li>
</ul>
</li>
<li><strong>V1.1 &#8211; 2 nov 2009</strong>
<ul>
<li>Multiple GET variables in the request url.</li>
<li>If the request is empty itâs the last item in the linked selectboxes range. In this case we have to fire the isLast function.</li>
</ul>
</li>
<li><strong>V1.0 &#8211; 1 nov 2009</strong>
<ul>
<li>First release of the link select class</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-1-2-cvlinkselect-class/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvElementAppear class</title>
		<link>http://youngdutchdesign.com/mootools-12-cvelementappear-class</link>
		<comments>http://youngdutchdesign.com/mootools-12-cvelementappear-class#comments</comments>
		<pubDate>Thu, 23 Apr 2009 22:23:12 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1196</guid>
		<description><![CDATA[I&#8217;ve created another Mootools class! This one animates the appearance of images or elements. Do I need to say more? Words are not enough, check out the demo! View example Download file I even added a onComplete function which you can customize yourself! The html The css #appear li { float: left; list-style-type: none; display: [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1198" title="appear" src="http://youngdutchdesign.com/wp-content/uploads/2009/04/appear.jpg" alt="appear" width="150" height="150" />I&#8217;ve created another Mootools class! This one animates the appearance of images or elements. Do I need to say more? Words are not enough, check out the demo!</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvelementappear.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvElementAppear.js">Download file</a></p>
<p>I even added a onComplete function which you can customize yourself!</p>
<p><span id="more-1196"></span></p>
<h2>The html</h2>
<pre class="html">
<ul id="appear">
<li><a href="#"><img src="images/1.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/2.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/3.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/4.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/5.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/6.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/7.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/8.jpg" alt="Test"  /></a></li>
<li><a href="#"><img src="images/9.jpg" alt="Test"  /></a></li>
</ul>
</pre>
<h2>The css</h2>
<pre class="css">
#appear li {
	float: left;
	list-style-type: none;
	display: block;
	width: 150px;
	height: 150px;
	margin: 10px;
	}

#appear img {
	border: none;
	}
</pre>
<h2>The javascript</h2>
<pre class="javascript">
window.addEvent('domready', function() {

	var ap = new cvElementAppear('appear',{
		elements: 'img',
		endwidth: 150,
		endheight: 150,
		duration: 1000,
		transition: Fx.Transitions.Sine.easeIn,
		onComplete: function(){
			alert('Finish!');
		}
	});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-12-cvelementappear-class/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvNewsTicker class</title>
		<link>http://youngdutchdesign.com/mootools-12-cvnewsticker-class</link>
		<comments>http://youngdutchdesign.com/mootools-12-cvnewsticker-class#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:10:28 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=951</guid>
		<description><![CDATA[During the development of YoungDutchDesign.com I was searching for a Mootool based news ticker script. I&#8217;ve found the great news ticker script from Antonio Lupetti but this one wasn&#8217;t compatible with Mootools 1.2 and all the tips in the comments were not sufficient. So here we are, a fresh build of a simple news ticker: [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-952" title="cvnewsticker" src="http://youngdutchdesign.com/wp-content/uploads/2009/04/cvnewsticker.jpg" alt="cvnewsticker" width="262" height="223" />During the development of YoungDutchDesign.com I was searching for a Mootool based news ticker script. I&#8217;ve found the great news ticker script from <a href="http://woork.blogspot.com/2008/07/fantastic-news-ticker-newsvine-like.html" target="_blank">Antonio Lupetti</a> but this one wasn&#8217;t compatible with Mootools 1.2 and all the tips in the comments were not sufficient. So here we are, a fresh build of a simple news ticker: The cvNewsTicker class.</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvnewsticker.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvNewsTicker.js">Download file</a></p>
<p><a class="example_but zipfile" href="../downloads/cvNewsTicker_examples.zip">Download now!</a></p>
<p><span id="more-951"></span></p>
<h2>The html</h2>
<pre class="html">
<div class="newsticker">
<ul id="tickerimages">
<li><a href="../solidworks"><img src="../banner_1.jpg" alt="SolidWorks" /></a></li>
<li><a href="../design-sketching"><img src="../banner_2.jpg" alt="Sketching" /></a></li>
<li><a href="../webdesign-basics"><img src="../banner_3.jpg" alt="Webdesign" /></a></li>
</ul>
</div>
</pre>
<h2>The css</h2>
<pre class="css">.newsticker {
	height: 300px;
	width: 500px;
	display: block;
	overflow: hidden;
	position: relative;
	}

.images {
	height: 270px;
	width: 270px;
	}

img {
	border: none;
	}

.newsticker ul li {
	/*float: left; add the float: left when you prefer a horizontal news ticker*/
	display: block;
	width: 480px;
	padding: 10px;
	font: .8em Georgia, "Times New Roman", Times, serif;
	}

.tickertitle {
	display: block;
	font: bold .9em Georgia, "Times New Roman", Times, serif;
	}

.tickerimg {
	float:left;
	margin: 0px 15px 15px 0px;
	}</pre>
<h2>The javascript</h2>
<pre class="javascript">window.addEvent('domready', function() {
	var news = new cvNewsTicker('tickerimages',{speed:500,delay:5000,direction:'horizontal'});
});</pre>
<h2>Changelog</h2>
<ul>
<li><strong>V1.0.1 â 7 dec 2009</strong>
<ul>
<li>Added a delay when the page is loaded<strong><br />
</strong></li>
</ul>
</li>
<li><strong>V1.0 â 17 apr 2009</strong>
<ul>
<li>First release of the news ticker class</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-12-cvnewsticker-class/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvRelativeTop class</title>
		<link>http://youngdutchdesign.com/mootools-12-cvrelativetop-class</link>
		<comments>http://youngdutchdesign.com/mootools-12-cvrelativetop-class#comments</comments>
		<pubDate>Thu, 16 Apr 2009 07:09:23 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=946</guid>
		<description><![CDATA[When you want your menu always to be in the current view, also in a webpage with a lot of content the cvRelativeTop class has an answer. This class animates the menu with a tween. I&#8217;ve added a onStart and onComplete function so you can add custom events to the class. This class is so [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-947" title="layout_relativediv" src="http://youngdutchdesign.com/wp-content/uploads/2009/04/layout_relativediv.jpg" alt="layout_relativediv" width="262" height="223" />When you want your menu always to be in the current view, also in a webpage with a lot of content the cvRelativeTop class has an answer. This class animates the menu with a tween. I&#8217;ve added a onStart and onComplete function so you can add custom events to the class.</p>
<p>This class is so powerful that I&#8217;ve used it also on this website!</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvrelativetop.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvRelativeTop.js">Download file</a></p>
<p><img class="alignnone size-full wp-image-966" title="cvrelativetop" src="http://youngdutchdesign.com/wp-content/uploads/2009/04/cvrelativetop.jpg" alt="cvrelativetop" width="600" height="126" /></p>
<p><span id="more-946"></span></p>
<h2>The html</h2>
<p>The html in this example is very basic</p>
<pre class="html">
<div id="content">
<h1>Text</h1>

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

/* and so on and so on...*/</div>
<div id="col">
<h1>RelativeTop!</h1>
</div>
</pre>
<h2>The css</h2>
<p>Please take note of the margin-top variable in the col div.</p>
<pre class="css">#text {
	float: left;
	width: 500px;
	padding: 10px;
	background-color: #EEE;
	}

#col {
	margin-top: 0px; /*if this one is not defined the class will not work properly*/
	float: left;
	padding: 10px;
	width: 270px;
	height: 503px;
	background: url(images/rcol_example.jpg) no-repeat;
	}</pre>
<h2>The javascript</h2>
<p>Just slides the relative div with an animation.</p>
<pre class="javascript">window.addEvent('domready', function() {
    var relative = new cvRelativeTop('col',{duration: 200, between: [250,1000] });
});</pre>
<h2>Advanced example with custom function onTransition</h2>
<p>You can add a custom function in the onTransition parameter in case you would like more control over the class and it&#8217;s behaviour.</p>
<pre class="javascript">window.addEvent('domready', function() {
    var relative = new cvRelativeTop('col',{
        duration: 200,
        between: [250,1000],
        transition: transition: Fx.Transitions.Bounce.easeIn,
        onTransition: function(){
            var margintop = $('col').getStyle('margin-top').toInt();
            if(margintop &gt; 500 &amp;&amp; margintop &lt; 550){
                alert('margin-top &gt; 500px!');
            }
        }
    });
});</pre>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvrelativetop.php">View example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvrelativetop.js">Download file</a></p>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-12-cvrelativetop-class/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 password strength indicator</title>
		<link>http://youngdutchdesign.com/mootools-12-password-strength-indicator</link>
		<comments>http://youngdutchdesign.com/mootools-12-password-strength-indicator#comments</comments>
		<pubDate>Wed, 15 Apr 2009 08:07:43 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=888</guid>
		<description><![CDATA[See the demo The html]]></description>
			<content:encoded><![CDATA[<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/mootools-password-strength-indicator.php">See the demo</a><br />
<span id="more-888"></span></p>
<h2>The html</h2>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-12-password-strength-indicator/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add more style to your forms with Mootools 1.2</title>
		<link>http://youngdutchdesign.com/add-more-style-to-your-forms-with-mootools-12</link>
		<comments>http://youngdutchdesign.com/add-more-style-to-your-forms-with-mootools-12#comments</comments>
		<pubDate>Tue, 14 Apr 2009 08:04:30 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=887</guid>
		<description><![CDATA[To add some more style to your forms and give the user some feedback you you can use the :focus attribute. For example: input:focus { border: 1px #CC0000 solid; } This Mootool gives more style because it animates the on focus handle. View example The html The html is partly the exact html that I [...]]]></description>
			<content:encoded><![CDATA[<p>To add some more style to your forms and give the user some feedback you you can use the :focus attribute. For example:</p>
<pre class="css">
input:focus {
    border: 1px #CC0000 solid;
}
</pre>
<p>This Mootool gives more style because it animates the on focus handle.</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/inputhighlighter.php">View example</a></p>
<p><span id="more-887"></span></p>
<h2>The html</h2>
<p>The html is partly the exact html that I used on the previous article about forms: <a href="http://youngdutchdesign.com/the-right-way-to-style-a-form">The right way to style a form</a>.</p>
<pre class="html">
<form method="post" action="http://youngdutchdesign.com/examples/style-forms.php">
<fieldset>
<legend>Profile info</legend>

<label for="username">Username</label>
<input type="text" name="username" id="username" class="inputbox" />

<label for="password">Password</label>
<input type="password" name="password" id="password" class="inputbox" />

<label for="news">Subscribe to newsletter</label>
<input type="checkbox" name="news" id="news" checked="checked" />
</fieldset>
</form>
</pre>
<h2>The Mootool</h2>
<p>The mootools javascript uses the morph transition. Read more about this at the Mootools docs.</p>
<pre class="javascript">
window.addEvent('domready', function(){
    var list = $$('form .inputbox');

    list.each(function(e) {
        var highlighter = new Fx.Tween(e);

        e.addEvent('focus', function(){
            highlighter.start(
                'background-color', '#666'
                'border', '#EEE'
            );
        });

        e.addEvent('blur', function(){
            highlighter.start(
                'background-color', '#FFF',
                'border', '#EEE'
            );
        });
    });
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/add-more-style-to-your-forms-with-mootools-12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The right way to style a form</title>
		<link>http://youngdutchdesign.com/the-right-way-to-style-a-form</link>
		<comments>http://youngdutchdesign.com/the-right-way-to-style-a-form#comments</comments>
		<pubDate>Wed, 08 Apr 2009 08:12:54 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=895</guid>
		<description><![CDATA[When I browse the internet I see too much forms styled in a table. Keep notice that tables are only used for tabular data such as your dvd collection for example. In this tutorial I show you a way to style a form with all the elements that are developed for this purpose. View full [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-916" title="screenshot20" src="http://youngdutchdesign.com/wp-content/uploads/2009/04/screenshot20.jpeg" alt="screenshot20" width="250" height="81" />When I browse the internet I see too much forms styled in a table. Keep notice that tables are only used for tabular data such as your dvd collection for example. In this tutorial I show you a way to style a form with all the elements that are developed for this purpose.</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/style-forms.php">View full example</a></p>
<p><span id="more-895"></span><!--index--><br />
<h2>form</h2>
<p>Everyone who surfs on the internet uses forms. Sending emails, register on web-pages, they can be used for countless purposes. <a href="http://www.w3schools.com/tags/tag_form.asp" target="_blank">Read more about forms</a>.</p>
<p><strong>Required parameters</strong></p>
<ul>
<li>action required- <em>The url of the file where the form is pointing to</em></li>
</ul>
<pre class="html">
<form id="yourformid" action="yourpage.php" method="post">
//your form elements
</form>
</pre>
<h2>fieldset</h2>
<p>The fieldset adds a border to your form. I recommend to add always a fieldset in your html. You can hide the border with a css file. You can add multiple fieldsets to one form to make some categories for more structure.</p>
<pre class="html">
<fieldset>
//your form elements
</fieldset>
</pre>
<h2>legend</h2>
<p>The legend is placed in line with the fieldset. The combination of these two elements .</p>
<pre class="html">The title</pre>
<h2>label</h2>
<p>Labels are very useful to add more functionality tor your form. When a user clicks on the label the input it highlights the input element with a corresponding id.<a href="http://www.w3schools.com/tags/tag_label.asp" target="_blank"> Read more about labels</a></p>
<p><strong>Required parameters</strong></p>
<ul>
<li> for &#8211; <em>Boe</em></li>
</ul>
<pre class="html"><label for="username">Username</label></pre>
<h2>input</h2>
<p>There are a lot of input types you can use to build your form.<br />
<strong>Required parameters</strong></p>
<ul>
<li> name &#8211; <em>When a user clicks on the label the input it highlights the input element with a corresponding id</em></li>
</ul>
<h2>The html</h2>
<pre class="html">
<form action="http://youngdutchdesign.com/examples/style-forms.php" method="post">
<fieldset>
<legend>Profile info</legend>

<label for="username">Username</label>
<input id="username" class="inputbox" name="username" type="text" />

<label for="password">Password</label>
<input id="password" class="inputbox" name="password" type="password" />

<label for="news">Subscribe to newsletter</label>
<input id="news" checked="checked" name="news" type="checkbox" />
</fieldset>
<fieldset>
<legend>Personal info</legend>

<label for="gender">Gender</label><span id="gender" class="radio">
<input name="gender" type="radio" value="Male" /> Male
<input name="gender" type="radio" value="Female" /> Female
                        </span>

<label for="date">Date of birth</label>
<select id="date" class="inputbox" name="date">
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
</select>

<label for="about">About</label><textarea id="about" class="inputbox" cols="30" rows="5" name="about"></textarea>

<label for="interest">I'm building websites for</label>
<select id="interest" class="inputbox" multiple="multiple" name="interest">
<option value="Profession">Profession</option>
<option value="Hobby">Hobby</option>
<option value="Both">Both</option>
<option value="Other">Other</option>
</select>

<label for="button">Â </label>
<input id="button" class="button" type="submit" value="Submit form" />
</fieldset>
</form>
</pre>
<h2>The css</h2>
<p>The following css is used in the example:</p>
<pre class="css">fieldset {
	width: 450px;
	border:1px solid #EEE;
	border-bottom: none;
	padding: 10px;
	}

fieldset p {
	margin: 0px 0px 3px 0px;
	}

legend {
	font: bold 0.9em Georgia, "Times New Roman", Times, serif;
	color: #f8991d;
	}

label {
	width: 220px;
	padding: 5px 0px;
	float: left;
	display: block;
	font: bold 0.8em Verdana, Arial, Helvetica, sans-serif;
	color: #333;
	}

.inputbox {
	width: 200px;
	padding: 5px;
	border:1px solid #EEE;
	font: 12px "Courier New", Courier, monospace;
	color: #333;
	}

select.inputbox {
	width: 212px;
	}

.radio {
	float: left;
	display: block;
	width: 200px;
	margin-bottom: 3px;
	}</pre>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/style-forms.php">View example</a></p>
<h2>Additional info</h2>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/the-right-way-to-style-a-form/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mootools 1.2 cvStepSlider class</title>
		<link>http://youngdutchdesign.com/mootools-12-cvstepslider-class</link>
		<comments>http://youngdutchdesign.com/mootools-12-cvstepslider-class#comments</comments>
		<pubDate>Sun, 15 Mar 2009 15:30:51 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=714</guid>
		<description><![CDATA[This slider slides trough your image. Choose a vertical or horizontal slider. Load a item form a anchor url and save the visited items in a cookie! See the demo Download file The css .index_button { width: 30px; height: 126px; float: left; cursor: pointer; } .prev { background: #FFF url(images/index_prev.jpg) center right no-repeat; margin-right: 10px; [...]]]></description>
			<content:encoded><![CDATA[<p>This slider slides trough your image. Choose a vertical or horizontal slider. Load a item form a anchor url and save the visited items in a cookie!</p>
<p><img class="alignnone size-full wp-image-720" title="stepslider" src="http://youngdutchdesign.com/wp-content/uploads/2009/03/stepslider.jpg" alt="stepslider" width="600" height="77" /></p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/cvstepslider.php">See the demo</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/cvStepSlider.js">Download file</a></p>
<p><span id="more-714"></span></p>
<h2>The css</h2>
<pre class="css">
.index_button {
	width: 30px;
	height: 126px;
	float: left;
	cursor: pointer;
	}

.prev {
	background: #FFF url(images/index_prev.jpg) center right no-repeat;
	margin-right: 10px;
	}

.prev_hover {
	background: #FFF url(images/index_prev_h.jpg) center right no-repeat;
	}

.next {
	background: #FFF url(images/index_next.jpg) center left no-repeat;
	margin-left: 10px;
	}

.next_hover {
	background: #FFF url(images/index_next_h.jpg) center left no-repeat;
	}

#portfolio_index, #portfolio_index2 {
	padding-top: 10px;
	width: 700px;
	height: 115px;
	float: left;
	overflow: hidden;
	}

#portfolio_index3 {
	width: 140px;
	height: 105px;
	float: left;
	overflow: hidden;
	}

#portfolio_index ul li, #portfolio_index2 ul li, #portfolio_index3 ul li {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	float: left;
	cursor: pointer;
	}

.item_hover {
	border: 1px #CCC solid;
	}

.loading {
	background:url(images/ajax-loader.gif) center center no-repeat;
	}

.active {
	border: 1px #F8991D solid;
	}
</pre>
<h2>The html</h2>
<pre class="html">
<div id="prev" class="index_button prev"></div>
<div id="portfolio_index" class="loading">
<ul id="items">
<li><a href="#Portretten"><img src="images/portretten.jpg" alt="Portretten" /></a></li>
<li><a href="#Vervandekade"><img src="images/vvk1.jpg" alt="Vervandekade" /></a></li>
<li><a href="#Young Dutch Design"><img src="images/ydd.jpg" alt="Young Dutch Design" /></a></li>
<li><a href="#Chronotherm Vision"><img src="images/ctv.jpg" alt="Chronotherm Vision" /></a></li>
<li><a href="#Muscle Tower"><img src="images/mt.jpg" alt="Muscle Tower" /></a></li>
<li><a href="#Easy Maps"><img src="images/em.jpg" alt="Easy Maps" /></a></li>
<li><a href="#Handtekenen"><img src="images/tekenen.jpg" alt="Handtekenen" /></a></li>
<li><a href="#Blox"><img src="images/blox.jpg" alt="Blox" /></a></li>
<li><a href="#PhilliShave"><img src="images/shaver.jpg" alt="Shaver" /></a></li>
<li><a href="#Velominck"><img src="images/velominck.jpg" alt="Velominck" /></a></li>
<li><a href="#Stichting Signaal Beheer"><img src="images/bestuur.jpg" alt="Bestuur" /></a></li>
<li><a href="#Jetzt Gehts Loods"><img src="images/jgl.jpg" alt="Jetzt Gehts Loods" /></a></li>
<li><a href="#Vliegende Hollander"><img src="images/vh.jpg" alt="Flying Dutchman" /></a></li>
</ul>
</div>
<div id="next" class="index_button next"></div>
</pre>
<h2>The usage</h2>
<p>See the example for the usage of the visited items using a Cookie.</p>
<pre class="javascript">
window.addEvent('domready', function() {
	var slider = new cvStepSlider({
		wrapper: 'portfolio_index',
		list: 'items',
		items: '#portfolio_index ul li img',
		itemWidth: 140,
		itemHeight: 105,
		startSlide: 1,
		type: 'horizontal',
		step: 'item',
		nextbutton: 'next',
		prevbutton: 'prev',
		log: true,
		result: 'res',
		preloadImages: ['images/index_next_h.jpg','images/index_next.jpg','images/index_prev_h.jpg','images/index_prev.jpg']
	});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-12-cvstepslider-class/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
