2011-02-05 59 views
0

在下面的代碼中,顏色框正在工作並顯示圖像。當我試圖將Jcrop與它整合時,它不會。colorbox和jcrop有問題

<head runat="server"> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"> 
    </script> 

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

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

    <link href="../jcrop/css/jquery.Jcrop.css" rel="stylesheet" type="text/css" /> 
    <link href="../colorbox/example1/colorbox.css" rel="stylesheet" type="text/css" /> 

    <script> 
     $(document).ready(function() { 

     $(".example1").colorbox(); 
     $(document).bind('cbox_complete', function(){ 
     $('#colorbox .example1').Jcrop(); 
     }); 

     }); 
    </script> 
</head> 
<body> 
    <p> 
     <a href="../jcrop/demos/demo_files/flowers.jpg" class="example1"> 
      crop 
     </a> 
    </p> 
</body> 
+3

請描述,用細節一定程度上,正是你的意思是「這是行不通的。」鏈接到演示此問題的示例也非常有用,可以是到您網站的實時鏈接,也可以是http://jsfiddle.net。 – 2011-02-05 00:18:45

回答

0

刪除腳本文件到主/父頁面,而這個現在應該工作..