mlens is a jQuery plugin that simplifies creating this magnifying glass functionality so much.
It has some parameters like the shape of the lens (circle or square), lens size and the options for customizing the border.
Also a WordPress plugin for this plugin is being developed.
Website Demo