Rotation of images in asp.net C# by using javascript
<p>I want solution on how to rotate images using java script.In div tag of my master page i want slide show images.I search a lot but i didn't got any proper solution.
Please suggest me any solution for this.
thanks in advance.I have tried it by following code:</p>

<pre><code>enter code here
    &lt;script type="text/java script"&gt;
        var how-often = 5; //number often in seconds to rotate
        var current = 0; //start the counter at 0
        var items = new Array();
        items[0] = 'Images/kungfu22.jpg'; //a linked image
        items[1] = 'Images/kungfu3'; //a linked image

        function rotater() {
            document.getElementById('imageRotator') = items[current];
            current = (current == items.length - 1) ? 0 : current + 1;
            setTimeout('rotater()', howOften * 1000);
        }
        window.onload = rotater();


    &lt;/script&gt;
</code></pre>

<p>But I am not getting output.</p>
