X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fticker.js;h=fe8a096116fadf0bb2246498ce6739937317c218;hb=4aed730e6cbd1423d6551e527da40e3d47d4a27c;hp=e4362ff29d25b3cc70d3775b5192b9d41a638599;hpb=b7e8800bffee3d4a134444475570f584d76d5c2b;p=brisk.git diff --git a/web/ticker.js b/web/ticker.js index e4362ff..fe8a096 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -49,20 +49,26 @@ train.prototype = { box: null, notebox: null, width: 0, - deltat: 100, - deltas: 5, + deltat: 250, + deltas: 10, 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() { + $('tickbut').style.visibility = "visible"; + $('tickbut').style.width = "20px"; + this.clickable = false; for (cur = this.first ; cur != null ; cur = cur.next) { if (cur.notebox != null) { @@ -98,6 +104,7 @@ train.prototype = { if (dostart) { this.start(); } + }, rem: function(table) @@ -172,7 +179,7 @@ train.prototype = { start_move: function() { - this.deltas = 5; + this.deltas = 10; }, shut_wagon: function(args) @@ -197,9 +204,11 @@ 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) { + wag.cb_mouseout(); + obj.box.removeChild(wag.box); obj.rem_obj(wag); @@ -211,7 +220,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() @@ -239,6 +248,9 @@ train.prototype = { resetx: function() { + this.deltas = 10; + this.clickable = true; + this.box.style.left = this.anc.offsetWidth+"px"; },