浏览代码

button tweaks

stekkel 23 年之前
父节点
当前提交
977d4919c9
共有 1 个文件被更改,包括 12 次插入1 次删除
  1. 12 1
      functions/mailbox_display.php

+ 12 - 1
functions/mailbox_display.php

@@ -1242,7 +1242,18 @@ function getMbxList($imapConnection) {
 }
 
 function getButton($type, $name, $value) {
-return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '">';
+global $color;
+$style = ' STYLE="background:'.$color[3].';font-size:xx-small;font-weight:bold;'.
+                  'color:'.$color[8].';margin:0.05em;border:0.2em outset '.
+		  $color[9].';"';
+$javascript = " onmouseover=\"this.style.borderColor='$color[8]'".
+                           ";this.style.borderStyle='inset'" .
+                           ";this.style.background='$color[0]';\";" .
+	      " onmouseout=\"this.style.borderColor='$color[9]'".
+                           ";this.style.borderStyle='outset'" . 
+                           ";this.style.background='$color[3]';\";";
+
+return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '"'.$style.$javascript.'>';
 }
 
 function getSmallStringCell($string, $align) {