id = $id; $this->label = $label; $this->action = $action; } function getHtml() { $actions = ""; $html = ""; $actions .= " onclick=\"$this->action\""; $actions .= " onmousedown=\"this.className = 'button_down'\""; $actions .= " onmouseup=\"this.className = 'button'\""; $actions .= " onmouseover=\"this.className = 'button_over'\""; $actions .= " onmouseout=\"this.className = 'button'\""; $html .= "
id\" class=\"button\" $actions>$this->label\n"; return $html; } } ?>