/** * Constructor * * @access public * @param string $text Text of ImageButton * @param string $img Image to display * @param string $action * @return void */ function Jaws_Widgets_ImageButton($text, $img, $action = '') { $this->_ImageSRC = $img; $this->_Text = $text; $this->_Action = $action; $this->_ExtraActions = array(); $this->_AvailableEvents = array('onfocus', 'onblur', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 'onkeydown', 'onkeyup'); parent::Init(); }