Please see my comment to the question. It's not clear what you really need.
Anyway, please see my past answer with the code sample:
zooming image at mouse over[
^].
In this answer, I assume you have an image file, re-sample it down and store both version on your server. Then you can swap the two depending on the mouse position. If you need some other behavior, you can easily modify this code.
—SA