GianlucaGuarini / jQuery.BlackAndWhite

Clientside grayscale images on any browser
http://gianlucaguarini.github.io/jQuery.BlackAndWhite/
Other
310 stars 131 forks source link

It does not work in chrome #44

Closed ntmtn closed 10 years ago

ntmtn commented 10 years ago

I use jQuery.BlackAndWhite in monaamiri.com for product view but it does not work correctly in chrome.

There are products in diffrent categories and i don't know how to set 'webworkerPath' for example in this page http://monaamiri.com/Product/Women/Necklace.aspx it look for http://monaamiri.com/Product/Women/js/BnWWorker.js Thanks for your response

ntmtn commented 10 years ago

oops It will be fine.I set webworkerPath:flase.

but when I hover image it will be color but again it will be gray scale.

Please check my site http://monaamiri.com/Product/Women/Necklace.aspx

GianlucaGuarini commented 10 years ago

try to change:

$('.ProductImage').BlackAndWhite({
        hoverEffect:true,
        webworkerPath: false,
        intensity:1,
        onImageReady:function(img){
            $(img).parent().animate({
                opacity:1
            });
        }
    });

into

$('.ProductImage a').BlackAndWhite({
        hoverEffect:true,
        webworkerPath: false,
        intensity:1,
        onImageReady:function(img){
            $(img).parent().animate({
                opacity:1
            });
        }
    });
GianlucaGuarini commented 10 years ago

this is not a plugin bug but it's just a wrong implementation

ntmtn commented 10 years ago

That's true. This is not a plugin bug. and thank you for your response