2 part question: apply a color ramp (gradation) based on objects hight, and

Hello,

I would like to apply a color ramp (gradation) based on objects hight, and have it always start the color ramp pointing towards the camera, and end at the farthest point away from the camera.

I am using blender 2.54

Thanks for any help. I am fairly new to Blender, so feel free to explain this in beginner’s terms.