<?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; CSS</title>
	<atom:link href="http://youngdutchdesign.com/tag/css/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>Tue, 14 Jun 2011 20:25:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mootools 1.2+ Drag.Cart Demo</title>
		<link>http://youngdutchdesign.com/mootools-1-2-drag-cart-demo</link>
		<comments>http://youngdutchdesign.com/mootools-1-2-drag-cart-demo#comments</comments>
		<pubDate>Wed, 02 Feb 2011 20:24:47 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Shopping basket]]></category>
		<category><![CDATA[XML / XHTML]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1762</guid>
		<description><![CDATA[I&#8217;ve searched on the internet for a good, simple and working example of the Drag.Cart plugin for Mootools 1.2+ but I haven&#8217;t found a single one. This is what I mean: the original Ghost Drag demo for Mootools 1.1. Here it is, a working example for Mootools 1.2+. Good luck and take a look at [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-3985" title="Screen shot 2011-02-02 at 21.14.17" src="http://youngdutchdesign.com/wp-content/uploads/2011/02/Screen-shot-2011-02-02-at-21.14.17--e1296677994504.png" alt="" width="300" height="210" />I&#8217;ve searched on the internet for a good, simple and working example of the Drag.Cart plugin for Mootools 1.2+ but I haven&#8217;t found a single one. This is what I mean: the original <a href="http://demos111.mootools.net/Drag.Cart" target="_blank">Ghost Drag demo</a> for Mootools 1.1.</p>
<p>Here it is, a working example for Mootools 1.2+. Good luck and take a look at the <a href="http://mootools.net/docs/more/Drag/Drag.Move" target="_blank">actual documentation</a> I&#8217;ve you need some more information.</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/dragCart.php">View example</a><br />
<span id="more-1762"></span></p>
<h2>The html</h2>
<pre class="html">
<div id="items">
<div class="item" style="background-image: url(images/s1.jpg);">
		<span>Shirt 1</span></div>
<div class="item" style="background-image: url(images/s2.jpg);">
		<span>Shirt 2</span></div>
<div class="item" style="background-image: url(images/s3.jpg);">
		<span>Shirt 3</span></div>
<div class="item" style="background-image: url(images/s4.jpg);">
		<span>Shirt 4</span></div>
<div class="item" style="background-image: url(images/s5.jpg);">
		<span>Shirt 5</span></div>
<div class="item" style="background-image: url(images/s6.jpg);">
		<span>Shirt 6</span></div>
</div>
<div id="cart" class="cart">
<div class="info">Drag Items Here</div>
</div>
</pre>
<h2>CSS</h2>
<pre class="css">#items
{
	float: left;
	width: 525px;
	border: 1px solid #f9f9f9;
}

#cart
{
	float: right;
	width: 280px;
	background-color: #fff;
	border: 1px solid #f9f9f9;
	padding-bottom: 50px;
}

#cart .info
{
	color: #444;
	font-size: 0.9em;
	text-align: center;
	font-weight: bold;
}

.item {
	float: left;
	position: relative;
	width: 150px;
	height: 175px;
	border: 1px solid #eee;
	margin: 10px;
	border-right: 2px solid #ddd;
	border-bottom: 2px solid #ddd;
	background-color: #fff;
	background-position: left top;
	background-repeat: no-repeat;
	cursor: move;
}

#cart .item {
	width: 75px;
	height: 75px;
	margin: 5px;
	background-position: -40px -22px;
	border-width: 1px;
	cursor: default;
}

.item span {
	position: absolute;
	bottom: 0;
	left: 0;
	font-size: 0.8em;
	font-weight: bold;
	width: 100%;
	text-align: center;
}
</pre>
<h2>The Mootools</h2>
<p>Activate the mootools below after the DOM is ready&#8230;</p>
<pre class="javascript">var list = $$('.item');
var drop = $('cart');
var dropFx = new Fx.Morph('cart', {duration: 200, transition: Fx.Transitions.Sine.easeOut});

list.each(function(item){

	item.addEvent('mousedown', function(e){
		var e = new Event(e).stop();

		var clone = this.clone()
			.setStyles(this.getCoordinates())
			.setStyles({'opacity': 0.7, 'position': 'absolute'})
			.inject(document.body);

		var drag = new Drag.Move(clone, {
			droppables: '.cart',
			onDrop: function(element, droppable, event){
						drop.removeEvents();
						if(droppable){
							drop.highlight('#7389AE');
							dropFx.start({'background-color': '#FFFFFF'});

							item.clone().inject(drop);
							clone.dispose();
						}else{
							clone.dispose();
						}
					},
			onEnter: function(){
						dropFx.start({'background-color': '#98B5C1'});
					},
			onLeave: function(){
						dropFx.start({'background-color': '#FFFFFF'});
					}
		});

		drag.start(e); // start the event manual
	});
});
</pre>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/dragCart.php">View example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/mootools-1-2-drag-cart-demo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>34</slash:comments>
		</item>
		<item>
		<title>MooDrop: Mootools Eyedropper tool</title>
		<link>http://youngdutchdesign.com/moodrop-mootools-eyedropper-tool</link>
		<comments>http://youngdutchdesign.com/moodrop-mootools-eyedropper-tool#comments</comments>
		<pubDate>Thu, 24 Sep 2009 15:54:04 +0000</pubDate>
		<dc:creator>Crispijn</dc:creator>
				<category><![CDATA[Mootools]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Json]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://youngdutchdesign.com/?p=1595</guid>
		<description><![CDATA[For a new application I&#8217;m working on I&#8217;ve searched the internet for a javascript based eyedropper tool. Fortunately I only found some Java based applications and I&#8217;m not a big fan of those. So I decided to write my own Eyedropper. Test it and install it on your own website! You can tweak some events [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1639" title="moodrop" src="http://youngdutchdesign.com/wp-content/uploads/2009/09/moodrop.jpg" alt="moodrop" width="200" height="200" />For a new application I&#8217;m working on I&#8217;ve searched the internet for a javascript based eyedropper tool. Fortunately I only found some Java based applications and I&#8217;m not a big fan of those.</p>
<p>So I decided to write my own Eyedropper. Test it and install it on your own website! You can tweak some events so it has more functionality.</p>
<p>There is also a Zip file available with a working example. Just upload the files to your folder on your webspace and navigate to it!</p>
<p><a class="example_but demo" href="http://youngdutchdesign.com/examples/moodrop.php">Example</a> <a class="example_but download" href="http://youngdutchdesign.com/examples/js/moodrop.js">Download Class</a> <a class="example_but zipfile" href="http://www.youngdutchdesign.com/downloads/cvMooDrop_examples.zip">Download Zip</a></p>
<p><span id="more-1595"></span></p>
<h2>File structure</h2>
<p>The following structure is used in the example and the documentation.</p>
<ul>
<li><strong>images</strong>
<ul>
<li>your_image.jpg</li>
</ul>
</li>
<li><strong>js</strong>
<ul>
<li>cvMooDrop.js</li>
<li>mootools-1.2.js</li>
</ul>
</li>
<li>ajax_moodrop.php</li>
<li>basic.css</li>
<li>cvMooDrop.css</li>
<li>index.php /*This file contains the html for the eyedropper*/</li>
<li>moodrop.php</li>
</ul>
<h2>The html</h2>
<p>The html is really simple. The path to the image is the relative path.</p>
<h2>The css</h2>
<pre class="css">#dropperid {
	float: left;
	padding: 0px;
	width: 551px; //the width of the image
	height: 157px; //the height of the image
	}

#prev {
	float: left;
	width: 80px;
	height: 80px;
	border: 1px #CCC solid;
	}</pre>
<h2>The basic javascript</h2>
<pre class="javascript">window.addEvent('domready', function() {
	var test1 = new moodrop('dropperid',{
		url: 'ajax_moodrop.php',
		prev_id: 'prev'
	});
});</pre>
<h2>The more advanced javascript</h2>
<pre class="javascript">window.addEvent('domready', function() {
	var test2 = new moodrop('dropperadvanced',{
		url: 'ajax_moodrop.php',
		prev_id: 'prev2',
	});

	var colors = [];

	var addColor = function(c){
		if(colors.contains(c)){
			alert('This color already exists!');
		}else{
			colors.push(c);
			$('colors_field').value = JSON.encode(colors);
			createColor(c);
		}
	}

	var createColor = function(c){
		var box = new Element('span',{	'id': this.hex,
							  			'class': 'box',
										'styles': {
											'background': c,
											'display': 'block',
											'float': 'left',
											'cursor': 'pointer'
											}
										}).inject($('scheme'));
	};

	$('add').addEvent('click',function(a){
		addColor(test2.hex);
	});
});</pre>
<h2>The php (ajax_moodrop.php)</h2>
<p>The AJAX request has several variables in it to get the right pixel, the pixel the dropper is pointing at.</p>
<ul>
<li><strong>image: </strong>the relative path to the image file</li>
<li><strong>n: </strong>the relative top position of the pixel</li>
<li><strong>w: </strong>the relative left position of the pixel</li>
</ul>
<pre class="php">if(isset($_GET['image'])){
	/* select the left lower pixel from the dropperdiv and get the color index */
	$im = imagecreatefromjpeg($_GET['image']);
	$color_index = imagecolorat($im, $_GET['w'], $_GET['n']);

	/* get rid of the temporary image and display the human readable hex color */
	echo '#'.dechex($color_index);
}</pre>
<p>The function imagecreatefrom* can be changed to several functions, depending on the image type you use. In this case I&#8217;ve used a very simple static solution but you can select the correct function by checking the mime type.</p>
<ul>
<li><a href="http://php.net/imagecreatefromjpeg" target="_blank">imagecreatefromjpeg</a></li>
<li><a href="http://php.net/imagecreatefromgif" target="_blank">imagecreatefromgif</a></li>
<li><a href="http://php.net/imagecreatefrompng" target="_blank">imagecreatefrompng</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://youngdutchdesign.com/moodrop-mootools-eyedropper-tool/feed</wfw:commentRss>
		<slash:comments>11</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>12</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>
	</channel>
</rss>
