Date: 11/06/99
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Sat Nov 6 17:35:29 1999
Modified files:
php-lib/pages/menu/button.php3
Log message:
Index: php-lib/pages/menu/button.php3
diff -u php-lib/pages/menu/button.php3:1.3 php-lib/pages/menu/button.php3:1.4
--- php-lib/pages/menu/button.php3:1.3 Sat Nov 6 17:26:45 1999
+++ php-lib/pages/menu/button.php3 Sat Nov 6 17:34:58 1999
@@ -12,10 +12,11 @@
## Sanitize args
settype($level, "integer");
- if ($level <0) $level = 0;
+ if ($level <1) $level = 1;
if ($level > count($fsize)) $level = 4;
$selected = $selected?1:0;
$hilite = $hilite?1:0;
+ $level--; ## comment out if desired (Menu_Button starts levels at 1)
## Filename in cache directory
@@ -37,14 +38,14 @@
$tx_selected = Imagecolorallocate($im, 255, 255, 255);
$lo_selected = Imagecolorallocate($im, 64, 128, 64);
- $hi_selected = Imagecolorallocate($im, 128, 192, 128);
+ $hi_selected = Imagecolorallocate($im, 192, 128, 128);
$colbase = 255;
$colstep = -16;
for ($i=0; $i<count($fsize); $i++) {
$col = $colbase+$colstep*$i;
- $locolor[$i] = Imagecolorallocate($im, $col, $col, $col);
- $hicolor[$i] = Imagecolorallocate($im, $col, 255, $col);
+ $locolor[$i] = Imagecolorallocate($im, $col, 255, $col);
+ $hicolor[$i] = Imagecolorallocate($im, 255, $col, $col);
}
if ($hilite)
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

