If you want to write an image slider from scratch, it's not that hard. Take a look at using the [font="COURIER NEW"]setInterval()[/font] and [font="COURIER NEW"]setTimeout()[/font] functions when moving your <div> elements.
You can use JavaScript to update the left or right CSS position of an element in a loop. There would be no actual declaration of a loop, but your [font="COURIER NEW"]setInterval()[/font] function would be called each n milliseconds until your <div> has reached a given position, at which point you would clear the interval.
If you have a set number of images that you know you're going to use, then you don't even need to worry about writing a generic slider that can work with any number of images, you can just predefine the positions at which to stop/start.