random & sequential images

I Just started using opengl about a week or so ago … I can do the basic 2D shapes and objects but i now want to scroll through them in random or sequential order using the mouse(left = prev, right= next). what glut statements would enable me to do that efficiently.

Thanx in advance for your help

Look up “mouse” in the red book, and check out the tutorials at http://nehe.gamedev.net/.