are you wanting to learn this or do you just need to get this done for a site your working on? there fantastic pre-built sliders you can download the source code for online easily. and implement in your site in under 10 minutes.