0

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

1 回答 1

0

将脚本文件删除到主/父页面,现在应该可以工作了..

于 2011-03-25T13:35:45.657 回答