Help.Web/editor/scripts/moz/styles.htm
(开头部分) 8KB这里只显示每个文件的开头 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=window.opener.oUtil.langDir;
document.write("<scr"+"ipt src='../language/"+sLangDir+"/styles.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function doWindowFocus()
{
window.opener.oUtil.onSelectionChanged=new Function("realTime()");
}
function bodyOnLoad()
{
window.onfocus=doWindowFocus;
window.opener.oUtil.onSelectionChanged=new Function("realTime()");
var obj=window.opener.oUtil.obj;
arrStyle = obj.arrStyle;
var sStyle=""
for(var i=0;i<arrStyle.length;i++)
{
sStyle+=arrStyle[i][0]+"{"+ arrStyle[i][3]+"}"+ "\n"
}
var idPreview = document.getElementById("idPreview").contentWindow;
var sHTML="<HTML><HEAD><STYLE>"+sStyle+"</STYLE></HEAD><BODY margin-left=0 margin-top=0 margin-right=0 margin-bottom=0><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()
{
var oEditor=window.opener.oUtil.oEditor;
var oSel=oEditor.getSelection();
var obj=window.opener.oUtil.obj;
var isTextSel = window.opener.isTextSelected(oSel);
var oElement;
if(window.opener.oUtil.activeElement)
oElement=window.opener.oUtil.activeElement
else
oElement = window.opener.getSelectedElement(oSel);
var tagName=oElement.tagName;
var inpClassName = document.getElementById("inpClassName");
var idPreview = document.getElementById("idPreview").contentWindow;
var selApply_to = document.getElementById("selApply_to");
if (!isTextSel) selApply_to.value = "Current Tag";
后面还有 189 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
