IE, importNode
document._importNode = function(oNode, bImportChildren) {
var oNew;
if(oNode.nodeType == 1) {
oNew = document.createElement(oNode.nodeName);
for(var i = 0; i < oNode.attributes.length; i++) {
if(oNode.attributes[i].nodeValue != null &&
oNode.attributes[i].nodeValue != '') {
var attrName = oNode.attributes[i].name;
if(attrName == "class") {
oNew.setAttribute("className", \
oNode.attributes[i].value);
} else {
oNew.setAttribute(attrName, \
oNode.attributes[i].value);
}
}
}
if(oNode.style != null && oNode.style.cssText != null) {
oNew.style.cssText = oNode.style.cssText;
}
} else if(oNode.nodeType == 3) {
oNew = document.createTextNode(oNode.nodeValue);
}
if(bImportChildren && oNode.hasChildNodes()) {
for(var oChild = oNode.firstChild; oChild; \
oChild = oChild.nextSibling) {
oNew.appendChild(document._importNode(oChild, true));
}
}
return oNew;
}
via: this and thisIE, innerHTML
"The (innerHTML) property is read/write for all objects(source)
except the following, for which it is read-only:
COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY,
TFOOT, THEAD, TITLE, TR."
excellent ...
Disable screensaver in Ubuntu
#To disable the screensaver:(via: http://ubuntuforums.org/showthread.php?t=428967)
gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type=bool false
#To disable monitor sleeping:
gconftool-2 -s /apps/gnome-power-manager/ac_sleep_display --type=int 0
Next1-10/17








