What you need is an analog switch.
I used them with Linx chips on the address pins to replace dip switches.
There are four switches per IC.
My Circuit Setup:
I believe i used dg211 which are normally closed switches
Hooked the IN1, IN2, IN3, IN4 to parallel port pins
Hooked D1, D2, D3, D4 to GND
Hooked the S1, S2, S3, S4 to the address pins on the linx modules.
Parallel Port Pin Logic | Address Pin's Logic Input
0V | GND
5V | High Impedence state
ordered them from digikey but you can also get samples on their website
**broken link removed**
Hope this works for you.