<?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>Nicolas Kuttler &#187; Webdesign</title>
	<atom:link href="http://www.nkuttler.de/tag/webdesign/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +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>Creating a valid WordPress theme</title>
		<link>http://www.nkuttler.de/2009/09/12/creating-a-valid-wordpress-theme/</link>
		<comments>http://www.nkuttler.de/2009/09/12/creating-a-valid-wordpress-theme/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 10:02:07 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress theme]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=484</guid>
		<description><![CDATA[Recently, I&#8217;ve been checking out some of the blogs that link back to me because they use one of my plugins. And it seems like a lot of them are using buggy, incorrect templates. It looks like many WordPress theme developers don&#8217;t read the theme development checklist. Another fine document that some developers seem to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve been checking out some of the blogs that <a href="http://siteexplorer.search.yahoo.com/">link back to me</a> because they use one of my plugins. And it seems like a lot of them are using buggy, incorrect templates. It looks like many WordPress theme developers don&#8217;t read the <a href="http://codex.wordpress.org/Theme_Development_Checklist">theme development checklist</a>.<span id="more-484"></span></p>
<p>Another fine document that some developers seem to ignore is the list of <a href="http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks">plugin API hooks</a>. Please, read that section, and <strong>include these hooks</strong> in your template! Some plugins <b>need</b> that API hook to work at all. My surprisingly popular <a href="http://www.nkuttler.de/nksnow/">snowstorm plugin</a> for example certainly does.</p>
<p>While you&#8217;re at it, think about how you want to style, for example, the <tt>wp_footer()</tt> call. When I visit pages that give me a backlink through that call, sometimes the backlink is displayed in very odd places and with weird colors.</p>
<p>Finally, although it has already been said on the pages I linked to, <strong> get the <a href="http://codex.wordpress.org/Theme_Development_Checklist#.22Theme_Unit_Tests.22">theme unit tests</a></strong> and use them! It&#8217;s quite embarassing for a designer to release buggy WordPress templates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/09/12/creating-a-valid-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Change Typo3 template depending on column content</title>
		<link>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/</link>
		<comments>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:33:02 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=852</guid>
		<description><![CDATA[Let&#8217;s assume you don&#8217;t just want to inject some HTML if there is content in a column, but you want to use a completely different layout. This isn&#8217;t hard to accomplish, see the example: tmp.templateFile = COA tmp.templateFile &#123; 10 = COA 10 &#123; if.isFalse.numRows &#60; styles.content.getRight 10 = FILE 10 &#123; file = fileadmin/template/1col.html [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s assume you don&#8217;t just want to <a href="http://www.nkuttler.de//2009/05/24/change-template-if-content-exists-in-typo3/">inject some HTML</a> if there is content in a column, but you want to use a completely different layout. This isn&#8217;t hard to accomplish, see the example:<span id="more-852"></span></p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;">tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile <span style="color: #009900;">&#123;</span>
	<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
	<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
		<span style="font-weight: bold;">if</span><span style="color: #339933; font-weight: bold;">.</span>isFalse<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">numRows</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getRight
		<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>1col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #cc0000;">20</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">COA</span>
	<span style="color: #cc0000;">20</span> <span style="color: #009900;">&#123;</span>
		<span style="font-weight: bold;">if</span><span style="color: #339933; font-weight: bold;">.</span>isTrue<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">numRows</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getRight
		<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>2col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The <tt>if</tt>s check if there is or isn&#8217;t content in the right column and the <tt>COA</tt> returns the correct cObject, FILE in this case.</p>
<p>And then in your main typoscript something like:</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">page</span><span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>template <span style="color: #339933; font-weight: bold;">&lt;</span> tmp<span style="color: #339933; font-weight: bold;">.</span>templateFile</pre></div></div>

<p>instead of the more usual</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">page</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">TEMPLATE</span>
	<span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span>
		template <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">FILE</span>
		template <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">file</span> <span style="color: #339933; font-weight: bold;">=</span> fileadmin<span style="color: #339933; font-weight: bold;">/</span>template<span style="color: #339933; font-weight: bold;">/</span>1col<span style="color: #339933; font-weight: bold;">.</span>html
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/09/05/change-typo3-template-depending-on-column-content/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My favorite Firefox Add-ons</title>
		<link>http://www.nkuttler.de/2009/08/25/my-favorite-firefox-add-ons/</link>
		<comments>http://www.nkuttler.de/2009/08/25/my-favorite-firefox-add-ons/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:02:23 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=834</guid>
		<description><![CDATA[This is about the Firefox Add-ons I use. This really is a complete list, I like to keep my browser lean. I&#8217;m fully aware that most people will miss things like Adblock, Pixel perfect and greasemonkey, but I don&#8217;t use them. Usability Tab Kit: My favorite tab extension. Has many many features, I use it [...]]]></description>
			<content:encoded><![CDATA[<p>This is about the Firefox Add-ons I use. This really is a complete list, I like to keep my browser lean. I&#8217;m fully aware that most people will miss things like Adblock, Pixel perfect and greasemonkey, but I don&#8217;t use them.<span id="more-834"></span></p>
<a name="wptoc_0_0_0"></a><h2>Usability</h2>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/5447">Tab Kit</a>:</strong> My favorite tab extension. Has many many features, I use it mostly because it allow more than one row of tabs and tab grouping/collapsing.</p>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/2408">Clear Fields</a>:</strong> This solves a quite annoying issue with Firefox and the xorg clipboard. Xorgs lets you paste things that you have highlighted with the mouse by simply clicking the middle mouse button. However, the previous contents of the search and address fields don&#8217;t get cleared. This adds buttons to clear those fields before pasting.</p>
<a name="wptoc_0_0_1"></a><h2>Development and Webdesign</h2>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a>:</strong> The swiss army knife of web developer add-ons. To quote from it&#8217;s description: &#8220;You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page&#8221;. Very power- and useful.</p>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/4904">Gridfox</a>:</strong> Indispensable while making grid-based layouts or aligning text to a base grid.</p>
<p><strong><a href="http://livehttpheaders.mozdev.org/">Live HTTP headers</a>:</strong> This is rather esoteric, but very useful for JavaScript debugging and web app development.</p>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer</a>:</strong> This is what I used before Firebug existed, and it&#8217;s still useful today.</p>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/539">MeasureIt</a>:</strong>This is very useful for quickly measuring the size of various elements on a page.</p>
<a name="wptoc_0_0_2"></a><h2>Privacy/Security</h2>
<p><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/4703">Cookie Monster</a>:</strong> The best cookie manager I could find. I always block all 3rd party cookies, and by default no website is allowed to store cookies on my computer. Cookie monster makes it very easy to allow cookies for sites I visit. Another nice feature is to only allow session cookies for some sites.</p>
<p><strong><a href="http://flashblock.mozdev.org/">Flashblock</a>:</strong> Blocks all annoying flash animations. Can whitelist sites of course. A must.</p>
<p><strong><a href="http://noscript.net/">NoScript</a>:</strong> Blocks all (3rd party) JavaScript. Indispensable security tool and gets rid of most ads as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/08/25/my-favorite-firefox-add-ons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>About the nonsense of blocking and annoying IE6 users</title>
		<link>http://www.nkuttler.de/2009/03/02/about-the-nonsense-of-blocking-and-annoying-ie6-users/</link>
		<comments>http://www.nkuttler.de/2009/03/02/about-the-nonsense-of-blocking-and-annoying-ie6-users/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 15:00:46 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=674</guid>
		<description><![CDATA[I know why most people who do web design, JS coding etc. loathe Internet Explorer 6. I hate having to fix stuff for any IE at all, the web would be a better place if that piece of software just died. I welcome efforts to decrease the market share of IE6, I support nagging warnings [...]]]></description>
			<content:encoded><![CDATA[<p>I know why most people who do web design, JS coding etc. loathe Internet Explorer 6. I hate having to fix stuff for any IE at all, the web would be a better place if that piece of software just died. I welcome efforts to decrease the market share of IE6, I support nagging warnings for IE6 visitors. But what&#8217;s with these nonsensical ideas of <a href="http://www.browsesad.com/">making websites look worse</a> in it or <a href="http://www.stoplivinginthepast.com/get-the-code/comment-page-1/#comment-18">blocking it</a>?<span id="more-674"></span></p>
<p>There was a time when websites used &#8220;Best viewed in Internet Explorer&#8221; or &#8220;Best viewed in Netscape&#8221; kind of texts and banners. Some sites even blocked you if you were using the &#8216;wrong&#8217; browser (it still happens today). That was stupid in the 90s, and locking out IE6 isn&#8217;t any smarter today.</p>
<p>If you want to behave like the &#8220;Best viewed in Internet Explorer&#8221; crowd of the 90s just go ahead. There was a different movement back then that still exists today: <a href="http://www.anybrowser.org/campaign/">Viewable With Any Browser</a>. There&#8217;s really no need to punish some minority browsers.</p>
<blockquote><p>Anyone who slaps a &#8216;this page is best viewed with Browser X&#8217; label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network.</p></blockquote>
<p class="blockquote-src"><a href="http://www.w3.org/People/Berners-Lee/">Tim Berners-Lee</a> in Technology Review, July 1996</p>
<p>I guess I&#8217;ll just go on and build sites that are more or less standards-compliant and hopefully don&#8217;t require special tweaking for IE6. There are enough cross-browser tools out there. Just use your favorite search engine to find JavaScript libraries, CSS frameworks etc. Of course, something will always break in the old IEs, but don&#8217;t waste time breaking it on purpose.</p>
<p><b>Update</b>: Just found this gem from the gif-crazy 90s and had to add it:<br />
<a href="http://www.anybrowser.org/campaign/"><img src="http://www.nkuttler.de//files/2009/03/eye_eng.gif" alt="Best viewed with your eyes" width="100" height="35" class="alignnone size-full wp-image-704" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/03/02/about-the-nonsense-of-blocking-and-annoying-ie6-users/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7 and the comment pager</title>
		<link>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/</link>
		<comments>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 23:41:28 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress theme]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=397</guid>
		<description><![CDATA[Comment paging is a great new feature in WordPress 2.7. However, how do you not display the pager when there are no previous or next comments? After digging through the code for quite a while and chatting with some people here&#8217;s a solution: &#60;?php if &#40; have_comments&#40;&#41; &#41; &#123; ?&#62; &#60;ol class=&#34;commentlist&#34;&#62; &#60;?php wp_list_comments&#40;&#41;; if [...]]]></description>
			<content:encoded><![CDATA[<p>Comment paging is a great new feature in WordPress 2.7. However, how do you not display the pager when there are no previous or next comments? After digging through the code for quite a while and chatting with some people here&#8217;s a solution:<span id="more-397"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;ol class=&quot;commentlist&quot;&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>
        get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cpage'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">||</span>
        get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cpage'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> get_comment_pages_count<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
            next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
            previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
            <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- pager HTML --&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;/ol&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>If you want to get started with 2.7 theme migration have a look at <a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/">Otto&#8217;s</a> or <a href="http://sivel.net/2008/10/wp-27-comment-separation/">Matt&#8217;s</a> posts on the new comment system and ping/comment separation.</p>
<p><b>Update:</b> No, <tt>get_previous_posts_page_link()</tt> is incorrect and <tt>get_previous_comments_link()</tt> doesn&#8217;t exist (yet).</p>
<p><b>Update 2:</b> Thanks to Viper007Bond for pointing me in the right direction.</p>
<p><b>Update 3:</b> <a href="http://trac.wordpress.org/ticket/8058">trac ticket</a></p>
<p><b>Update 4:</b> Additional conditional to not show the pager at all if paging isn&#8217;t enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/11/04/comment-paging-in-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About the CSS3 border radius property</title>
		<link>http://www.nkuttler.de/2008/10/23/border-radius-in-safari/</link>
		<comments>http://www.nkuttler.de/2008/10/23/border-radius-in-safari/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 22:47:27 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=302</guid>
		<description><![CDATA[So I have decided to use the CSS3 border-radius property on some sites. They are personal projects so I don&#8217;t care if they look a little worse on IE. After a few tweakings I&#8217;ve ended up with using things like this: #foo &#123; border-radius: 8px 4px 4px 8px; -moz-border-radius: 8px 4px 4px 8px; -webkit-border-radius: 8px [...]]]></description>
			<content:encoded><![CDATA[<p>So I have decided to use the CSS3 border-radius property on some sites. They are personal projects so I don&#8217;t care if they look a little worse on IE. After a few tweakings I&#8217;ve ended up with using things like this:<span id="more-302"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#foo</span> <span style="color: #00AA00;">&#123;</span>
    border-radius<span style="color: #00AA00;">:</span>          <span style="color: #933;">8px</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
    -moz-border-radius<span style="color: #00AA00;">:</span>     <span style="color: #933;">8px</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
    -webkit-border-radius<span style="color: #00AA00;">:</span>  <span style="color: #933;">8px</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
    -khtml-border-radius<span style="color: #00AA00;">:</span>   <span style="color: #933;">8px</span> <span style="color: #933;">4px</span> <span style="color: #933;">4px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>No browser seems to support the first notation yet. That&#8217;s fine as CSS3 isn&#8217;t complete. However, mozilla, webkit and khtml-based browsers should be ok. IE and Opera will just ignore those.</p>
<p>The syntax differs in some details though, see for example:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">    -moz-border-radius-bottomleft<span style="color: #00AA00;">:</span>      <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
    -webkit-border-bottom-left-radius<span style="color: #00AA00;">:</span>  <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>Oh, and Safari doesn&#8217;t seem to support a radius given in percent, mozilla does:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">    -webkit-border-bottom-left-radius<span style="color: #00AA00;">:</span>  <span style="color: #933;"><span style="color: #cc66cc;">10</span>%</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>This doesn&#8217;t work for me in Safari.</p>
<p> By the way, this blog&#8217;s wordpress template uses CSS3 border radiuses. Hi IE users <img src='http://www.nkuttler.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><b>Update</b>: <a href="http://snook.ca/archives/html_and_css/ie-rounded/">This post</a> led me to <a href="http://dillerdesign.com/">Drew Diller</a>&#8216;s blog. He has an <a href="http://dillerdesign.com/experiment/DD_roundies/">interesting technique for rounded corners in IE</a>.  Another technique by <a href="http://www.htmlremix.com/">Remiz</a>: see <a href="http://www.htmlremix.com/curved-corner-border-radius-cross-browser/">other technique for rounded corners in IE</a>. Who knows, maybe I will be able to deploy sites that use border radiuses in the future, even if Microsoft has no plans for supporting them in IE8.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/10/23/border-radius-in-safari/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Track clicks with mootools</title>
		<link>http://www.nkuttler.de/2008/10/13/track-outgoing-links-and-other-clicks-with-mootools/</link>
		<comments>http://www.nkuttler.de/2008/10/13/track-outgoing-links-and-other-clicks-with-mootools/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 08:40:00 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[clicktracking]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=141</guid>
		<description><![CDATA[Why would I want to track clicks you may ask. Well, for me it&#8217;s about usability and user flow optimization. If I do some ajax/dynamic stuff on a page, I want to see what the users are doing. As they leave no visible traces in the logs, I need to add some. It&#8217;s good to [...]]]></description>
			<content:encoded><![CDATA[<p>Why would I want to track clicks you may ask. Well, for me it&#8217;s about usability and user flow optimization. If I do some ajax/dynamic stuff on a page, I want to see what the users are doing. As they leave no visible traces in the logs, I need to add some.<span id="more-141"></span></p>
<p>It&#8217;s good to know which features the users use, how often, in what order etc. Do you need to advertise some functionality more? Maybe you need to prepare better documentation so that they even know how or why to use some things?</p>
<p>If you have outgoing links, you may want to know where your users are going? The ugly way of doing this would be to use some sort of redirect URLs and monitor those. But I don&#8217;t like that way. If I use mootools anyway I can track outgoing links more elegantly. And redirects certainly can&#8217;t handle ajax stuff.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> clicktrack<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> elements <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>id<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: #339933;">;</span>
    elements.<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: #339933;">,</span> index<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</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>
                <span style="color: #003366; font-weight: bold;">new</span> Image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'/usability/?click='</span>
                <span style="color: #339933;">+</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: #660066;">getParent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">id</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;amp;&quot;</span> <span style="color: #339933;">+</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: #660066;">id</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
clicktrack<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'mode'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Add a HTML that looks somewhat like this to get an idea what buttons your users are clicking.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>option 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>option 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>option 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Of course, in an ideal world, you&#8217;d want to offer non-JavaScript links too. Tracking outgoing links is even simpler, i&#8217;ll leave it as an exercise for the reader <img src='http://www.nkuttler.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/10/13/track-outgoing-links-and-other-clicks-with-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different CSS style for logged in WordPress users</title>
		<link>http://www.nkuttler.de/2008/10/05/use-different-css-style-for-logged-in-wordpress-users/</link>
		<comments>http://www.nkuttler.de/2008/10/05/use-different-css-style-for-logged-in-wordpress-users/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 09:35:00 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=66</guid>
		<description><![CDATA[Update: I wrote a theme switch plugin that changes the template for logged in users. It&#8217;s available here. I like to tweak my wordpress theme. And I&#8217;m far too lazy to set up a second blog just for development. So I&#8217;m looking for a solution to work on my template without distracting visitors. I think [...]]]></description>
			<content:encoded><![CDATA[<p><b>Update</b>: I wrote a theme switch plugin that changes the template for logged in users. It&#8217;s available <a href="http://www.nkuttler.de//nkthemeswitch/">here</a>.</p>
<p>I like to tweak my wordpress theme. And I&#8217;m far too lazy to set up a second blog just for development. So I&#8217;m looking for a solution to work on my template without distracting visitors. I think one day I&#8217;ll write an extension that is a little more powerful than this trick, but it&#8217;s a start.<span id="more-66"></span></p>
<p>The easiest case is that you sometimes want to play around with your CSS styles. In this case, just add something like the following example to your template header. Put it where you include your CSS, and only logged in users will see your experimental CSS.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    @import url(&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$user_ID</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/experimental.css&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;);
&lt;/style&gt;</pre></td></tr></table></div>

<p> Of course, you can be more specific than showing any logged in user the testing style. Just compare the <tt>$user_ID</tt> with some specific ID.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/10/05/use-different-css-style-for-logged-in-wordpress-users/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The biggest CSS annoyance</title>
		<link>http://www.nkuttler.de/2008/09/29/the-biggest-css-annoyance/</link>
		<comments>http://www.nkuttler.de/2008/09/29/the-biggest-css-annoyance/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:30:44 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=20</guid>
		<description><![CDATA[I think this is one of the biggest design flaws, and I see it all the time when I surf the net. What surprises me is that I even see it on sites that have valid code, a nice design and offer valuable services. Seriously, how can somebody miss that his complete page layout shifts [...]]]></description>
			<content:encoded><![CDATA[<p>I think this is one of the biggest design flaws, and I see it all the time when I surf the net. What surprises me is that I even see it on sites that have valid code, a nice design and offer valuable services.<span id="more-20"></span></p>
<p>Seriously, how can somebody miss that his complete page layout shifts some pixels to the left or right when looking at different pages of the same site.</p>
<p>Consider this, twitter without a scrollbar (I think this was my profile page).</p>

<p>The same site, but now with a scrollbar. Notice how all the content moves to the left.</p>

<p>On the next image I made an overlay of both shots to make the layout shifting more obvious.</p>

<p>In my opinion this is one of the biggest design errors, and everybody does it. And &#8211; it&#8217;s ridiculously easy to fix:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html <span style="color: #00AA00;">&#123;</span>
    overflow-y<span style="color: #00AA00;">:</span> <span style="color: #993333;">scroll</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Not using this is really hurting a website&#8217;s usability. When a user clicks on some navigation element the navigation is supposed to be at the same place on the next page. So, force the vertical scroll bar!</p>
<p>Now I just need to hire myself a good designer to make my page look good <img src='http://www.nkuttler.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/09/29/the-biggest-css-annoyance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Help! My mootools script doesn&#039;t work in IE!</title>
		<link>http://www.nkuttler.de/2008/09/22/help-my-mootools-script-doesnt-work-in-ie/</link>
		<comments>http://www.nkuttler.de/2008/09/22/help-my-mootools-script-doesnt-work-in-ie/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 07:37:14 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=68</guid>
		<description><![CDATA[Today I went through the pain of installing Windows XP. On QEMU. I wanted to do some JavaScript debugging for mootools. It turned out that IE was just a little picky about list formatting. Whenever you list things, IE scripting breaks if you add a comma behind the last element. It&#8217;s probably incorrect to add [...]]]></description>
			<content:encoded><![CDATA[<p>Today I went through the pain of installing Windows XP. On <a href="http://www.qemu.org">QEMU</a>. I wanted to do some JavaScript debugging for mootools. It turned out that IE was just a little picky about list formatting.<span id="more-68"></span></p>
<p>Whenever you list things, IE scripting breaks if you add a comma behind the last element. It&#8217;s probably incorrect to add a comma and the examples at <a href="http://docs.mootools.net">docs.mootools.net</a> are all correct. But it surprised me nonetheless as IE lets terribly broken HTML pass and other browsers are more forgiving. Anyway, fixing sloppy code is always a good thing.</p>
<p>This won&#8217;t work in the Internet Explorer I tested:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td 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> elements <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'sidebar'</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: #339933;">;</span>
    elements.<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: #339933;">,</span> index<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> elem <span style="color: #339933;">=</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: #339933;">;</span>
        elem.<span style="color: #660066;">addEvents</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</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>
                elem.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#ccf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</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: #003366; font-weight: bold;">var</span> myFx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Tween</span><span style="color: #009900;">&#40;</span>elem<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
                    duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span>
                    link<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ignore'</span><span style="color: #339933;">,</span>
                    transition<span style="color: #339933;">:</span> <span style="color: #3366CC;">'sine:out'</span><span style="color: #339933;">,</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                myFx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#ccf'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#eef'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>(Errors on lines 13 and 16)</p>
<p>This will work:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td 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> elements <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'sidebar'</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: #339933;">;</span>
    elements.<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: #339933;">,</span> index<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> elem <span style="color: #339933;">=</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: #339933;">;</span>
        elem.<span style="color: #660066;">addEvents</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</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>
                elem.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#ccf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</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: #003366; font-weight: bold;">var</span> myFx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Tween</span><span style="color: #009900;">&#40;</span>elem<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
                    duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span>
                    link<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ignore'</span><span style="color: #339933;">,</span>
                    transition<span style="color: #339933;">:</span> <span style="color: #3366CC;">'sine:out'</span>
                <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                myFx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#ccf'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'#eef'</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><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Some day I may read through the <a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">JavaScript specs</a> and find out if this behaviour is to be expected. Another resource I haven&#8217;t gone through yet is this <a href="http://mootools.net/blog/2007/06/05/help-i-dont-know-javascript/">excellent post</a> at the mootools blog.</p>
<p>If you&#8217;re interested in debugging JavaScript for IE you should read this <a href="http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html">How to debug JavaScript in IE</a> as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2008/09/22/help-my-mootools-script-doesnt-work-in-ie/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
