<?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>TechTrouts.com &#187; javascript</title>
	<atom:link href="http://techtrouts.com/topics/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtrouts.com</link>
	<description>Doin' the dev dance o/</description>
	<lastBuildDate>Thu, 23 Jul 2009 10:42:09 +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>JS_Growl: Mootools based Javascript Growl-like notifications</title>
		<link>http://techtrouts.com/js_growl-mootools-based-javascript-growl-like-notifications/</link>
		<comments>http://techtrouts.com/js_growl-mootools-based-javascript-growl-like-notifications/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 17:53:49 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://techtrouts.com/js_growl-mootools-based-javascript-growl-like-notifications/</guid>
		<description><![CDATA[Hello, For our current project we required some neat instant user notifications, therefore we created a simple Growl-inspired notification system using Mootools. Now updated for IE6 compatibility! Download it here! The package contains a sample.html very self-explanatory for most users; Just include the js_growl.js and the js_growl.css files in your page&#8217;s header and send a [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>For our current project we required some neat instant user notifications, therefore we created a simple <a href="http://growl.info/" title="Growl, instant notification for Mac OSX" target="_blank">Growl</a>-inspired notification system using <a href="http://mootools.net/" title="MooTools - a compact javascript framework" target="_blank">Mootools</a>.</p>
<p><font color="#800000">Now updated for IE6 compatibility!</font></p>
<p><a href="http://techtrouts.com/downloads/js_growl_03.zip" title="JS_Growl V0.3">Download it here!</a></p>
<p>The package contains a sample.html very self-explanatory for most users;</p>
<p>Just include the js_growl.js and the js_growl.css files in your page&#8217;s header and send a user notification whenever you need using:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">JS_Growl.<span style="color: #660066;">notify</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Your text or content html goes here.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Any bugs/features just give me a comment, i&#8217;ll check it out ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/js_growl-mootools-based-javascript-growl-like-notifications/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mootools: nice portfolio by 9tree using kwicks (Fx.Elements) and slides</title>
		<link>http://techtrouts.com/mootools-nice-portfolio-by-9tree-using-kwicks-fxelements-and-slides/</link>
		<comments>http://techtrouts.com/mootools-nice-portfolio-by-9tree-using-kwicks-fxelements-and-slides/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 16:05:26 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mootools-nice-portfolio-by-9tree-using-kwicks-fxelements-and-slides/</guid>
		<description><![CDATA[Hello, I&#8217;m just finishing our new website and i&#8217;ve been posting here the effects i&#8217;ve created for it. This one is a little more &#8220;show off&#8221;; It&#8217;s the way we&#8217;ve set up our portfolio using Fx.Elements for the togglers and Slides for the presentation images. You can check how it works here. Using this html: [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m just finishing <a href="http://9tree.net" title="9tree - Natural Revolution for the Web" target="_blank">our new website </a>and i&#8217;ve been posting here the effects i&#8217;ve created for it.<br />
This one is a little more &#8220;show off&#8221;;<br />
It&#8217;s the way we&#8217;ve set up our portfolio using Fx.Elements for the togglers and Slides for the presentation images.<br />
You can check how it works <a href="http://9tree.net/portfolio/" title="9tree, Portfolio" target="_blank">here</a>.</p>
<p>Using this html:</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
20
21
22
23
24
</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;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwicks_pics&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://4hsa.pt&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwicks_pic&quot;</span>&gt;</span>
		    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/4hsa_big.png&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
		  <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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://techtrouts.com&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwicks_pic&quot;</span>&gt;</span>
		    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/techtrouts_big.png&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
		  <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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://webandcookies.com&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwicks_pic&quot;</span>&gt;</span>
		    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/wac_big.png&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
		  <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>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwicks&quot;</span>&gt;</span>
	  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://4hsa.pt&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwick&quot;</span>&gt;</span>
	    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/4hsa1.png&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;4HSA - Qualidade e Seguran&amp;ccedil;a Alimentar&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;4HSA - Qualidade e Seguran&amp;ccedil;a Alimentar&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
	  <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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://techtrouts.com&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwick&quot;</span>&gt;</span>
	    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/techtrouts1.png&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
	  <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;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://webandcookies.com&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kwick&quot;</span>&gt;</span>
	    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/portfolio/webandcookies1.png&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
	  <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>
<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>This css:</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
20
21
22
23
24
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#kwicks_pics</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">880px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kwicks_pics</span> <span style="color: #6666ff;">.kwicks_pic</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kwicks</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kwicks</span> <span style="color: #6666ff;">.kwick</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/*width should be the same as javascript's var szNormal*/</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">55px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>And this Javascript:</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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
</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>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> sequential <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//changed to true requires to pass every intermediate image on slide</span>
	<span style="color: #003366; font-weight: bold;">var</span> szNormal <span style="color: #339933;">=</span> <span style="color: #CC0000;">55</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//should be the same as css #kwicks .kwick{width}</span>
	<span style="color: #003366; font-weight: bold;">var</span> szSmall  <span style="color: #339933;">=</span> <span style="color: #CC0000;">50</span><span style="color: #339933;">,</span> szFull <span style="color: #339933;">=</span> <span style="color: #CC0000;">250</span><span style="color: #339933;">,</span> selected<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> kwicks <span style="color: #339933;">=</span> $$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#kwicks .kwick&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> fx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Elements</span><span style="color: #009900;">&#40;</span>kwicks<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>wait<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">350</span><span style="color: #339933;">,</span> transition<span style="color: #339933;">:</span> Fx.<span style="color: #660066;">Transitions</span>.<span style="color: #000066;">Back</span>.<span style="color: #660066;">easeOut</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> kwickspics<span style="color: #339933;">=</span>$$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#kwicks_pics .kwicks_pic&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> kwickspics_obj<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>
		movingTo<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>kwickspics.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		selected<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>kwickspics.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		next_i<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
		checking<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
		on_move<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
		wait_delay_move<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
		the_fxs<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
		init<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>
			kwickspics.<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>kwickspic<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				kwickspics_obj.<span style="color: #660066;">the_fxs</span><span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Slide</span><span style="color: #009900;">&#40;</span>kwickspic<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
					duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">200</span><span style="color: #339933;">,</span>
					<span style="color: #006600; font-style: italic;">//transition: Fx.Transitions.Back.easeOut,  -- transitions here return error on IE7, no idea why :/</span>
					onComplete<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>kwickspics_obj.<span style="color: #660066;">wait_delay_move</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						kwickspics_obj.<span style="color: #660066;">wait_delay_move</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
						setTimeout<span style="color: #009900;">&#40;</span>kwickspics_obj.<span style="color: #660066;">checkStep</span><span style="color: #339933;">,</span><span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>kwickspics_obj.<span style="color: #660066;">next_i</span><span style="color: #339933;">!==</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						kwickspics_obj.<span style="color: #660066;">wait_delay_move</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
						kwickspics_obj.<span style="color: #660066;">the_fxs</span><span style="color: #009900;">&#91;</span>kwickspics_obj.<span style="color: #660066;">next_i</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">slideIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #339933;">=</span>kwickspics_obj.<span style="color: #660066;">next_i</span><span style="color: #339933;">;</span>
						kwickspics_obj.<span style="color: #660066;">on_move</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				kwickspics_obj.<span style="color: #660066;">the_fxs</span><span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</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;">&#40;</span><span style="color: #3366CC;">'kwicks_pics'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">visibility</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'visible'</span><span style="color: #339933;">;</span>
			kwickspics_obj.<span style="color: #660066;">the_fxs</span><span style="color: #009900;">&#91;</span>kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">slideIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		moveTo<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			kwickspics_obj.<span style="color: #660066;">movingTo</span><span style="color: #339933;">=</span>i<span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>kwickspics_obj.<span style="color: #660066;">checking</span><span style="color: #009900;">&#41;</span> kwickspics_obj.<span style="color: #660066;">checkStep</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		checkStep<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>kwickspics_obj.<span style="color: #660066;">on_move</span> <span style="color: #339933;">||</span> kwickspics_obj.<span style="color: #660066;">movingTo</span><span style="color: #339933;">==</span>kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				kwickspics_obj.<span style="color: #660066;">checking</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
				<span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			kwickspics_obj.<span style="color: #660066;">checking</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
			kwickspics_obj.<span style="color: #660066;">on_move</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>sequential<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-style: italic;">//requires to pass every image</span>
				kwickspics_obj.<span style="color: #660066;">next_i</span> <span style="color: #339933;">=</span> kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>kwickspics_obj.<span style="color: #660066;">movingTo</span> <span style="color: #339933;">?</span>  kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> <span style="color: #339933;">:</span> kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
				<span style="color: #006600; font-style: italic;">//go directly to final image</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> kwickspics_obj.<span style="color: #660066;">next_i</span><span style="color: #339933;">=</span>kwickspics_obj.<span style="color: #660066;">movingTo</span><span style="color: #339933;">;</span>
			kwickspics_obj.<span style="color: #660066;">the_fxs</span><span style="color: #009900;">&#91;</span>kwickspics_obj.<span style="color: #660066;">selected</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">slideOut</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
	kwickspics_obj.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
	kwicks.<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>kwick<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		kwick.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseenter&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> o <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
			o<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>kwick.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;width&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toInt</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> szFull<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span>
			kwicks.<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>other<span style="color: #339933;">,</span> j<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>i <span style="color: #339933;">!=</span> j<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> other.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;width&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toInt</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>w <span style="color: #339933;">!=</span> szSmall<span style="color: #009900;">&#41;</span> o<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>w<span style="color: #339933;">,</span> szSmall<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</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>
			fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			kwickspics_obj.<span style="color: #660066;">moveTo</span><span style="color: #009900;">&#40;</span>i<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>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;kwicks&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseleave&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> o <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
		kwicks.<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>kwick<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			o<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>kwick.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;width&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toInt</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> szNormal<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span>o<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>Hope you&#8217;ll put it to good work ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mootools-nice-portfolio-by-9tree-using-kwicks-fxelements-and-slides/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mootools: smooth font resize onmouseover (mouseenter) &#8220;bump&#8221;</title>
		<link>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/</link>
		<comments>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 15:36:04 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/</guid>
		<description><![CDATA[Hello, this is the smooth font resize for css class &#8220;.bump&#8221; effect. Just put class=&#8221;bump&#8221; on the items you want and use the following javascript somewhere on your page. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>this is the smooth font resize for css class &#8220;.bump&#8221; effect.<br />
Just put <em>class=&#8221;bump&#8221;</em> on the items you want and use the following javascript somewhere on your page.</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
20
21
22
23
24
25
26
27
28
</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> 
&nbsp;
	<span style="color: #006600; font-style: italic;">//scaling values</span>
	<span style="color: #003366; font-weight: bold;">var</span> scale_px<span style="color: #339933;">=</span><span style="color: #CC0000;">6</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> scale_em<span style="color: #339933;">=</span><span style="color: #CC0000;">0.3</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> bumps<span style="color: #339933;">=</span>$$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.bump'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	bumps.<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>bump<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> init_size<span style="color: #339933;">=</span>bump.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> units<span style="color: #339933;">=</span>init_size.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/em/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'em'</span> <span style="color: #339933;">:</span> init_size.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/px/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'px'</span> <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>units<span style="color: #339933;">===</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> size_up<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>init_size.<span style="color: #660066;">toFloat</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>units<span style="color: #339933;">==</span><span style="color: #3366CC;">'em'</span> <span style="color: #339933;">?</span> scale_em <span style="color: #339933;">:</span> scale_px<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>units<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> fx<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Morph</span><span style="color: #009900;">&#40;</span>bump<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">90</span><span style="color: #339933;">,</span> wait<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> transition<span style="color: #339933;">:</span>Fx.<span style="color: #660066;">Transitions</span>.<span style="color: #000066;">Back</span>.<span style="color: #660066;">easeOut</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		bump.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseenter&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">:</span>size_up
			<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>
		bump.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mouseleave&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">:</span>init_size
			<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>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Note: In order for this to work on IE7 you need to have some font-size defined in your css for every &#8220;.bump&#8221; on your page. Otherwise font-size will return &#8220;100%&#8221;, and it get&#8217;s impossible to know how to resize &#8211; i&#8217;ve tried it &#8211; damn IE :/</p>
<p>You can check it working <a href="http://9tree.net/" title="9tree - Natural Revolution for the Web" target="_blank">here</a>, on the links under &#8220;We Provide:&#8221;.<br />
Tanks :)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mootools-smooth-font-resize-onmouseover-mouseenter-bump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools: smoothscroll highlight element id and highlight anchor onload</title>
		<link>http://techtrouts.com/mootools-on-complete-smoothscroll-highlight-element-id/</link>
		<comments>http://techtrouts.com/mootools-on-complete-smoothscroll-highlight-element-id/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 23:25:04 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mootools-on-complete-smoothscroll-highlight-element-id/</guid>
		<description><![CDATA[Hi, i&#8217;ve created a little script for highlighting an element onComplete of the Mootools&#8217; SmoothScroll. I&#8217;ve also added a line to highlight the selected anchor onload, in case the url already contains the anchor hash on page load. Here it is: Mootools 1.1 Version: 1 2 3 4 5 6 7 8 9 10 11 [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>i&#8217;ve created a little script for highlighting an element onComplete of the Mootools&#8217; SmoothScroll.<br />
I&#8217;ve also added a line to highlight the selected anchor onload, in case the url already contains the anchor hash on page load.</p>
<p>Here it is:</p>
<p>Mootools 1.1 Version:</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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</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> 
&nbsp;
	<span style="color: #006600; font-style: italic;">//default colors - if 'background-color' or 'color' aren't defined in css</span>
	<span style="color: #003366; font-weight: bold;">var</span> default_bg_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> default_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#000'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//highlight colors</span>
	<span style="color: #003366; font-weight: bold;">var</span> h_bg_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#eeeebb'</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> h_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#999'</span><span style="color: #339933;">;</span>
&nbsp;
	highlight_anchors<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> $$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span> <span style="color: #339933;">||</span> <span style="color: #000066; font-weight: bold;">typeof</span> $$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> item_id<span style="color: #339933;">=</span>$$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #003366; font-weight: bold;">var</span> fx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Styles</span><span style="color: #009900;">&#40;</span>item_id<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">400</span><span style="color: #339933;">,</span> wait<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> has_bg_color <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">'transparent'</span><span style="color: #339933;">?</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> has_color <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">'inherit'</span><span style="color: #339933;">?</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> cur_bg_color<span style="color: #339933;">=</span> has_bg_color <span style="color: #339933;">?</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> default_bg_color<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> cur_color<span style="color: #339933;">=</span> has_color <span style="color: #339933;">?</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> default_color<span style="color: #339933;">;</span>
		fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">:</span> h_bg_color<span style="color: #339933;">,</span>
				<span style="color: #3366CC;">'color'</span><span style="color: #339933;">:</span> h_color
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">chain</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: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">:</span> cur_bg_color<span style="color: #339933;">,</span>
					<span style="color: #3366CC;">'color'</span><span style="color: #339933;">:</span> cur_color
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">chain</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: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>has_bg_color<span style="color: #009900;">&#41;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<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;">'transparent'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>has_color<span style="color: #009900;">&#41;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'inherit'</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>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//if anchor hash already exists, highlight onload</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> highlight_anchors<span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//setup smoothscroll</span>
	<span style="color: #003366; font-weight: bold;">new</span> SmoothScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span> onComplete<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>
		highlight_anchors<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">anchor</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></pre></td></tr></table></div>

<p>Mootools 1.2 version:</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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
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> 
&nbsp;
	<span style="color: #006600; font-style: italic;">//default colors - if 'background-color' or 'color aren't defined in css</span>
	<span style="color: #003366; font-weight: bold;">var</span> default_bg_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> default_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#000'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//highlight colors</span>
	<span style="color: #003366; font-weight: bold;">var</span> h_bg_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#eeeebb'</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> h_color<span style="color: #339933;">=</span><span style="color: #3366CC;">'#999'</span><span style="color: #339933;">;</span>
&nbsp;
	highlight_anchors<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>item_id<span style="color: #339933;">==</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> $$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span> <span style="color: #339933;">||</span> <span style="color: #000066; font-weight: bold;">typeof</span> $$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'undefined'</span> <span style="color: #339933;">||</span> $$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">==</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> item_id<span style="color: #339933;">=</span>$$<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> fx <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Fx.<span style="color: #660066;">Morph</span><span style="color: #009900;">&#40;</span>item_id<span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">400</span><span style="color: #339933;">,</span> wait<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> has_bg_color <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">'transparent'</span><span style="color: #339933;">?</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> has_color <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">!=</span><span style="color: #3366CC;">'inherit'</span><span style="color: #339933;">?</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> cur_bg_color<span style="color: #339933;">=</span> has_bg_color <span style="color: #339933;">?</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> default_bg_color<span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> cur_color<span style="color: #339933;">=</span> has_color <span style="color: #339933;">?</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> default_color<span style="color: #339933;">;</span>
		fx.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">:</span> h_bg_color<span style="color: #339933;">,</span>
				<span style="color: #3366CC;">'color'</span><span style="color: #339933;">:</span> h_color
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">chain</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: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">:</span> cur_bg_color<span style="color: #339933;">,</span>
					<span style="color: #3366CC;">'color'</span><span style="color: #339933;">:</span> cur_color
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">chain</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: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>has_bg_color<span style="color: #009900;">&#41;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<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;">'transparent'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>has_color<span style="color: #009900;">&#41;</span> $<span style="color: #009900;">&#40;</span>item_id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'inherit'</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>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//if anchor hash already exists, highlight onload</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">'undefined'</span><span style="color: #009900;">&#41;</span> highlight_anchors<span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//setup smoothscroll</span>
	<span style="color: #003366; font-weight: bold;">new</span> SmoothScroll<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span> onComplete<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>
		highlight_anchors<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">anchor</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></pre></td></tr></table></div>

<p>You can check it working <a href="http://9tree.net/services/#optimizacao_seo" title="9Tree, Web Design And Development Services" target="_blank">here</a>.<br />
Hope it will get useful for someone ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mootools-on-complete-smoothscroll-highlight-element-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What about backward compatibility modules?</title>
		<link>http://techtrouts.com/what-about-backward-compatibility-modules/</link>
		<comments>http://techtrouts.com/what-about-backward-compatibility-modules/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 18:32:53 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[how-tos]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[naturePhp]]></category>
		<category><![CDATA[opinion]]></category>

		<guid isPermaLink="false">http://techtrouts.com/what-about-backward-compatibility-modules/</guid>
		<description><![CDATA[Hi again, being working a lot with mootools, dojo, wordpress and some other frameworks and toolkits lately, my question today is this: Why, most of the times, don&#8217;t frameworks and toolkits developers launch any backward compatibility modules at all? It might seem pretty complicated getting old deprecated funcionalities working  on newer, better versions, but, apart [...]]]></description>
			<content:encoded><![CDATA[<p>Hi again,</p>
<p>being working a lot with <a href="http://mootools.net/" title="MooTools - a compact javascript framework">mootools</a>, <a href="http://dojotoolkit.org/" title="The Dojo Toolkit" target="_blank">dojo</a>, <a href="http://wordpress.org/" title="WordPress › Blog Tool and Weblog Platform" target="_blank">wordpress</a> and some other frameworks and toolkits lately, my question today is this:<br />
Why, most of the times, don&#8217;t frameworks and toolkits developers launch any <a href="http://en.wikipedia.org/wiki/Backward_compatibility" title="Backward compatibility - Wikipedia, the free encyclopedia" target="_blank">backward compatibility</a> modules at all?</p>
<p>It might seem pretty complicated getting old deprecated funcionalities working  on newer, better versions, but, apart from some real specific embembed funcionalities, it really shouldn&#8217;t be that hard.</p>
<p>For the following example i&#8217;ll use Mootools as an explanatory example:</p>
<p>All you need is a nicely designed dynamic version transitioning system.<br />
One that allows you to, anytime on the execution, define which version will the following code run on.</p>
<p>Imagine you design a backward compatibility plugin from version B to version A.<br />
On version C you&#8217;ll design a backward compatibility plugin to version B.</p>
<p>So now, on a page running &#8220;mootools-C.js&#8221; you should include the backward compatibility modules &#8220;mootools-back-C-B.js&#8221; and &#8220;mootools-back-B-A.js&#8221;, or a compiled version (having just a copy paste of both previous files content) &#8220;mootools-back-C-to-A.js&#8221;.</p>
<p>So if you run something like &#8220;Mootools.use_version(&#8216;A&#8217;);&#8221; the dynamic version transitioning system would automatically look for it&#8217;s previous version compatilities execution for version B at, let&#8217;s suppose, &#8220;MootoolsBack_C_B();&#8221; and then rerun the same command (&#8220;Mootools.use_version(&#8216;A&#8217;);&#8221;) while already running on version B to travel back to version A (the dynamic version transitioning system, already on version B would run something like &#8220;MootoolsBack_B_A();&#8221;).</p>
<p>This method would, in theory, work for multiple version transitions without having to design a specific plugin for each version to version compatibility. It would save developers hours in trying to put two different tools, based on two different framework/toolkit versions, together on the same execution &#8211; like using both <a href="http://www.e-magine.ro/web-dev-and-design/41/moodalbox_1_3_b2/" title="MOOdalBox 1.3 is now cooking (Beta 2 is here)" target="_blank">MOOdalbox 1.3 beta 2</a> and <a href="http://www.outcut.de/MooFlow/" title="Mooflow (aka Coverflow)" target="_blank">mooflow v0.2</a> in the same page.</p>
<p>The system would work both ways, as you could &#8220;Mootools.version_reset();&#8221; or &#8220;Mootools.use_version(&#8216;C&#8217;);&#8221; to travel back to version C on the rest of the execution, the system would run the consecutive version travel functions eg. &#8220;MootoolsBack_A_B();&#8221; and &#8220;MootoolsBack_B_C();&#8221; and the rest of the code would be running on Mootools version C.</p>
<p>This &#8220;dynamic version transitioning system&#8221; will be used for every release transition on <a href="http://naturephp.org/" title="NaturePhp - An Open Source Natural PHP Toolkit" target="_blank">NaturePhp</a>.<br />
It might not work perfectly at first, but it will certainly relieve many developers&#8217; headaches.</p>
<p>I hope in the future more and more projects start using a system like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/what-about-backward-compatibility-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Firefox 3 for Mac is awesome</title>
		<link>http://techtrouts.com/mozilla-firefox-3-for-mac-is-awesome/</link>
		<comments>http://techtrouts.com/mozilla-firefox-3-for-mac-is-awesome/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 11:53:52 +0000</pubDate>
		<dc:creator>Carlos Ouro</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://techtrouts.com/mozilla-firefox-3-for-mac-is-awesome/</guid>
		<description><![CDATA[Hi there, i&#8217;ve used firefox for development for quite some time now, but on a mac i&#8217;ve always liked Safari better for regular web browsing, as it always been much faster and cute. But the recently released Firefox 3 for Mac really changed my mind. It is, without a doubt, awesome. Runs perfectly smoothly, really [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there,</p>
<p>i&#8217;ve used firefox for development for quite some time now, but on a mac i&#8217;ve always liked Safari better for regular web browsing, as it always been much faster and cute.</p>
<p>But the recently released Firefox 3 for Mac really changed my mind. It is, without a doubt, awesome. Runs perfectly smoothly, really nice design, fastest browser ever.</p>
<p>Firefox 2 versions really dragged around with heavy Javascript applications such as <a href="http://gmail.com" title="Gmail: Email from google" target="_blank">Gmail</a> or our upcoming <a href="http://fallforwardgame.com" title="FallForward: A google maps based multiplayer strategy game" target="_blank">FallForward</a>, but this new version handles javascript even better than Safari 3.<br />
This release has been a really nice boost for my web browsing as i&#8217;ve not been much into the latest beta versions of Firefox 3.</p>
<p>The bad part is <a href="http://getfirebug.com/" title="Firebug - Web Development Evolved" target="_blank">Firebug</a> still hasn&#8217;t come out on it&#8217;s official release for Firefox 3. However, i&#8217;m using the <a href="http://getfirebug.com/releases/" title="Firebug Releases" target="_blank">beta</a> and it works really nice &#8211; and everything is perfect again.</p>
<p>A &#8220;must have&#8221; indeed.</p>
<p>Great work for the guys at <a href="http://www.mozilla.com/en-US/about/" title="About Mozilla" target="_blank">Mozilla</a>!!<br />
By the way, great website design for <a href="http://www.mozilla.com" title="Mozilla | Firefox web browser &amp; Thunderbird email client" target="_blank">http://www.mozilla.com</a> ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://techtrouts.com/mozilla-firefox-3-for-mac-is-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
