projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
webstart_hilite added, var for multiple topbanner big banner added
[brisk.git]
/
web
/
ticker.js
diff --git
a/web/ticker.js
b/web/ticker.js
index
980261d
..
fe8a096
100644
(file)
--- a/
web/ticker.js
+++ b/
web/ticker.js
@@
-49,19
+49,27
@@
train.prototype = {
box: null,
notebox: null,
width: 0,
box: null,
notebox: null,
width: 0,
- deltat:
10
0,
- deltas:
5
,
+ deltat:
25
0,
+ deltas:
10
,
xend: 0,
timout: null,
xend: 0,
timout: null,
+ clickable: true,
show: function()
{
show: function()
{
+ $('tickbut').style.visibility = "hidden";
+ $('tickbut').style.width = "0px";
+
+ this.clickable = true;
this.box.style.visibility = "visible";
},
hide: function()
{
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();
for (cur = this.first ; cur != null ; cur = cur.next) {
if (cur.notebox != null) {
cur.cb_mouseout();
@@
-96,6
+104,7
@@
train.prototype = {
if (dostart) {
this.start();
}
if (dostart) {
this.start();
}
+
},
rem: function(table)
},
rem: function(table)
@@
-170,7
+179,7
@@
train.prototype = {
start_move: function()
{
start_move: function()
{
- this.deltas =
5
;
+ this.deltas =
10
;
},
shut_wagon: function(args)
},
shut_wagon: function(args)
@@
-195,9
+204,11
@@
train.prototype = {
wag.box.innerHTML = "";
wag.shut_step = 2;
}
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.w = curw + 2; // 2 for border pixels
if (curw <= 0) {
+ wag.cb_mouseout();
+
obj.box.removeChild(wag.box);
obj.rem_obj(wag);
obj.box.removeChild(wag.box);
obj.rem_obj(wag);
@@
-209,7
+220,7
@@
train.prototype = {
}
}
this.redraw();
}
}
this.redraw();
- setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); },
10
0, [ obj, wag ]);
+ setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]); },
25
0, [ obj, wag ]);
},
redraw: function()
},
redraw: function()
@@
-237,6
+248,9
@@
train.prototype = {
resetx: function()
{
resetx: function()
{
+ this.deltas = 10;
+ this.clickable = true;
+
this.box.style.left = this.anc.offsetWidth+"px";
},
this.box.style.left = this.anc.offsetWidth+"px";
},
@@
-361,7
+375,9
@@
wagon.prototype = {
cb_click: function()
{
cb_click: function()
{
- act_sitdown(this.table);
+ if (this.anc.clickable == true) {
+ act_sitdown(this.table);
+ }
},
cb_mouseover: function()
},
cb_mouseover: function()