2011-07-03 28 views
0
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled Document</title> 

<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/library/js/pixastic.custom.js"></script> 

<script type="text/javascript"> 

     $(document).ready(function() { 
      $(".attachment-thumbnail").load(); 
     $('.attachment-thumbnail').pixastic("desaturate"); 
    }); 
</script> 
</head> 

<body> 
<img class="attachment-thumbnail" src="image1.jpg"/> 
</body> 
</html> 

我一直在爲此工作了將近一天,甚至無法完成。你可以看到不飽和的縮略圖here 任何幫助將不勝感激。Pixastic效果問題

+0

難道你不使用調試器嗎? Firefox的錯誤控制檯報告:「$不是函數,第40行」。 – katspaugh

回答

0

你已經有了一個JS錯誤第40行:40

TypeError: Property '$' of object [object DOMWindow] is not a function 

線路是:

$(".attachment-thumbnail").load(); 

看來你有麻煩的jQuery(jQuery的功能在Chrome瀏覽器調試器)

0

你沒有的jQuery核心加載花花公子:-) 你需要添加

<script type="text/javascript" src="jquery.js ... 

就在添加pixastic之前