【www.gdgbn.com--js教程】

改动的核心代码如下



1修改editfunc.js

function createImg(){
    var sPhoto=showModalDialog("up_load.asp","", "font-family:Verdana; font-size:12; status:no; unadorned:yes; scroll:no; resizable:yes;dialogWidth:330px; dialogHeight:250px");
if ((sPhoto!=null) && (sPhoto!="http://")){
  format("InsertImage", sPhoto);
}
}



2修改upload.asp

<script language=JavaScript>

</script>




3.修改upfile.asp

file.SaveAs Server.mappath(filename)   "保存文件
Response.Write "<script>parent.parent.M(""&filename&"");</script>"

本文来源:http://www.gdgbn.com/wangyezhizuo/11593/