0

以下のコードでは、カラーボックスが機能しており、画像が表示されています。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>
4

1 に答える 1

0

スクリプト ファイルをマスター/親ページから削除すると、これで機能するはずです。

于 2011-03-25T13:35:45.657 に答える