3 <script type="text/javascript" src="commons.js"></script>
4 <script type="text/javascript" src="xynt-dd.js"></script>
5 <script type="text/javascript" src="xynt-link.js"></script>
6 <script type="text/javascript">
17 console.log("NAME: "+this.name);
22 this.super.constructor.call(this);
31 console.log("NAME: "+this.name);
32 console.log("NNAME: "+this.nname);
36 function Extends(sub, super)
38 var thinF = function(){};
39 thinF.prototype = super.prototype;
40 var tmp = new thinF();
42 for( var f in sub.prototype) {
43 tmp[f] = sub.prototype[f];
44 tmp['constructor'] = sub;
46 if( super.prototype.constructor == Object.prototype.constructor ){
47 super.prototype.constructor = super;
49 tmp['super'] = super.prototype;
53 Extends(Caino, Adamo);
57 console.log("A"+c.alupa);
58 console.log("G"+c.gojira);
59 console.log("U"+c.unko);
67 var thinF = function(){};
68 thinF.prototype = super.prototype;
69 sub.prototype = new thinF();
70 sub.prototype.constructor = sub;
71 sub.super = super.prototype;
72 if( super.prototype.constructor == Object.prototype.constructor ){
73 super.prototype.constructor = super;
85 var thinF = function(){};
86 thinF.prototype = super.prototype;
87 sub.prototype = new thinF();
89 05. sub.prototype.constructor = sub;
90 06. sub.super = super.prototype;
91 07. if( super.prototype.constructor == Object.prototype.constructor ){
92 08. super.prototype.constructor = super;
100 <div id="board" style="width: 1600; height: 800px; background-color: #f0f0f0; border: 1px solid black; position: relative;">
101 <div id="r1" style="width: 1600; height: 40px; left: 0px; top: 0px; background-color: #e8e8e8; border: 0px solid red; position: absolute;">
102 <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>
105 <div id="r2" style="width: 1600; left: 0px; top: 40px; height: 40px; background-color: #e8e8ff; border: 0px solid red; position: absolute;">
106 <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>
109 <div id="r3" style="width: 1600; height: 40px; left: 0px; top: 80px; background-color: #e8e8e8; border: 0px solid red; position: absolute;">
110 <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>
113 <div id="r4" style="width: 1600; left: 0px; top: 120px; height: 40px; background-color: #e8e8ff; border: 0px solid red; position: absolute;">
114 <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>