You don't much in the way of details?, but a simple potentiometer across a 12V supply should do the job - perhaps with a series resistor or two to limit the range of adjustment.
Try an astable multivibrator. A transistor multivibrator can have two outputs. One output is the inverse of the other output.
One output (of the multivibrator) will enable an 8 volt source and at the same time, disable the 9 volt source. After x seconds (depending on resistors and capacitors in the multivibrator), the reverse is true.