/* PRO CHATT */
function chatt_sub(name,str)
{
+ var must_scroll = false;
+
+ // alert ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) - $("txt").scrollHeight);
+
+ if ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) - $("txt").scrollHeight >= 0)
+ must_scroll = true;
+
// alert("ARRIVA NAME: "+ name + " STR:"+str);
if (chatt_lines_n == CHATT_MAXLINES) {
$("txt").innerHTML = "";
$("txt").innerHTML += chatt_lines[chatt_lines_n];
chatt_lines_n++;
}
- $("txt").innerHTML;
- $("txt").scrollTop = 10000000;
+ // $("txt").innerHTML;
+
+
+ if (must_scroll) {
+ $("txt").scrollTop = 10000000;
+ }
+ // alert("scTOP "+$("txt").scrollTop+" scHEIGHT: "+$("txt").scrollHeight+" HEIGHT: "+getStyle($("txt"),"height", "height") );
}
/*
box: null,
notebox: null,
width: 0,
- deltat: 100,
- deltas: 5,
+ deltat: 250,
+ deltas: 12,
xend: 0,
timout: null,
clickable: true,
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()