more button display enhancements
[squirrelmail.git] / functions / mailbox_display.php
index 51723f54d592e3880e3ec6fe83613cf039380035..982c1316803c53830820fa6df1a1ccb0f7bd384b 100644 (file)
@@ -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[4].';font-size:80%;font-weight:bold;'.
+                  'color:'.$color[8].';margin:0.05em;border:0.2em outset '.
+                 $color[9].';"';
+$javascript = " onmouseover=\"this.style.color='$color[4]'".
+                           ";this.style.borderStyle='inset'" .
+                           ";this.style.background='$color[3]';\";" .
+             " onmouseout=\"this.style.color='$color[8]'".
+                           ";this.style.borderStyle='outset'" . 
+                           ";this.style.background='$color[4]';\";";
+
+return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '"'.$style.$javascript.'>';
 }
 
 function getSmallStringCell($string, $align) {