<?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>Fuel Your Coding &#187; Freebies</title>
	<atom:link href="http://fuelyourcoding.com/category/freebies/feed/" rel="self" type="application/rss+xml" />
	<link>http://fuelyourcoding.com</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 11:01:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WebDeveloperWeekly: A Free Newsletter for Web Developers</title>
		<link>http://fuelyourcoding.com/webdeveloperweekly-a-free-newsletter-for-web-developers/</link>
		<comments>http://fuelyourcoding.com/webdeveloperweekly-a-free-newsletter-for-web-developers/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 22:45:15 +0000</pubDate>
		<dc:creator>Jerod Santo</dc:creator>
				<category><![CDATA[Freebies]]></category>

		<guid isPermaLink="false">http://fuelyourcoding.com/?p=1388</guid>
		<description><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
]]></description>
			<content:encoded><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
<p><a href="http://designerfoo.com/">Manoj Sachwani</a> &mdash; a contributor here at Fuel Your Coding &mdash; is launching a free weekly newsletter just for web developers!</p>
<p><a href="http://www.webdeveloperweekly.com/"><img src="http://fuelyourcoding.com/files/mainlogo-600x198.jpg" alt="mainlogo" title="mainlogo" width="600" height="198" class="aligncenter size-medium wp-image-1390" /></a></p>
<p>Manoj says there will be just one email each Saturday and absolutely no spam. Right now the newsletter will mostly be sharing valuable links for developers, but he is open to feedback and would love us to help him improve it.</p>
<p>Potential topics include:</p>
<blockquote><p>AJAX, AS3, ASP, ASP.net, Browsers, CSS,Cappuccino, CoffeeScript, Cold Fusion, Flash, Flex, HTML, HTML5, JavaScript, Media, PHP, Photoshop, Prototype, RSS, Rails and Ruby, SOAP, SQL, SVG, Semantic, WAP, XML, YUI, jQuery,Jobs, &#038; more</p></blockquote>
<p>Looks like he has something for everybody in that list. If you&#8217;re interested head on over to <a href="http://www.webdeveloperweekly.com/">WebDeveloperWeeky.com</a> and subscribe!</p>
]]></content:encoded>
			<wfw:commentRss>http://fuelyourcoding.com/webdeveloperweekly-a-free-newsletter-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Table of Contents jQuery Plugin</title>
		<link>http://fuelyourcoding.com/table-of-contents-jquery-plugin/</link>
		<comments>http://fuelyourcoding.com/table-of-contents-jquery-plugin/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 17:35:12 +0000</pubDate>
		<dc:creator>Douglas Neiner</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Plugins / Add-Ons]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[table of contents]]></category>

		<guid isPermaLink="false">http://fuelyourcoding.com/?p=578</guid>
		<description><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
]]></description>
			<content:encoded><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
<p>This is just a short Friday post to announce a new jQuery plugin for you to use, <a href="http://github.com/dcneiner/TableOfContents/tree/master">fork</a> and adapt for your projects! This plugin takes either a part of a web page, or the entire page, and builds a table of contents based on the H1 through H6 tags. Additionally, it can <a href="/scripts/toc/examples/example2.html">add &#8220;Top&#8221; links to the headers</a>, be styled as nested &lt;ol&gt; or &lt;ul&gt; list, be styled as a straight list of links, and it even supports a <a href="/scripts/toc/examples/example3.html">proportionate spacing style </a>that matches the actual distance between the headers.</p>
<div class="post_buttons"><a href="http://fuelyourcoding.com/scripts/toc/jquery.toc.zip"><img class="size-full wp-image-24 alignnone" style="margin-left: 30px" src="http://fuelyourcoding.com/files/download-button.gif" alt="Download zipped archive" width="229" height="68" /></a><a href="http://fuelyourcoding.com/scripts/toc/"><img class="size-full wp-image-25 alignnone" style="margin-left: 30px" src="http://fuelyourcoding.com/files/example-button.gif" alt="View the example" width="229" height="68" /></a></p>
</div>
<p>All this was inspired yesterday by Janko&#8217;s article yesterday, &#8220;<a href="http://www.jankoatwarpspeed.com/post/2009/08/20/Table-of-contents-using-jQuery.aspx">Automatically generate table of contents using jQuery</a>.&#8221; Start by reading his article to get a background on the topic, then head over to the <a href="/scripts/toc/index.html">documentation page</a> for the download link as well as three different examples of usage.</p>
<p>This plugin is version 0.8, so please comment on any bugs you find. Feel free to <a href="http://github.com/dcneiner/TableOfContents/tree/master">follow or fork the project on github</a> as well! Keep in mind I didn&#8217;t spend ages getting the CSS on the example pages to be cross-browser ready, though the plugin itself has full cross-browser support.</p>
]]></content:encoded>
			<wfw:commentRss>http://fuelyourcoding.com/table-of-contents-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>In-Field Labels: A Better Way + jQuery Plugin</title>
		<link>http://fuelyourcoding.com/in-field-labels/</link>
		<comments>http://fuelyourcoding.com/in-field-labels/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:45:18 +0000</pubDate>
		<dc:creator>Douglas Neiner</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Plugins / Add-Ons]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://fuelyourcoding.com/?p=465</guid>
		<description><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
]]></description>
			<content:encoded><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
<p>Last week I was dealing with a unique problem. I needed to set focus to a username field, but the field had an in-field label. The script was set to clear out the helper text (label) when the user entered the field. Hmm&#8230;. that won&#8217;t work! I remember seeing a nicer implementation on <a href="http://me.com" target="_blank">Mobile Me</a> for their login. Basically the label stays over the input element even after it had focus. Only after typing began did it totally disappear. Inspired by that implementation, today I am releasing the In-Field Labels jQuery Plugin so you can use this new method as well. The plugin is open source and available for <a href="http://fuelyourcoding.com/scripts/infield/InFieldLabels.zip">download</a> or on <a href="http://github.com/dcneiner/In-Field-Labels-jQuery-Plugin/tree">Github</a>. If you can make it better, please fork it and send a pull request when you have finished your changes!</p>
<div class="post_buttons"><a href="http://fuelyourcoding.com/scripts/infield/InFieldLabels.zip"><img class="size-full wp-image-24 alignnone" style="margin-left: 30px" src="http://fuelyourcoding.com/files/download-button.gif" alt="Download zipped archive" width="229" height="68" /></a><a href="http://fuelyourcoding.com/scripts/infield/"><img class="size-full wp-image-25 alignnone" style="margin-left: 30px" src="http://fuelyourcoding.com/files/example-button.gif" alt="View the example" width="229" height="68" /></a></div>
<h2><span style="font-weight: normal">Benefits</span></h2>
<ul>
<li>The input element or textarea never really has content, so validation can proceed without first checking for the field value.</li>
<li>It uses standard markup for form elements</li>
<li>It is under 1KB when minified and gzipped</li>
<li>It takes one line of jQuery code to implement.</li>
<li>The overlay can contain images and other HTML elements</li>
<li>Its compatible with all modern browsers (And even IE6, the &#8220;not-so-modern&#8221; browser).</li>
</ul>
<h2><span style="font-weight: normal">Issues</span></h2>
<p><span style="font-weight: normal">Like all in-field label implementations, this plugin still has problems when the browser tries to pre-fill the fields. When Safari and Firefox pre-fills the fields for the user, it never sends a &#8220;change&#8221; event to hook into. You can get around this by adding autocomplete=&#8221;off&#8221; to the input elements, but this is undesirable for longer forms. I am looking for a fix, but for now, this plugin is still usable for shorter forms!</span></p>
<h2><span style="font-weight: normal">Quick Overview</span></h2>
<p><span style="font-weight: normal">The effect is achieved by overlaying the label element over the input, password, or textarea and making it semi-transparent when the field has focus. Once a keystroke is detected the label disappears entirely until the field loses focus. If it is empty on blur, then the label fades back in. Clicking on the label auto sets focus on the field.</span></p>
<h2><span style="font-weight: normal">Download It</span></h2>
<p><span style="font-weight: normal">Head over to the <a href="http://fuelyourcoding.com/scripts/infield/">Sample Page</a> to read more about the plugin and to download it. Let me know your thoughts and suggestions in the comments below!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fuelyourcoding.com/in-field-labels/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
		<item>
		<title>Panoramic Photoviewer in Javascript</title>
		<link>http://fuelyourcoding.com/panoramic-photoviewer-in-javascript/</link>
		<comments>http://fuelyourcoding.com/panoramic-photoviewer-in-javascript/#comments</comments>
		<pubDate>Mon, 04 May 2009 12:44:20 +0000</pubDate>
		<dc:creator>Gaya Kessler</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[panorama]]></category>
		<category><![CDATA[panoramic]]></category>

		<guid isPermaLink="false">http://fuelyourcoding.com/?p=53</guid>
		<description><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>

&#60;div class='photo' style='display: none;' id='navigate'&#62;
	&#60;div class='fixed opt1'&#62;
		&#60;!-- this is optional --!&#62;
		&#60;a href='http://gayadesign.com/post/' class='button1'&#62;

		&#60;/a&#62;
		&#60;a href='http://gayadesign.com/portfolio/' class='button2'&#62;

		&#60;/a&#62;
		&#60;a href='http://gayadesign.com/about/' class='button3'&#62;

		&#60;/a&#62;
		&#60;a href='http://gayadesign.com/partners/' class='button4'&#62;

		&#60;/a&#62;
		&#60;a href='http://gayadesign.com/contact/' class='button5'&#62;

		&#60;/a&#62;
	&#60;/div&#62;
&#60;/div&#62;

The overall container “navigate” will always be hidden prior to the actual Javascript call. I also gave the fixed div a second class. This classname will point to the options of the container; the height [...]]]></description>
			<content:encoded><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
<p>As a webdesigner you might have had this problem: “I’ve got a nice looking wide image, but I don’t want my visitors to scroll horizontally.”</p>
<p>A colleague showed me a new project he was working on. A large image appeared and I had the ability to drag and move the image around in a container. Not super efficient if you ask me, I still had to grab the image and move it around holding my mouse button. Can’t there be an easier way?</p>
<p>This article will show you my solution to the problem and maybe even a different approach on navigation.</p>
<p><img class="alignnone size-full wp-image-56" title="Panoramic Photoviewer in Javascript" src="http://fuelyourcoding.com/files/panoramicphotoviewerimg.jpg" alt="Panoramic Photoviewer in Javascript" width="606" height="132" /></p>
<div class="post_buttons"><a href="http://www.fuelyourcoding.com/scripts/photonav/jqueryphotonav.zip"><img class="size-full wp-image-24 alignnone" title="Download zipped archive" src="http://fuelyourcoding.com/files/download-button.gif" alt="Download zipped archive" width="229" height="68" /></a><a href="http://www.fuelyourcoding.com/scripts/photonav/"><img class="size-full wp-image-25 alignnone" title="View the example" src="http://fuelyourcoding.com/files/example-button.gif" alt="View the example" width="229" height="68" /></a></div>
<p>The <em>example page</em> is located here:<br />
<a href="http://fuelyourcoding.com/scripts/photonav/">http://www.fuelyourcoding.com/scripts/photonav/</a></p>
<p>And the <em>archive is downloadable</em> here:<br />
<a onclick="javascript:pageTracker._trackPageview('/scripts/photonav/jqueryphotonav.zip');" href="http://fuelyourcoding.com/scripts/photonav/jqueryphotonav.zip">http://fuelyourcoding.com/scripts/photonav/jqueryphotonav.zip</a></p>
<h2>What is it?</h2>
<p>This photo container has been adjusted to “move” with the cursor. To achieve this I used Javascript and a library called <a onclick="javascript:pageTracker._trackPageview('/outbound/article/jQuery.com');" href="http://jquery.com/">jQuery</a>.</p>
<h2>What do we have and what do we need to do?</h2>
<ol>
<li>Create a HTML layout for the picture to get in.</li>
<li>Adjust the CSS.</li>
<li>Make a call to PhotoNav in Javascript.</li>
</ol>
<h2>1. Create a HTML layout</h2>
<p>This is the easiest step. It might just as well be a copy paste of the code below. But be aware of three things.<br />
First give the overall container an id (so Javascript can grab the object).<br />
Then make sure the div with classname <em>fixed</em> gets a second classname to correspond with the CSS (I used <em>opt1</em> and <em>opt2</em>).<br />
Determine if you want to have links inside of the container, if not; you can leave the container empty.</p>
<p>Take a look at the code below:</p>
<pre class="brush: xml;">
&lt;div class='photo' style='display: none;' id='navigate'&gt;
	&lt;div class='fixed opt1'&gt;
		&lt;!-- this is optional --!&gt;
		&lt;a href='http://gayadesign.com/post/' class='button1'&gt;

		&lt;/a&gt;
		&lt;a href='http://gayadesign.com/portfolio/' class='button2'&gt;

		&lt;/a&gt;
		&lt;a href='http://gayadesign.com/about/' class='button3'&gt;

		&lt;/a&gt;
		&lt;a href='http://gayadesign.com/partners/' class='button4'&gt;

		&lt;/a&gt;
		&lt;a href='http://gayadesign.com/contact/' class='button5'&gt;

		&lt;/a&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>The overall container “navigate” will always be hidden prior to the actual Javascript call. I also gave the <em>fixed</em> div a second class. This classname will point to the options of the container; the height and the background image (the actual image that needs scrolling).<br />
You can add <em>&lt;a&gt; tags</em> to the <em>fixed</em> container. I gave them all classnames so they can be positioned in the CSS. This part is optional.</p>
<p>Remember to include the jQuery library and the PhotoNav Javascript files in the header. Also include the CSS file <em>photonav.css</em>.</p>
<pre class="brush: xml;">
&lt;script src=&quot;js/jquery-1.3.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;js/photonavjQuery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;link href='css/photonav.css' rel='stylesheet' type='text/css' /&gt;
</pre>
<h2>2. Adjust the CSS<br />
</h2>
<p>The top part of the CSS has to stay the way it is, do not adjust it if you don’t know what you are doing. I put a comment at the spot where you can start to edit the CSS.<br />
I’ll describe what to do at each part of the CSS.</p>
<p><strong>.photonav .photo: </strong></p>
<pre class="brush: css;">
.photonav .photo {
	width: 400px;
	margin: 10px;
	border: 1px solid gray;
}
</pre>
<p>Adjust the width of the total container. This has to be a fixed width in order for it to work in IE6. I have no idea why, but if the <em>width</em> was set to <em>100%</em>, the height was 0px. You can do <em>100%</em> in other browser with the <em>!important</em> trick.<br />
The margin and border are optional, just make it as you’d like.</p>
<p><strong>.photonav .photo .opt1:</strong></p>
<pre class="brush: css;">
.photonav .photo .opt1 {
	height: 100px;
	background-image: url();
}
</pre>
<p>This is the height of the photo container, at least, the <em>fixed</em> container. But notice the <em>.opt1</em>, it is the second classname we added to the <em>fixed</em> container in the HTML part.<br />
The background image is the image that has to be viewed inside the container.</p>
<p><em>The next part is optional and only if you want buttons inside the container.</em></p>
<p><strong>a.button*:</strong></p>
<pre class="brush: css;">
a.button1 {
	margin-left: 20px;
	margin-top: 30px;
	width: 100px;
	height: 90px;
	background-image: url();
}

a.button1:hover {
	background-image: url();
}
</pre>
<p>In order to create a menu navigation like I did on the preview page, you need to add <em>a tags</em> with different classnames. Define the pixels from the left side and the top of the container in the margin values. State the width and height of the button and the background image (if needed).<br />
To create an <em>onhover</em> effect you can add an other image in the <em>:hover</em> part.<br />
If you want a second <em>a tag</em> next to the other, subtract the <em>height </em>of the previous button from the margin-top.</p>
<h2>3. Make a call to PhotoNav in Javascript</h2>
<p>Now that you’ve got all the necessary HTML and CSS set, you can call the PhotoNav functionality. The following code can be put in a js file or in a <em>script</em> tag.</p>
<pre class="brush: jscript;">
document.getElementById('navigate').style.display = 'block';
PhotoNav.init('navigate', 758, 1412, false);
</pre>
<p>The specification is:<br />
<strong>function </strong>init(<strong>String </strong><em>id_of_container</em>, <strong>int </strong><em>width_of_container</em>, <strong>int </strong><em>width_of_panorama_picture</em>, <strong>bool</strong> <em>debugMode</em>);</p>
<p><strong>String </strong><em>id_of_container</em>:<br />
The id of the container.</p>
<p><strong>int </strong><em>width_of_container</em>:<br />
Give the width in pixels of the <em>fixed</em> container. For calculating reasons.</p>
<p><strong>int </strong><em>width_of_panorama_picture</em>:<br />
Give the width in pixels of the <span style="font-style: italic;">panoramic </span><em>picture</em>. For calculating reasons.</p>
<p><strong>bool</strong> <em>debugMode</em>:<br />
Enable debug mode. Outputting value to the HTML element with id <em>’status’</em>. (default: false)</p>
<p>If you want to enable debug mode, you have to insert the following code somewhere in your HTML:</p>
<pre class="brush: xml;">
&lt;div id='status'&gt;
	&amp;nbsp;
&lt;/div&gt;
</pre>
<h2>Conclusion</h2>
<p>Now that everything is set, you can fire the thing up! Enable the navigation on loading a page or by triggering an event in Javascript. If you have implementations of this script, post your examples in the comment section, I’d like to see them.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://fuelyourcoding.com/panoramic-photoviewer-in-javascript/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Garagedoor effect using Javascript</title>
		<link>http://fuelyourcoding.com/garagedoor-effect-using-javascript/</link>
		<comments>http://fuelyourcoding.com/garagedoor-effect-using-javascript/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 23:35:33 +0000</pubDate>
		<dc:creator>Gaya Kessler</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[scriptaculous]]></category>

		<guid isPermaLink="false">http://fuelyourcoding.com/?p=3</guid>
		<description><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>

&#60;script src=&#34;js/prototype.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;
&#60;script src=&#34;js/scriptaculous.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;

&#60;script src=&#34;js/garagedoor.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;
&#60;link href='css/garagedoor.css' rel='stylesheet' type='text/css' /&#62;

This will load the scripts and styles needed for the GarageDoor to work. Adjust the paths where needed.

The next thing you want to do is to create the HTML layout for the garagedoors. The following code shows the structure you need to create for your document:

&#60;div [...]]]></description>
			<content:encoded><![CDATA[<p><p><a href="http://rss.buysellads.com/click.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" target="_blank"><img src="http://rss.buysellads.com/img.php?z=1271313&k=f16d4ddc81a95a47348dcddb230bad58&a=<?php echo($a); ?>&c=<?php echo(rand()); ?>" border="0" alt="" /></a></p><p><a href="http://buysellads.com/buy/sitedetails/pubkey/f16d4ddc81a95a47348dcddb230bad58/zone/1271313" target="_blank">Advertise here via BSA</a></p></p>
<p>The GarageDoor effect &#8211; creating one has now been made easy! This tutorial explains everything you need to know on how to create the same effect yourself.</p>
<p><img class="alignnone size-full wp-image-17" title="Garagedoor effect using Javascript" src="http://fuelyourcoding.com/files/garagedoorpostimg.jpg" alt="Garagedoor effect using Javascript" width="606" height="162" /></p>
<div class="post_buttons"><a href="http://fuelyourcoding.com/scripts/garagedoor/garagedoor.zip"><img class="size-full wp-image-24 alignnone" title="Download zipped archive" src="http://fuelyourcoding.com/files/download-button.gif" alt="Download zipped archive" width="229" height="68" /></a><a href="http://fuelyourcoding.com/scripts/garagedoor/"><img class="size-full wp-image-25 alignnone" title="View the example" src="http://fuelyourcoding.com/files/example-button.gif" alt="View the example" width="229" height="68" /></a></div>
<p>An example of the GarageDoor effect in work is found here: <a href="http://fuelyourcoding.com/scripts/garagedoor/">http://www.fuelyourcoding.com/scripts/garagedoor/</a><br />
<em>Download</em> the following archive containing everything you need: <a onclick="javascript:pageTracker._trackPageview('/scripts/garagedoor/garagedoor.zip');" href="http://fuelyourcoding.com/scripts/garagedoor/garagedoor.zip">http://www.fuelyourcoding.com/scripts/garagedoor/garagedoor.zip</a></p>
<p><em>Unzip </em>the contents of the archive and upload the contents to your server, the set folders can be adjusted to your needs.</p>
<p>First we need to make the script ans style of the GarageDoor work. To make that happen, you’ll need Scriptaculous. This library enables interface effects, so you don’t have to create it yourself. So <a onclick="javascript:pageTracker._trackPageview('/outbound/article/script.aculo.us');" href="http://script.aculo.us/downloads">grab Scriptaculous</a> and upload it to your server. Make sure you also upload the <strong>prototype.js </strong>file (in the lib folder).</p>
<p>Add the following code in the <strong>&lt;head&gt;</strong> tag of your page:</p>
<pre class="brush: xml;">
&lt;script src=&quot;js/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/scriptaculous.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;js/garagedoor.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;link href='css/garagedoor.css' rel='stylesheet' type='text/css' /&gt;
</pre>
<p>This will load the scripts and styles needed for the GarageDoor to work. <em>Adjust the paths where needed.<br />
</em></p>
<p>The next thing you want to do is to create the HTML layout for the garagedoors. The following code shows the structure you need to create for your document:</p>
<pre class="brush: xml;">
&lt;div class='garagedoor' id='garagedoor'&gt;
	&lt;div title='linktofile' class='item'&gt;
		&lt;div class='underlay'&gt;
			Caption text
		&lt;/div&gt;
		&lt;img src='uritooverlayimage' class='overlay' /&gt;
		&lt;div class='mouse'&gt;&lt;img src='images/nothing.gif' /&gt;&amp;nbsp;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div title='linktofile' class='item'&gt;
		&lt;div class='underlay'&gt;
			Caption text
		&lt;/div&gt;
		&lt;img src='uritooverlayimage' class='overlay' /&gt;
		&lt;div class='mouse'&gt;&lt;img src='images/nothing.gif' /&gt;&amp;nbsp;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>This contains two items that will be the garagedoor. The keywords <strong>linktofile</strong> and<strong> uritooverlayimage</strong> have to be adjusted in order to make it work. <strong>Linktofile</strong> is the URL of the page the button has to link to, might be confusing because it’s not an <em>a tag</em>, but Javascript fixes it for you.</p>
<p>The items have a default size of: <strong>100px width </strong>and <strong>80px height</strong>. <em>Create overlay images</em> according to these dimensions. In order to change the size, take a look in the <strong>garagedoor.css</strong> file and<em>adjust</em> the <strong>width</strong> and <strong>height</strong> of several elements.</p>
<p>All there is left to do is call the GarageDoor to enable the effect!</p>
<pre class="brush: xml;">
&lt;script&gt;
	GarageDoor.scrollY = -55;
	GarageDoor.scrollX = 0;
	GarageDoor.setBindings('garagedoor');
&lt;/script&gt;
</pre>
<p>The first line in the <strong>&lt;script&gt;</strong> tag sets the amount of scrolling the overlay has to do when the cursor is floating over an item. In this example the overlay has to go 55 up, which means move -55px on the Y-axis.<br />
You can also make it scroll horizontal.</p>
<p>Give the <strong>id</strong> of the <strong>garagedoor container</strong> to the <strong>setBindings</strong> method and the GarageDoor effect will be initialized! Be sure to make the call <strong>after</strong> creating the <strong>html</strong>.</p>
<p>You are now set to use the GarageDoor Effect. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://fuelyourcoding.com/garagedoor-effect-using-javascript/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

