Sounds like a classic case of Throttle Position Sensor, or TPS. Been there, done that on my '96. Be warned, however, the ones that I bought at the auto parts store were, in my experience, crap. I cross referenced the part, '91 to early '96, XJ and ZJ were compatible, so I went to a local...