首页 > 问答

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

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

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


     return src;
   }
   
   function SizeFormat(s)
   {
       s = s.replace(/^(d*)$/, "$1.");
       s = (s + "00").replace(/(d*.dd)d*/, "$1");
       s = s.replace(".", ",");
       var re = /(d)(d{3},)/;
       while (re.test(s))
       s = s.replace(re, "$1,$2");
       s = s.replace(/,(dd)$/, ".$1");
       return s.replace(/^./, "0.")
   }
       
    function GetFileSize(iBytes)
    {
       var iFileKB = iBytes / 1024;
       iFileKB = SizeFormat(iFileKB.toString());
       return iFileKB + " KB";
    }
 </script>
   
   
</head>
<body>
   <form id="form1" >
   <div id="tb">
     
   </div>
   <input id="uploadImg" type="file" name="uploadImg" />
       <input type="hidden" id="x1" />
 13/22   首页 上一页 11 12 13 14 15 下一页 尾页
上一篇 下一篇

I 热点 / Hot