You can download a plugin for photoshop or PSP that saves the file in .cur and .ani. (I recommend downloading a really great cursor program called RealWorld Cursor Editor instead).
Once you've created your cursor, copy the code below into the head section of your page. Note: Animated curors only work in IE 6+.
The cursor should work in Firefox, Safari, and IE 6+.