📄 x_dom_n4.js
字号:
// x_dom_n4.js, part of X, a Cross-Browser.com Javascript Library
// Copyright (C) 2001,2002,2003,2004,2005 Michael Foster - Distributed under the terms of the GNU LGPL - OSI Certified
// File Rev: 2
// Returns a new Element object.
// For NN4, returns a new Object object - xAppendChild will return the Layer object.
function xCreateElement(sTag)
{
var ele=null;
if (xOp5or6 || xIE4) return null;
if (document.createElement) ele = document.createElement(sTag);
else if (xNN4) ele = new Object();
return ele;
}
function xAppendChild(oParent, oChild, nn4Width) // returns oChild
{
var ele=null;
if (!oChild) return;
if (oParent && oParent.appendChild) ele = oParent.appendChild(oChild);
else if (xNN4) {
if (typeof(oChild)=='object') delete oChild;
if (!oParent || oParent.id.indexOf('_layer')==-1) {
oParent = window;
if (!nn4Width) nn4Width = xClientWidth();
}
else if (!nn4Width) nn4Width = xWidth(oParent);
ele = new Layer(nn4Width, oParent);
}
return ele;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -