c++;
}
-function act_preout()
-{
- act_logout();
-}
-
function postact_logout()
{
// alert("postact_logout");
btn = $("asta"+i);
if (i < idx) {
btn.src = "img/astapasso"+(pnt >= 0 ? "" : "_ro")+".png";
+ btn.style.cursor = (pnt >= 0 ? "pointer" : "default");
pass = -1;
}
else {
btn.src = "img/asta"+i+(pnt >= 0 ? "" : "_ro")+".png";
+ btn.style.cursor = (pnt >= 0 ? "pointer" : "default");
pass = i;
}
if (i < 19)
else
btn.style.left = asta_xarr[(i+1) % 3];
- btn.style.top = parseInt(i / 3) * 50+1;
+ btn.style.top = parseInt(i / 3) * 50 + (i == 9 ? 0 : 1);
if (pnt >= 0) {
eval("btn.onclick = function () { act_asta("+pass+",61); }");
- btn.style.hover_cursor = "pointer";
+ btn.style.cursor = "pointer";
}
else {
btn.onclick = null;
- btn.style.hover_cursor = "";
+ btn.style.cursor = "default";
}
}
btn.style.left = asta_xarr[i % 3];
btn.style.top = 25 + parseInt(i / 3) * 50 - 1;
btn.src = "img/astaptsub"+(pnt >= 0 ? "" : "_ro")+".png";
- // btn.style.visibility = "visible";
+ btn.style.cursor = (pnt >= 0 ? "pointer" : "default");
if (pnt >= 0) {
btn.onclick = function () { act_asta(9,$("astapt").value); };
- // btn.stylehover.cursor = "pointer";
+ btn.style.cursor = "pointer";
}
else {
btn.onclick = null;
- // btn.stylehover.cursor = "";
+ btn.style.cursor = "default";
}
i+=1;
btn.style.left = asta_xarr[i % 3];
btn.style.top = parseInt(i / 3) * 50;
btn.src = "img/astapashalf"+(pnt >= 0 ? "" : "_ro")+".png";
+ btn.style.cursor = (pnt >= 0 ? "pointer" : "default");
if (pnt >= 0) {
btn.onclick = function () { act_asta(-1,0); };
- // btn.stylehover.cursor = "pointer";
}
else {
btn.onclick = null;
- // btn.stylehover.cursor = "";
}
btn = $("astalascio");
btn.style.left = asta_xarr[i % 3];
btn.style.top = parseInt(i / 3) * 50;;
btn.src = "img/astapasso"+(pnt >= 0 ? "" : "_ro")+".png";
+ btn.style.cursor = (pnt >= 0 ? "pointer" : "default");
if (pnt >= 0) {
btn.onclick = function () { act_asta(-1,0); };
- // btn.stylehover.cursor = "pointer";
}
else {
btn.onclick = null;
- // btn.stylehover.cursor = "";
}
btn = $("astalascio");
$("asta").style.visibility = "visible";
}
+function asta_pnt_set(pnt)
+{
+ btn = $("astapt");
+ var rpnt = (pnt < 0 ? -pnt : pnt);
+ btn.value = (rpnt < 61 ? 61 : (rpnt > 120 ? 120 : rpnt));
+}
+
function hide_asta()
{
$("asta").style.visibility = "hidden";
stand = "<table class=\"table_standup\"><tbody><tr>";
for (i = 0 ; i < inpe ; i++) {
- stand += "<td class=\"td_standup\">"+nome+"</td>";
+ stand += "<td>"+nome+"</td>";
if ((i+1) % 4 == 0) {
stand += "</tr><tr>";
}
stand += "</tr>";
$("standup").innerHTML = stand;
- $("esco").innerHTML = "<input name=\"logout\" type=\"button\" value=\"Esco.\" onclick=\"window.onunload = null; act_logout();\" type=\"button\">";
+ $("esco").innerHTML = "<input class=\"button\" name=\"logout\" type=\"button\" value=\"Esco.\" onclick=\"window.onunload = null; act_logout();\" type=\"button\">";
}
function playsound(tag, sound) {