Help.Web/editor/styles.htm
(开头部分) 6KB这里只显示每个文件的开头 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.oUtil.langDir;
document.write("<scr"+"ipt src='language/"+sLangDir+"/styles.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function doWindowFocus()
{
dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
}
function bodyOnLoad()
{
window.onfocus=doWindowFocus;
dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
var obj=dialogArguments.oUtil.obj;
obj.focus();//supaya di awal langsung me-load style selection
arrStyle = obj.arrStyle;
var sStyle=""
for(var i=0;i<arrStyle.length;i++)
{
sStyle+=arrStyle[i][0]+"{"+ arrStyle[i][3]+"}"+ "\n"
}
var sHTML="<HTML><HEAD><STYLE>"+sStyle+"</STYLE></HEAD><BODY margin-left=0 margin-top=0 margin-right=0 margin-bottom=0 style='border:#808080 1 solid'><table width=100% height=100%><tr><td id=idPreviewTarget valign=middle align=center> </td></tr></table></BODY></HTML>";
var oDoc=idPreview.document.open("text/html", "replace");
oDoc.write(sHTML);
oDoc.close();
realTime()
}
function realTime()
{
if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
var oEditor=dialogArguments.oUtil.oEditor;
var oSel=oEditor.document.selection.createRange();
var obj=dialogArguments.oUtil.obj;
if(dialogArguments.oUtil.activeElement)
{
oElement=dialogArguments.oUtil.activeElement
}
else
{
if (oSel.parentElement) oElement=oSel.parentElement();
else oElement=oSel.item(0);
}
var tagName=oElement.tagName;
while(inpClassName.options.length!=0)
{
inpClassName.options.remove(inpClassName.options(0))
后面还有 178 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
