It should work. If the G3 iMac has Mac OS 9, you may only have basic one button clicking functionality (no right button or scrollwheel), unless you download and install the Mac OS 9 driver for that mouse (assuming there is one). If it has Mac OS X, you can ususually get the click, right-click, and scrollwheel to work without any special drivers. However, if it has any other buttons or features, you will need to download and install the driver for that mouse.