I think the easiest way to do this is to use the CSS3 border radius, which is supported by modern versions of all web browsers (without IE below version 9).
If you have this in your javascript
$('selector').loupe({ width: 150, // width of magnifier height: 150, // height of magnifier loupe: 'loupe' // css class for magnifier });
Just put this in your css:
.loupe { -webkit-border-radius: 150px; -moz-border-radius: 150px; border-radius: 150px; }
... and all old versions of IE will just show a square, which is probably okay?
Fred bergman
source share