Help.Web/editor/scripts/text2.htm
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style/editor.css" rel="stylesheet" type="text/css">
<script>
var sLangDir=dialogArguments[0].oUtil.langDir;
document.write("<scr"+"ipt src='language/"+sLangDir+"/text2.js'></scr"+"ipt>");
</script>
<script language="JavaScript" src="color_picker.js"></script>
<script>writeTitle()</script>
<script language="JavaScript" src="list.js"></script>
<script>
document.onclick=hideAll;
function hideAll()
{
oColor1.hide();oColor2.hide();
}
var obj1 = new ListEditor("obj1")
function bodyOnLoad()
{
//Font-Family
var arrFontName=dialogArguments[0].oUtil.obj.arrFontName;
var sTmp="["
for(var i=0;i<arrFontName.length;i++)
{
sFontName=arrFontName[i];
sTmp+="['"+sFontName+"','"+sFontName+"','font:8pt "+sFontName+";'],"
}
sTmp=sTmp.substr(0,sTmp.length-1)
sTmp+="]";
obj1.items=eval(sTmp);
divFont_family.innerHTML=obj1.RUN()
obj1.onEdit = updateFont_Family
//Load current style
oPreview=dialogArguments[1];
inpFont_Family.value=oPreview.style.fontFamily;
inpFont_Size.value=oPreview.style.fontSize;
if(oPreview.style.fontStyle=="italic" && oPreview.style.fontWeight=="bold")
inpFont_StyleWeight.value = sStyleWeight4;
else if(oPreview.style.fontStyle=="italic")
inpFont_StyleWeight.value = sStyleWeight2;
else if(oPreview.style.fontWeight=="bold")
inpFont_StyleWeight.value = sStyleWeight3;
else if(oPreview.style.fontWeight=="normal" && oPreview.style.fontStyle=="normal")
inpFont_StyleWeight.value = sStyleWeight1;
else
inpFont_StyleWeight.value = "";
if(oPreview.style.textDecoration=="underline") inpText_Decoration[1].checked=true;
else if(oPreview.style.textDecoration=="overline") inpText_Decoration[2].checked=true;
else if(oPreview.style.textDecoration=="line-through") inpText_Decoration[3].checked=true;
else if(oPreview.style.textDecoration=="none") inpText_Decoration[4].checked=true;
else inpText_Decoration[0].checked=true;
if(oPreview.style.textTransform=="capitalize") inpText_Case[1].checked=true;
后面还有 317 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
