JavaScript Photo Slider
<p>I'm working on making a JS script that will go in the header div and display a few pictures. I looked into JQuery Cycle, but it was out of my league. The code I wrote below freezes the browser, should I be using the for loop with the timer var?</p>

<pre><code>&lt;script type="text/JavaScript" language="JavaScript"&gt;
var timer;
for (timer = 0; timer &lt; 11; timer++) {
    if (timer = 0) { 
    document.write('&lt;img src="images/one.png"&gt;');
    }

    if (timer = 5) {
    document.write('&lt;img src="images/two.png"&gt;');
    } 

    if (timer = 10) {
    document.write('&lt;img src="images/three.png"&gt;');
    } 
}   
&lt;/script&gt;
</code></pre>

<p>Thanks!</p>
