Use Jquery in Member grid

How can I make the avatars in this code rotate? My best guess is to somehow insert some ajax/jquery code, but I don't know exactly what to do.