Help.Web/editor/scripts/moz/table_insert.htm

(开头部分) 12KB

这里只显示每个文件的开头 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+"/table_insert.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>

var oTU=new TableUtilities();
    
function TableUtilities()
    {
    this.oTD;
    }

function GetElement(oElement,sMatchTag)
    {
    while (oElement!=null&&oElement.tagName!=sMatchTag)
        {
        if(oElement.tagName=="BODY")return null;
        oElement=oElement.parentNode;
        }
    return oElement;
    }
        
function tableClick(oTD)
    {
    if(oTD.tagName!="TD")return;
    
    oTable=GetElement(oTD,"TABLE");
    
    for(var i=0;i<oTable.rows.length;i++)
        {
        oCurrTR=oTable.rows[i];
        for(var j=0;j<oCurrTR.cells.length;j++)
            {
            oCurrTD=oCurrTR.cells[j]
            oCurrTD.style.backgroundColor="white";
            }
        }
    oTD.style.backgroundColor="#fac606";
    oTU.oTD=oTD;
    }

function doColSpan()
    {
    if(oTU.oTD==null)return;
    var oTD = oTU.oTD
    var oTable=GetElement(oTD,"TABLE")

    if(oTD.nextSibling!=null)
        {
        var numOfSpan=oTD.nextSibling.getAttribute("COLSPAN");
        numOfSpan = numOfSpan==null ? 1 : parseInt(numOfSpan);
        oTable.rows[oTD.parentNode.rowIndex].deleteCell(oTD.nextSibling.cellIndex);
        var curCellSpan = oTD.getAttribute("COLSPAN");
        curCellSpan = curCellSpan==null ? 1 : parseInt(curCellSpan);
后面还有 288 行代码,解锁后查看完整代码

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

AI 解读

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

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