An excellent website about solar sails.
Sock Munkey: Whether the photons have a lower or higher wavelength after they bounce off the sail depends on whether the sail is moving towards or away from the source, respectively. This would be a consequence of the Doppler effect.
Isosleepy, MC: Actually, the angle at which you hold the sail would make a difference. It’s tricky to explain why without diagrams, but let me try: Think of the sail as a big mirror. To help visualize this, suppose the photons from the sun are travelling “North”, and suppose you hold your sail so that it lies on an “East-West” axis, i.e. directly facing the sun. Then the photons would reflect from the sail to the “South”, i.e. back towards the sun, and since momentum is conserved your spaceship (or whatever is attached to the sail) would be propelled “North”, directly away from the sun.
Now suppose you rotated your sail so that the light from the sun was hitting the sail at a 45-degree angle; say that you placed it on an axis running from “Northwest” to “Southeast.” Then the photons would bounce off your sail and head “West”. The change in momentum of the photons, though, would point to the “Northeast.”
So your sail would always push you away from the sun, right? Well, that’s true, but that doesn’t necessarily mean that you can’t use your sail to get closer to the sun. According to the laws of celestial mechanics, if you’re orbiting about the sun and you push yourself (somehow) in the direction you’re travelling, this will cause your orbit to change, and you’ll end up farther away from the sun. If, on the other hand, you give yourself a push opposite to the direction you’re travelling (i.e. you brake yourself somehow, you will (generally) end up in a lower orbit than you started out in. So you could use a solar sail to get closer to the sun in this fashion.
Oh, and one more thing: Solar sails are pretty good for travelling around the solar system, but they’re not so good for interstellar travel (since there’s just not that much light out there.) The figures I’ve seen indicate that you could get up to about 10 kilometres per second, which is about one one-thousandth of the speed of light - not practical to get to the stars. If we could build a laser large enough, though, and shine that on the solar sail, we could bump that up to about one-tenth the speed of light or so - much more practicable.