| 12345678910111213141516171819202122232425262728 |
- <?php
- class NTKButton
- {
- function NTKButton($id, $label, $action)
- {
- $this->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 .= "<div id=\"$this->id\" class=\"button\" $actions>$this->label</span>\n";
- return $html;
- }
- }
- ?>
|