Horizontal image slider

Can anyone tell me how to create a small xml driven horizontal image slider? I basicly want to try make a slider for a gallery and then use flashlightbox V2 to open the images. But I can’t find any good, free(i’m a student) and understandable examples.