Hi
It would be nice if the outline recognized OO JS.
Try this in your editor:
function FormButton(name) {
this.name = name;
this.mc = document.getElementById("button_"+name);
this.active = false;
this.normal();
}
FormButton.prototype.hilight = function (name) {
if (this.mc==null) return;
if (this.active) {
this.mc.style.background = "#dff0ff";
this.mc.style.color = "#1e88bf";
}
}
FormButton.prototype.normal = function (name) {
if (this.mc==null) return;
if (this.active) {
this.mc.style.background = "#eff8ff";
this.mc.style.color = "#1e88bf";
this.mc.style.cursor = "pointer";
} else {
this.mc.style.background = "#f0f0f0";
this.mc.style.color = "d0d0d0";
this.mc.style.cursor = "arrow";
}
}
FormButton.prototype.setActive = function (active) {
this.active = active;
this.normal();
}