3 <script type="text/javascript" src="commons.js"></script>
4 <script type="text/javascript" src="xynt-base.js"></script>
5 <script type="text/javascript" src="xynt-dd.js"></script>
6 <script type="text/javascript" src="xynt-link.js"></script>
7 <script type="text/javascript">
9 var a = new Array("a", "b", "c", "d");
26 console.log("NAME: "+this.name);
31 this.super.constructor.call(this);
40 console.log("NAME: "+this.name);
41 console.log("NNAME: "+this.nname);
45 function Extends_simple(sub, super)
47 var thinF = function(){};
48 thinF.prototype = super.prototype;
49 var tmp = new thinF();
51 for( var f in sub.prototype) {
52 tmp[f] = sub.prototype[f];
53 tmp['constructor'] = sub;
55 if( super.prototype.constructor == Object.prototype.constructor ){
56 super.prototype.constructor = super;
58 tmp['super'] = super.prototype;
62 Extends_simple(Caino, Adamo);
66 console.log("A "+c.alupa);
67 console.log("G "+c.gojira);
68 console.log("U "+c.unko);
78 a_attr: "a attr content",
83 console.log("A_NAME: "+this.a_din);
84 console.log("A_ATTR: "+this.a_attr);
97 this.b_din = "bonobo";
102 b_attr: "b attr content",
106 console.log("B_NAME: "+this.b_din);
107 console.log("B_ATTR: "+this.b_attr);
112 this.c_din = "canuca";
117 c_attr: "c attr content",
121 console.log("C_NAME: "+this.c_din);
122 console.log("C_ATTR: "+this.c_attr);
128 this.s_name = "caino";
142 console.log("c_func overwrited");
150 console.log("name: "+this.name);
154 Extends(Summo, A, B, C);
165 <div id="board" style="width: 1600; height: 800px; background-color: #f0f0f0; border: 1px solid black; position: relative;">
166 <div id="r1" style="width: 1600; height: 40px; left: 0px; top: 0px; background-color: #e8e8e8; border: 0px solid red; position: absolute;">
167 <div id="t1" style="z-index: 1; left: 10px; top: 10px; width: 100px; height: 21px; border: 1px solid gray; background-color: #c0c0ff; position: absolute;"></div>
170 <div id="r2" style="width: 1600; left: 0px; top: 40px; height: 40px; background-color: #e8e8ff; border: 0px solid red; position: absolute;">
171 <div id="t2" style="z-index: 1; left: 123px; top: 10px; width: 100px; height: 21px; border: 1px solid gray; background-color: #c0ffc0; position: absolute;"></div>
174 <div id="r3" style="width: 1600; height: 40px; left: 0px; top: 80px; background-color: #e8e8e8; border: 0px solid red; position: absolute;">
175 <div id="t3" style="z-index: 1; left: 10px; top: 10px; width: 100px; height: 21px; border: 1px solid gray; background-color: #c0c0ff; position: absolute;"></div>
178 <div id="r4" style="width: 1600; left: 0px; top: 120px; height: 40px; background-color: #e8e8ff; border: 0px solid red; position: absolute;">
179 <div id="t4" style="z-index: 1; left: 123px; top: 10px; width: 100px; height: 21px; border: 1px solid gray; background-color: #c0ffc0; position: absolute;"></div>