1 function myconsole(ena) {
6 this.win = window.open("","","scrollbars=yes,height=500,width=400,left=0,top=800");
7 conbody = this.win.document.createElement("body");
8 this.div = condiv = this.win.document.createElement("div");
10 conbody.id = "console_body";
11 this.win.document.body.appendChild(condiv);
15 myconsole.prototype = {
24 this.div.innerHTML += s + "<br>";
25 this.win.document.body.scrollTop = 10000000;
32 this.div.innerHTML += s + "<br>";
33 this.win.document.body.scrollTop = 10000000;
46 var ismyconsole = false;
47 var console_enable = true;
49 if(typeof(console) == "undefined") {
52 console = new myconsole(console_enable);
57 // console.logger = console.log;
58 // console.log = function () { return 0; }
61 function deconsole() {
67 function log_walk(curtag)
70 var ancestor = curtag;
72 console.log(spcs("_", "+", ind)+" ["+curtag.tagName+"] nodeType: "+curtag.nodeType+" inner: ["+curtag.innerHTML+"]");
73 if (curtag.firstChild != null && curtag.tagName != "TD") {
75 curtag = curtag.firstChild;
77 else if (curtag.nextSibling != null) {
78 curtag = curtag.nextSibling;
80 else if (curtag.parentNode.nextSibling != null) {
82 curtag = curtag.parentNode.nextSibling;
86 } while (curtag != null && curtag != ancestor);