Get the upgrading and servicing manual for your computer from HP support website (klick here)
I would not use CS jumper position as recommended in this manual, but the classic "master" (for the first optical drive) or "slave" (for the second optical drive, first ODD must be master then) setting. Depending on the new drive and present cable, you may also need to replace the IDE cable by an 80 conductor cable (if not already present).
Additionally, your new drive should come with installation instructions also. If not, then such is available on the drive manufacturer's support website.