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">
12 window.onload = function() {
13 console.log("HT"+$('t1'));
14 Drag.call($('t1'), dropt1, -1600, 1600, 10,10);
18 <script type="text/javascript">
29 console.log("NAME: "+this.name);
34 this.super.constructor.call(this);
43 console.log("NAME: "+this.name);
44 console.log("NNAME: "+this.nname);
48 function Extends_simple(sub, super)
50 var thinF = function(){};
51 thinF.prototype = super.prototype;
52 var tmp = new thinF();
54 for( var f in sub.prototype) {
55 tmp[f] = sub.prototype[f];
56 tmp['constructor'] = sub;
58 if( super.prototype.constructor == Object.prototype.constructor ){
59 super.prototype.constructor = super;
61 tmp['super'] = super.prototype;
65 Extends_simple(Caino, Adamo);
69 console.log("A "+c.alupa);
70 console.log("G "+c.gojira);
71 console.log("U "+c.unko);
81 a_attr: "a attr content",
86 console.log("A_NAME: "+this.a_din);
87 console.log("A_ATTR: "+this.a_attr);
100 this.b_din = "bonobo";
105 b_attr: "b attr content",
109 console.log("B_NAME: "+this.b_din);
110 console.log("B_ATTR: "+this.b_attr);
115 this.c_din = "canuca";
120 c_attr: "c attr content",
124 console.log("C_NAME: "+this.c_din);
125 console.log("C_ATTR: "+this.c_attr);
131 this.s_name = "caino";
145 console.log("c_func overwrited");
153 console.log("name: "+this.name);
157 Extends(Summo, A, B, C);
169 <div id="board" style="width: 1600; height: 800px; background-color: #f0f0f0; border: 1px solid black; position: relative;">
171 <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>