Depends what type of mouse you are using. Battery type, possible replacement batteries. Cable type,good mouse mat and clean surface plus possibly click here Optic type,clean and reposition transmitter/receiver.
Finally, as it is working with WM98SE,check and possibly re-install the drivers. Further problems, then replace the mouse. Starting price about £3.50 upwards.