3 require_once("$CFG->libdir/form/submit.php");
4 class MoodleQuickForm_submitlink
extends MoodleQuickForm_submit
{
7 function MoodleQuickForm_submitlink($elementName=null, $value=null, $attributes=null) {
8 parent
::MoodleQuickForm_submit($elementName, $value, $attributes);
12 $text = $this->_attributes
['value'];
13 $onmouseover = "window.status=\'" . $text . "\';";
14 $onmouseout = "window.status=\'\';";
16 return "<noscript>" . parent
::toHtml() . '</noscript><script type="text/javascript">' . $this->_js
. "\n"
17 . 'document.write(\'<a href="#" onclick="' . $this->_onclick
. '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">'
18 . $text . "</a>');\n</script>";