开发者

Combining jQuery and Pixastic

开发者 https://www.devze.com 2023-01-04 22:45 出处:网络
I just want to click on the image and then see it blur out. That\'s it. Here is the link: http://www.olliemccarthy.com/test/blur-experiment/

I just want to click on the image and then see it blur out. That's it. Here is the link:

http://www.olliemccarthy.com/test/blur-experiment/

Here is the code I've been using so far.

$(document).ready(function() {

 开发者_StackOverflow社区$('.test').click(function() {

  $(this).("blurfast", {amount:0.8})

 });

});

I've tried rearranging the order in which the scripts are called in and no luck.


$(this).pixastic("blurfast", {amount:0.8});

will do it. You forgot to call the jQuery method.


Here is the code I've been using so far.
[snip]
$(this).("blurfast", {amount:0.8})

That's invalid JavaScript syntax and should be throwing a parsing error.

According to the Pixtastic documentation, you want:

$(this).pixastic("blurfast", {amount:0.8});

...assuming that you want to blur the image that was clicked.

0

精彩评论

暂无评论...
验证码 换一张
取 消