Not sure what "PHP slideshow thing" you saw, but note that PHP is a server-side programming language (as you noted). Thus, anything it does is on the server-side.
In the end, you're going to have to use client-side scripting languages to accomplish client-side effects. The PHP slideshow application you saw probably used CSS, DHTML, Flash, etc. etc. to accomplish the client-side effects.