hu_editor/dialog/importword.htm

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript" src="dialog.js"></script>

<script type="text/javascript">
document.write ("<link href='../skin/" + config.Skin + "/dialog.css' type='text/css' rel='stylesheet'>");

var sAction = URLParams["action"] ;
var s_SubTitle = "";
if (sAction=="paste"){
	s_SubTitle = "("+lang["DlgWordPaste"]+")";
}

document.write ("<title>" + lang["DlgWord"] + s_SubTitle + "</title>");


var eWebEditorActiveX;

function ok(){
	if (!dialogArguments.CheckActiveXVersion()){
		var arr = showModalDialog("installactivex.htm", dialogArguments, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
		return;
	}
	
	var s_File = ""
	if (sAction!="paste"){
		s_File = d_file.value;
		if (!IsExt(s_File, "doc")){
			alert(lang["DlgWordInvalidFile"]);
			return;
		}
	}
	
	var n_OptimizeMode = 1;
	if (d_opt2.checked){
		n_OptimizeMode = 2;
	}

	var b_opt1vml = d_opt1vml.checked;
	var b_opt1absolute = d_opt1absolute.checked;
	var b_opt1eq = d_opt1eq.checked;
	var b_opt1margin = d_opt1margin.checked;
	var b_opt1space = d_opt1space.checked;

	var b_opt2image = d_opt2image.checked;
	var b_opt2table = d_opt2table.checked;
	var b_opt2eq = d_opt2eq.checked;
	var b_opt2indent = d_opt2indent.checked;
	var b_opt2ptobr = d_opt2ptobr.checked;

	var s_PostUrl = getSitePath() + getWebEditorRootPath() + "/" + config.ServerExt + "/upload." + config.ServerExt + "?action=local&type=local&style=" + config.StyleName + "&cusdir=" + config.CusDir;

	divProcessing.style.display="";

	if (eWebEditorActiveX){eWebEditorActiveX=null}
	eWebEditorActiveX = new ActiveXObject("eWebEditorClient.eWebEditor");
	if (sAction!="paste"){
		eWebEditorActiveX.ImportWord(s_File, s_PostUrl, n_OptimizeMode, b_opt1vml, b_opt1absolute, b_opt1eq, b_opt1margin, b_opt1space, b_opt2image, b_opt2table, b_opt2eq, b_opt2indent, b_opt2ptobr);
	}else{
后面还有 199 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。