Пример #1
0
 function toHtml()
 {
     $text = $this->_attributes['value'];
     $onmouseover = "window.status=\\'" . $text . "\\';";
     $onmouseout = "window.status=\\'\\';";
     return "<noscript><div>" . parent::toHtml() . '</div></noscript><script type="text/javascript">' . $this->_js . "\n" . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">' . $text . "</a>');\n</script>";
 }
Пример #2
0
 /**
  * Returns HTML for submitlink form element.
  *
  * @return string
  */
 function toHtml()
 {
     $text = $this->_attributes['value'];
     return "<noscript><div>" . parent::toHtml() . '</div></noscript><script type="text/javascript">' . $this->_js . "\n" . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '">' . $text . "</a>');\n</script>";
 }