Hello,
I am sure this seems simple for most of you, but I can't seems to make this (
http://jdbartlett.github.com/loupe/ ) Loupe Plugin toggle on and off. I have tried adding and removing the class the plugin uses to identify which element to zoom. I have also tried directly .hide the class used to style the loop itself. I've spend hours looking around the net, no help. Ideas?
All help is great.
Thanks everyone.
I tried this:
- jQuery('.theloup').loupe({
- width: 200, // width of magnifier
- height: 200, // height of magnifier
- loupe: 'loupe' // css class for magnifier
- });
- jQuery('.loupe-switch').toggle(
- function () {
- jQuery('.louped-img').addClass("loupe");
-
- loupe.hide();
- },
- function () {
- jQuery('.louped-img').removeClass("loupe");
- }
- );
And I tried this:
- jQuery('.theloup').loupe({
- width: 200, // width of magnifier
- height: 200, // height of magnifier
- loupe: 'loupe' // css class for magnifier
- });
-
- jQuery('.loupe-switch').toggle(
- function () {
- jQuery(this).addClass("loupe-on");
-
- jQuery('loupe').loupe.show();
- },
- function () {
- jQuery('loupe').loupe.hide();
- }
- );