<?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>Design, Development, and Consulting &#187; Javascript</title>
	<atom:link href="http://netlumination.com/blog/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://netlumination.com</link>
	<description>A web design, development, and consulting firm based in Portland, Oregon helping small businesseses and individuals.</description>
	<lastBuildDate>Sun, 19 Feb 2012 13:58:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Three Steps for Using JQuery in Your WordPress Theme</title>
		<link>http://netlumination.com/blog/three-steps-for-using-jquery-in-your-wordpress-theme</link>
		<comments>http://netlumination.com/blog/three-steps-for-using-jquery-in-your-wordpress-theme#comments</comments>
		<pubDate>Mon, 31 May 2010 05:58:39 +0000</pubDate>
		<dc:creator>Peter Ajtai</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://netlumination.com/?p=1202</guid>
		<description><![CDATA[This is a quick post on using Javascript and the JQuery framework in particular within your WordPress theme. It&#8217;s quick and pretty painless. This is just for regular themes, not admin themes, plugins, or posts. Step 1: Load JQuery and your custom JS onto your page with wp_enqueue_script(). It&#8217;s better to use wp_enqueue_script than hard [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick post on using Javascript and the JQuery framework in particular within your WordPress theme. It&#8217;s quick and pretty painless. This is just for regular themes, not admin themes, plugins, or posts.</p>
<p><strong>Step 1:</strong></p>
<p><strong><span id="more-1202"></span></strong></p>
<p>Load JQuery and your custom JS onto your page with wp_enqueue_script(). It&#8217;s better to use wp_enqueue_script than hard coding it into your page. This is because WordPress comes with JQuery, so you won&#8217;t have to worry about updating JQuery as new versions come out. WordPress will do the work for you.  Make sure wp_enqueue script is before wp_head(), or it won&#8217;t work.</p>
<p>Here&#8217;s a snippet from my template file (let&#8217;s say index.php). I&#8217;ve created my custom JQuery functions in my themes &#8220;scripts&#8221; directory with the file name &#8220;custom-js.js&#8221;. You also have to make up a handle or name for your collection of custom JQuery functions. I called mine custom:</p>
<pre class="php PluGeSHin"><span class="kw2">&lt;?php</span>
    wp_enqueue_script<span class="br0">&#40;</span><span class="st_h">'jquery'</span><span class="br0">&#41;</span><span class="sy0">;</span>
    wp_enqueue_script<span class="br0">&#40;</span><span class="st_h">'custom'</span><span class="sy0">,</span> get_bloginfo<span class="br0">&#40;</span><span class="st_h">'stylesheet_directory'</span><span class="br0">&#41;</span> <span class="sy0">.</span> <span class="st_h">'/scripts/custom-js.js'</span><span class="br0">&#41;</span><span class="sy0">;</span>
    wp_head<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">// WP API Hook</span>
<span class="sy1">?&gt;</span></pre>
<p>get_bloginfo is your friend. If you hard code your themes directory into your code anywhere, you won&#8217;t be able to share it with others, and you&#8217;ll break everything if you ever move hosts or just directories.</p>
<p>Here&#8217;s another example. Let&#8217;s say you want to use <a href="http://code.google.com/apis/maps/documentation/javascript/examples/index.html">Google Maps</a> on your page. Here is the line of WP code that makes that possible:</p>
<pre class="php PluGeSHin"><span class="kw2">&lt;?php</span>
    wp_enqueue_script<span class="br0">&#40;</span><span class="st_h">'googleMaps'</span><span class="sy0">,</span> <span class="st_h">'http://maps.google.com/maps/api/js?sensor=false'</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="sy1">?&gt;</span></pre>
<p>Finally, if you just want plain JS with no JQuery, you can simply leave out the line that calls JQuery but leave in the line that enqueues your custom functions. WordPress comes with a lot of other JS goodies besides JQuery. Scroll down to<a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"> the bottom of this page</a> to look at all the other stuff included with WordPress.</p>
<p><strong>Step 2:</strong><br />
Write your JQuery. The only thing you have to look out for is that wp_enqueue_script() calls JQuery in no conflict mode. This means that $ will not work as a shortcut for JQuery functions. There are two simple solutions.</p>
<ol>
<li>Define another shortcut for JQuery functions.</li>
<li>Use a wrapper around your JQuery code.</li>
</ol>
<p>Here is how to define a new shortcut for JQuery functions, $j in this case. The script shown is a very effective test to see if you&#8217;ve got JQuery working in your theme. It&#8217;s a little blunt, but it&#8217;s effects are hard to miss.</p>
<pre class="javascript PluGeSHin"><span class="kw2">var</span> $j <span class="sy0">=</span> jQuery.<span class="me1">noConflict</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
$j<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
 $j<span class="br0">&#40;</span><span class="st0">&quot;body&quot;</span><span class="br0">&#41;</span>.<span class="me1">html</span><span class="br0">&#40;</span><span class="st0">&quot;Your page is belong to us... just kidding, but you can use JQuery now.&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre>
<p>Here is how to use a wrapper in order to use the default JQuery shortcut:</p>
<pre class="javascript PluGeSHin">jQuery<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>$<span class="br0">&#41;</span> <span class="br0">&#123;</span>
    $<span class="br0">&#40;</span><span class="st0">&quot;body&quot;</span><span class="br0">&#41;</span>.<span class="me1">html</span><span class="br0">&#40;</span><span class="st0">&quot;Your page is belong to us... just kidding, but you can use JQuery now.&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre>
<p>Make sure you pay attention to all the curly brackets and parentheses. If the long and multiple parenthetical expressions annoy you, go check out <a href="http://www.cs.cmu.edu/afs/cs/project/theo-11/www/decision-trees.lisp">Lisp</a>.</p>
<p>Anyway, the second method is nice, since it let&#8217;s you use previously written code easily.</p>
<p><strong>Step 3:</strong></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://netlumination.com/blog/three-steps-for-using-jquery-in-your-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating Simple Animations With Javascript</title>
		<link>http://netlumination.com/blog/creating-simple-animations-with-javascript</link>
		<comments>http://netlumination.com/blog/creating-simple-animations-with-javascript#comments</comments>
		<pubDate>Fri, 16 Oct 2009 04:49:21 +0000</pubDate>
		<dc:creator>Peter Ajtai</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://netlumination.com/?p=535</guid>
		<description><![CDATA[This is a basic JavaScript tutorial. I will describe how to move an element around the page using a simple animation script. The element you move around the page can be anything from an image to a paragraph. Below is a working example: Introduction Starting and stopping the animation using checkButton() Moving the ball image [...]]]></description>
			<content:encoded><![CDATA[<p>This is a basic JavaScript tutorial. I will describe how to move an element around the page using a simple animation script. The element you move around the page can be anything from an image to a paragraph.</p>
<p>Below is a working example:</p>
<p><script type="text/javascript">// <![CDATA[
    var distanceBall=0; var directionBall=1; var timerToggle=null; function animateBall() {   document.getElementById("basketball").style.top=distanceBall + "px";   distanceBall+=directionBall;   if (distanceBall>200) { directionBall=-1; }
  if (0>distanceBall) { directionBall=1; }
  timerToggle=setTimeout(function() { animateBall(); },10);
}
function checkButton() {
  if (document.getElementById("ballButton").value=="Animate Basketball") {
    document.getElementById("ballButton").value="Stop Basketball";
    animateBall();
  } else {
    document.getElementById("ballButton").value="Animate Basketball";
    clearTimeout(timerToggle);
  }
}
// ]]&gt;</script></p>
<input id="ballButton" onclick="checkButton()" type="button" value="Animate Basketball" />
<div id="basketball" style="position: relative;"><img src="http://netlumination.com/wp-content/uploads/2009/10/Basketball_64x64-1.png" alt="Basketball" /></div>
<p><span id="more-535"></span></p>
<ol>
<li><a href="#Introduction">Introduction</a></li>
<li><a href="#Starting">Starting and stopping the animation using checkButton()</a></li>
<li><a href="#Moving">Moving the ball image using animateBall()</a></li>
<li><a href="#References">References</a></li>
<li><a href="#Conclusion">Conclusion</a></li>
</ol>
<h2><a name="Introduction"></a>Introduction</h2>
<p>Here is the code that makes the ball move. For the rest of this post, I&#8217;ll go over the basic ideas required to put the code together and how the specific code works:</p>
<ol>
<li>
<pre>&lt;script type="text/javascript"&gt;</pre>
</li>
<li>
<pre>// &lt;!--</pre>
</li>
<li>
<pre>    var distanceBall=0; </pre>
</li>
<li>
<pre>    var directionBall=1; </pre>
</li>
<li>
<pre>    var timerToggle=null; </pre>
</li>
<li>
<pre>    </pre>
</li>
<li>
<pre>    function animateBall() {   </pre>
</li>
<li>
<pre>        document.getElementById("basketball").style.top=distanceBall + "px";</pre>
</li>
<li>
<pre>        distanceBall+=directionBall;</pre>
</li>
<li>
<pre>        if (distanceBall&gt;200) { directionBall=-1; }</pre>
</li>
<li>
<pre>        if (0&gt;distanceBall) { directionBall=1; }</pre>
</li>
<li>
<pre>        timerToggle=setTimeout(function() { animateBall(); },10);</pre>
</li>
<li>
<pre>    }</pre>
</li>
<li>
<pre>    </pre>
</li>
<li>
<pre>    function checkButton() {</pre>
</li>
<li>
<pre>        if (document.getElementById("ballButton").value=="Animate Basketball") {</pre>
</li>
<li>
<pre>            document.getElementById("ballButton").value="Stop Basketball";</pre>
</li>
<li>
<pre>            animateBall();</pre>
</li>
<li>
<pre>        } else {</pre>
</li>
<li>
<pre>            document.getElementById("ballButton").value="Animate Basketball";</pre>
</li>
<li>
<pre>            clearTimeout(timerToggle);</pre>
</li>
<li>
<pre>        }</pre>
</li>
<li>
<pre>    }</pre>
</li>
<li>
<pre>// --&gt;</pre>
</li>
<li>
<pre>&lt;/script&gt;</pre>
</li>
<li>
<pre></pre>
</li>
<li>
<pre>&lt;input id="ballButton" onclick="checkButton()" type="button" value="Animate Basketball" /&gt;</pre>
</li>
<li>
<pre>&lt;div id="basketball" style="position: relative;"&gt;</pre>
</li>
<li>
<pre>    &lt;img src="http://netlumination.com/wp-content/uploads/2009/10/Basketball_64x64-1.png" alt="Basketball" /&gt;</pre>
</li>
<li>
<pre>&lt;/div&gt;</pre>
</li>
</ol>
<p><a href="http://jsfiddle.net/g3x9f/">Here&#8217;s a jsFiddle for you to play with.</a></p>
<p>There are two functions in this script, animateBall() and checkButton(). animateBall() is what makes the basketball image move. checkButton() starts and stops the ball. Let&#8217;s start by going over checkButton(), since that is the function that is called if the viewer presses the &#8220;Animate Basketball&#8221; button.</p>
<p><script type="text/javascript">// <![CDATA[
    google_ad_client = "pub-4166122661117213"; /* 336x280, created 4/27/09 */ google_ad_slot = "9673694336"; google_ad_width = 336; google_ad_height = 280;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<h2><a name="Starting"></a>Starting and stopping the animation using checkButton()</h2>
<p>Whenever you create an animation, or any sort of constantly running JavaScript, it&#8217;s considerate to allow the viewer to stop the script somehow. This is done using the checkButton function. The checkButton function also starts the script running, so it serves a dual purpose.</p>
<ol>
<li>
<pre>function checkButton()</pre>
</li>
<li>
<pre>{</pre>
</li>
<li>
<pre>  if (document.getElementById(“ballButton”).value == ”Animate Basketball”) </pre>
</li>
<li>
<pre>  {    </pre>
</li>
<li>
<pre>    document.getElementById(“ballButton”).value = ”Stop Basketball”;</pre>
</li>
<li>
<pre>    animateBall();</pre>
</li>
<li>
<pre>  } else </pre>
</li>
<li>
<pre>  {</pre>
</li>
<li>
<pre>    document.getElementById(“ballButton”).value = ”Animate Basketball”;</pre>
</li>
<li>
<pre>    clearTimeout(timerToggle);</pre>
</li>
<li>
<pre>  }</pre>
</li>
<li>
<pre>}</pre>
</li>
</ol>
<p>The checkButton function checks what the input button says and does  one of two things based upon what the button reads. Looking at the HTML of the INPUT button, you can see that the INPUT button has the ID of &#8220;ballButton.&#8221; So, we can use document.getElementById(”ballButton”).value to access the words on the button. Accessing  HTML elements, their attributes, and inline CSS styles on a web page with Javascript can be done using the Document Object Model (DOM). <a href="http://www.javascriptkit.com/domref/">Here</a> and <a href="http://www.w3schools.com/jsref/default.asp">here</a> are two easy to use references for the DOM.</p>
<p>checkButton() first replaces the words in the button. If the button reads, &#8220;Animate Basketball&#8221; it writes in &#8220;Stop Basketball&#8221; instead. We know the button can only read one of two things, so we use the <a href="http://www.w3schools.com/js/js_if_else.asp">ELSE statement</a> to set the INPUT BUTTON to &#8220;Animate Basketball&#8221; if it doesn&#8217;t already say that. So one of the things the IF, ELSE statement does is toggle the INPUT BUTTON between &#8220;Animate Basketball&#8221; and &#8220;Stop Basketball&#8221;</p>
<p>There is a second line after the writing on the button is changed. If the button read &#8220;Animate Basketball&#8221; then the function animateBall is called. This gets the ball moving.</p>
<p>If the button read &#8220;Stop Basketball,&#8221; the ELSE statement, then the ball is stopped using clearTimeout. I&#8217;ll go over how clearTimeout works later. For now it&#8217;s just important to understand that checkButton simply functions as a toggle that does two things whenever it&#8217;s called. First, it changes the writing on the INPUT button. Second, it either starts or stops the basketball image moving.</p>
<p>Let&#8217;s look at how the basketball image is moved when checkButton() calls the animateBall function.</p>
<h2><a name="Moving"></a>Moving the ball image using animateBall()</h2>
<p>This is the heart of the animation, and what&#8217;s startling is how few lines it takes to animate something with JavaScript.</p>
<p>Essentially what we want to do is move the DIV containing the basketball image small steps at a time. This requires two things: physical movement of the DIV and a time increment in which this movement will be done.</p>
<ol>
<li>
<pre>var distanceBall=0; </pre>
</li>
<li>
<pre>var directionBall=1; </pre>
</li>
<li>
<pre>var timerToggle=null; </pre>
</li>
<li>
<pre></pre>
</li>
<li>
<pre>function animateBall() {   </pre>
</li>
<li>
<pre>    document.getElementById("basketball").style.top=distanceBall + "px";</pre>
</li>
<li>
<pre>    distanceBall+=directionBall;</pre>
</li>
<li>
<pre>    if (distanceBall&gt;200) { directionBall=-1; }</pre>
</li>
<li>
<pre>    if (0&gt;distanceBall) { directionBall=1; }</pre>
</li>
<li>
<pre>    timerToggle=setTimeout(function() { animateBall(); },10);</pre>
</li>
<li>
<pre>}</pre>
</li>
<li>
<pre></pre>
</li>
</ol>
<p>If you look at the HTML, you&#8217;ll see that the basketball image is in a div with the ID &#8220;basketball&#8221; and the it&#8217;s CSS style of postion is set to RELATIVE. It&#8217;s important to set the position to RELATIVE, since that means that we can use the TOP or LEFT CSS styles to change the position of the DIV relative to where you see it when the image loads.</p>
<ol>
<li>
<pre>&lt;div id="basketball" style="position: relative;"&gt;</pre>
</li>
<li>
<pre>    &lt;img src="http://netlumination.com/wp-content/uploads/2009/10/Basketball_64x64-1.png" alt="Basketball" /&gt;</pre>
</li>
<li>
<pre>&lt;/div&gt;</pre>
</li>
</ol>
<p>There are three variables that the animateBall function uses. The first is distanceBall. distanceBall is how many pixels the TOP CSS property of the DIV with the basketball image in it is set to. So distanceBall will control where the image is displayed. directionBall will control whether the image is moving up or down. We need this so that the image doesn&#8217;t wander too far away. Finally the timerToggle variable will allow us to stop the ball from moving. This is done as a courtesy to the viewer.</p>
<p>The first line of the animateBall function adds directionBall to distanceBall. Initially directionBall is 1, so this simply adds 1 to distanceBall.</p>
<p>Next we display the DIV containing the basketball image at this new location. We use the HTML DOM objects to reference the DIV. We know the DIV has an ID of &#8220;basketball&#8221;. This makes it easy to pick out from all the other elements on the page by writing document.getElementById(&#8220;basketball&#8221;). Now to specifically target the CSS TOP style we&#8217;ll use document.getElementById(&#8220;basketball&#8221;).style.top. The top property can be read from the browser or it can be written to. In other words we can change it. It&#8217;s almost as simple as setting it equal to distanceBall. The only trick part is that TOP has units. We&#8217;ll use pixels, so me must concatenate &#8220;px&#8221; to the end of the number. We do this using the + <a href="http://jennifermadden.com/javascript/concatenation.html">string operator</a>.</p>
<p>So with just two lines of code we&#8217;ve moved the DIV one pixel. The next two lines, the two if statements, check if the DIV is at a TOP greater than 200 or less than 0. If it is, it reverses the direction of movement, so that the ball ends up bouncing up and down 200 pixels. Here is an alternative way to write those two lines as one line (to understand the codes look at this page on <a href="http://www.w3schools.com/JS/js_comparisons.asp">JavaScript comparison and logical operators</a>):</p>
<ol>
<li>
<pre>if(distanceBall&gt;200 || distanceBall&lt;0){directionBall*=-1;}</pre>
</li>
</ol>
<p>Anyway, this all looks great so far, but we&#8217;ve only moved the ball one pixel. We have to repeat this movement every few moments. This would be very easy if there was a function to pause a JavaScript program, but there isn&#8217;t, and trying to make a custom function to do this can end up with very messy results. There is, however, a way to tell JavaScript to do an action in a set amount of time. It&#8217;s like setting an alarm clock. It&#8217;s called setTimeout() and here is how it works:</p>
<ol>
<li>
<pre>setTimeout( [What to do] , [How long to wait] );</pre>
</li>
</ol>
<p>It&#8217;s important to realize that when you use setTimeout(), Javascript will keep evaluating the lines below setTimeout immediately. It does not pause. It&#8217;s like setting an alarm and keeping right on going, now with the alarm timer ticking in the background.</p>
<p>The way to use setTimeout in our animation function is to use it as the last line, and have it call our animation function itself. Like this:</p>
<ol>
<li>
<pre>function animateBall() {</pre>
</li>
<li>
<pre>    [ move ball one increment and show it at its new location ]</pre>
</li>
<li>
<pre>    setTimeout( function() { animateBall(); } , 10 );</pre>
</li>
<li>
<pre>}</pre>
</li>
</ol>
<p>This will perform the animateBall() function once every 10 milliseconds, since setTimeout measures time in milliseconds. It&#8217;s important that animateBall is not a for, while, or do loop, since setTimeout does not pause the execution of the script. Also, not the use of the anonymous function ( function () { &#8230; } ) in setTimeout. This is better than putting animateBall() in quotes and using eval().</p>
<p>Now that we have the ball going, how can we make it stop? The way to stop the animation and the ball is to somehow get setTimeout() to stop firing.</p>
<p>You&#8217;ll notice that the variable timerToggle is set equal to setTimeout() in the animateBall funciton. This may look confusing, since it&#8217;s not immediately apparent what sort of variable timerToggle is. Well, timerToggle simply allows us to keep track of the specific timer we used for the animation, so that we can stop it by using clearTimeout().</p>
<p>To stop a timer we&#8217;ll use clearTimeout(). The only thing we have to do is tell the browser which timer we want to stop. Luckily this is what the timerToggle variable is for, so clearTimeout(timerToggle) will stop the ball from moving.</p>
<p>clearTimeout() is not in the animateBall function, it is in the checkButton function. This is because clearTimeout is called if the viewer presses the button while the ball is moving.</p>
<p><script type="text/javascript">// <![CDATA[
    google_ad_client = "pub-4166122661117213"; /* 336x280, created 4/27/09 */ google_ad_slot = "9673694336"; google_ad_width = 336; google_ad_height = 280;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<h2><a name="Conclusion"></a>Conclusion</h2>
<p>Ok, so that&#8217;s it. You can animate a DIV on your page using one simple function, and you can stop and start the animation using a second function.</p>
<p>Remember that we are moving the DIV with the image inside. This means we could also put other things in the DIV like a paragraph, form, list, etc.</p>
<p>You should always consider the pros and cons of using animations on your page. As anyone who has sat through a few Power Point presentation knows, it is easy to go overboard with animations (and sound effects, but that&#8217;s another matter).</p>
<p>However, if you can link the animation to the content of your page, it may be well worth using it. For example, if you have a site about food, you could style the logo of your page to slide onto the page like a platter of food being served. Again, this can be done elegantly or it can be easily overdone. Additionally animation and interactivity (like the ability to start and stop the animation) is the seed of video games and interactive art.</p>
<p>Finally, you should consider how this simple function can be improved. You might have noticed that I used global variables. This limits the names of other variables that can be used on the same page, which can be especially problematic or confusing in large projects. So, removing the global variables would be ideal. This leads me to a second possible change. Instead of using an inline call to a javascript function in an HTML DIV, I could create an event handler for that DIV. This would allow me to get rid of the global variables too.</p>
<p>Exactly how to do that might be the subject for a later post.</p>
<h2><a name="References"></a>References</h2>
<p><a href="http://www.chipchapin.com/WebTools/JavaScript/exampleA01.html">Tutorial on JavaScript animation</a></p>
<p><a href="http://www.w3schools.com/jS/js_operators.asp">Javascript operators</a></p>
<p><a href="http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/CatalogJavascript-Methods.htm">Javascript methods</a></p>
<p><a href="http://www.javascriptkit.com/domref/index.shtml">Javascript DOM reference</a></p>
<p><a href="http://www.w3schools.com/jsref/default.asp">Javascript DOM reference</a></p>
<p><a href="http://www.iconspedia.com/icon/basketball-ball-438-.html">Basketball Image</a></p>
]]></content:encoded>
			<wfw:commentRss>http://netlumination.com/blog/creating-simple-animations-with-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

