开发者

have problems with colorbox and jcrop

In the code below, the color box is working and the image showing. When I tried to integrate Jcrop with it, it doesn't.

<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>


Remove the script files to the master / parent page, and this should now work..

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜