首页 > 问答

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

作者:轶名 来源:网络 2014-01-22 10:26:01

帝国CMS是一个功能很强大的门户CMS系统,可是它的个人空间功能却并不强大,甚至会员头像都不能实现自动裁剪功能,要怎么给自己的帝国CMS系统安装头像裁切插件呢?最佳答案:头像裁切一直是一个棘手的问题,网上一些裁...


   <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];
     
 2/22   首页 上一页 1 2 3 4 5 下一页 尾页
上一篇 下一篇

I 热点 / Hot