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

{
var src=GetImgSrcValue();
var SX= $('#x1').val();
var SY= $('#y1').val();
var W= $('#w').val();
var H= $('#h').val();
var width=$('#target').width();
$.ajax({
url:"ImgCut/ImgCut.ashx",
type:"post",
dataType:"xml",
data:{"pPath":src,"SX":SX,"SY":SY,"W":W,"H":H,"width":width},
beforeSend:function(XMLHttpRequest){
},
success:function(data,status){
if($(data).find("content").text()!="Error")
{
$("#Img1").attr("src",$(data).find("content").text()+"?img="+Math.random());
}
},
complete:function(data,status){
},
error:function(){
}
});
}
$(function(){
// CutLoad();
$("#uploadImg").uploadify({
'uploader': '/uploadify/uploadify.swf',
tags: