X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fticker.js;h=c2c8808250589bc36c0644f26df4c2996f9aa53f;hb=93a49a9f99e52c693a3f06f6edbe27f9f1ef7c68;hp=980261dbda76be9a1cc845773d47f65578a4cc0e;hpb=61777f564d9c25aeea2542a9f2fdad87b5a4780b;p=brisk.git diff --git a/web/ticker.js b/web/ticker.js index 980261d..c2c8808 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -49,19 +49,27 @@ train.prototype = { 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(); @@ -195,7 +203,7 @@ train.prototype = { 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); @@ -209,7 +217,7 @@ train.prototype = { } } 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() @@ -361,7 +369,9 @@ wagon.prototype = { cb_click: function() { - act_sitdown(this.table); + if (this.anc.clickable == true) { + act_sitdown(this.table); + } }, cb_mouseover: function()