box: null,
notebox: null,
width: 0,
- deltat: 100,
- deltas: 5,
+ deltat: 250,
+ deltas: 12,
xend: 0,
timout: null,
+ clickable: true,
show: function()
{
+ $('tickbut').style.visibility = "hidden";
+ $('tickbut').style.width = "0px";
+
+ this.clickable = true;
this.box.style.visibility = "visible";
},
hide: function()
{
- this.box.style.visibility = "hidden";
+ $('tickbut').style.visibility = "visible";
+ $('tickbut').style.width = "20px";
+
+ this.clickable = false;
for (cur = this.first ; cur != null ; cur = cur.next) {
if (cur.notebox != null) {
cur.cb_mouseout();
if (this.first == null) {
clearTimeout(this.timout);
- // this.box.style.visibility = "hidden";
+ this.timout = null;
}
},
wag.box.innerHTML = "";
wag.shut_step = 2;
}
- curw = wag.widthbox_get() - 4;
+ curw = wag.widthbox_get() - 10;
wag.w = curw + 2; // 2 for border pixels
if (curw <= 0) {
obj.box.removeChild(wag.box);
}
}
this.redraw();
- setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); }, 100, [ obj, wag ]);
+ setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); }, 250, [ obj, wag ]);
},
redraw: function()
start: function()
{
this.resetx();
- this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
+ if (this.timout == null) {
+ this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
+ }
},
animate: function()
{
this.box.style.left = (parseInt(this.box.style.left) - this.deltas)+"px";
- if (parseInt(this.box.style.left) >= this.xend) {
- this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
- }
- else {
- // qui destroy
- this.box.style.left = this.anc.offsetWidth+"px";
- this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
- }
+
+// if (parseInt(this.box.style.left) >= this.xend) {
+// this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
+// }
+// else {
+// this.box.style.left = this.anc.offsetWidth+"px";
+// this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
+// }
+ if (parseInt(this.box.style.left) < this.xend) {
+ this.box.style.left = this.anc.offsetWidth+"px";
+ }
+ this.timout = setTimeout(function(obj){ obj.animate(); }, this.deltat, this);
},
widthbox_get: function()
cb_click: function()
{
- act_sitdown(this.table);
+ if (this.anc.clickable == true) {
+ act_sitdown(this.table);
+ }
},
cb_mouseover: function()