They make adapters. I have one of these sitting next to my desk.
Whenever buying one of these, it is a good idea to read the reviews,
to see how well the device supports ATAPI (optical drives). So far,
I haven't had a problem with mine, but I also haven't done a lot
of testing on it.
http://www.startech.com/item/IDE2SAT-25in-and-35in-40-Pin-Male-IDE-to...
The SATA connector plugs into the drive, then the ribbon cable pins
stick out on the back. The scheme isn't mechanically robust. You
have to be careful, when disconnecting the adapter from the ribbon
cable, as it doesn't really support easy removal. But if
you buy a SATA drive, and need to fit it to an IDE system,
it is one more option for being able to do so.
Another note when buying one, is to make sure it comes with a power
cable. Some of those devices come in the box, with just the adapter
and no power adapter cable. You can see this one includes a cable.
The cable helps power the adapter chip. This cable can be
"daisy chained" in the path of an existing hard drive, to steal power
without needing more power supply connectors than would otherwise
be needed. Very little power is used by the adapter itself.
http://www.startech.com/Share/Gallery/Large/IDE2SAT.Dlarge.jpg
Paul