帝国CMS程序安装头像裁切插件,帝国CMS怎么实现头像裁切功能(2)

法律法规网 作者:小柯
来源 来源: 网络  法律法规网 时间: 2014-01-22 10:26:01  评论(/)

   <link href="uploadify/uploadify.css" rel="stylesheet" type="text/css" />
   <script src="JS/jquery-1.4.3.min.js" type="text/javascript"></script>
   <script src="uploadify/swfobject.js" type="text/javascript"></script>
   <script src="uploadify/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
   <script src="ImgCut/js/jquery.Jcrop.min.js" type="text/javascript"></script>
   <script type="text/javascript">
   function CutLoad()
   {
    // Create variables (in this scope) to hold the API and image size
     var jcrop_api, boundx, boundy;
     
     $('#target').Jcrop({
       onChange: updatePreview,
       onSelect: updatePreview,
       aspectRatio: 1,
       minSize:[100,100]
       
     },function(){
       // Use the API to get the real image size
       var bounds = this.getBounds();
       boundx = bounds[0];
       boundy = bounds[1];
     
tags:

站长推荐 / Recommend

最近更新 / Latest

站长推荐:

网站首页 关于我们 友情链接 广告服务 联系我们 网站地图 免责声明 WAP
Powered by LC123.NET 8.5  © 2009-2015
本站常年法律顾问 王正兴 律师