$(document).ready(function(){$("#uploadify-icon").uploadify({uploader:in_path+"static/pack/upload/uploadify.swf",script:in_path+"source/pack/upload/index-up-icon.php",wmode:"transparent",folder:"UploadFile",method:"GET",scriptData:{id:in_id},buttonImg:in_path+"static/index/uploadify-icon.png",width:"61",height:"19",queueID:"speed-uploadify",auto:true,multi:false,fileExt:"*.jpg;*.jpeg;*.gif;*.png",fileDesc:"选择*.jpg;*.jpeg;*.gif;*.png文件",sizeLimit:1024*1024,onError:function(a,b,c,d){if(d.status==404){$("#speed-uploadify").text("上传异常，请重试！");}else if(d.type==="HTTP"){$("#speed-uploadify").text("error "+d.type+" : "+d.status);}else if(d.type==="File Size"){$("#speed-uploadify").text("上传失败，大小不能超过1MB！");}else{$("#speed-uploadify").text("error "+d.type+" : "+d.text);}
$(".growing").css("width","0%");$(".turbo-upload").hide();},onComplete:function(event,queueID,fileObj,response,data){if(response<1){if(response==-4){$("#speed-uploadify").text("文件不规范，请重新选择！");}else if(response==-1){$("#speed-uploadify").text("请先登录后再操作！");}else if(response==-2){$("#speed-uploadify").text("应用不存在或已被删除！");}else if(response==-3){$("#speed-uploadify").text("您不能更新别人的应用！");}
$(".growing").css("width","0%");$(".turbo-upload").hide();}else{location.reload();}}});});