#!/usr/bin/perl package Graphics::ColorPicker; use strict; #use diagnostics; use lib qw(./blib/lib); use vars qw($VERSION $msie_frame $colwidth $leftwidth $force_msie $obfuscate $server_only $use_mdown $image); use AutoLoader 'AUTOLOAD'; $VERSION = do { my @r = (q$Revision: 0.11 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; ################################################ # set some things, should not need to be changed ################################################ # NOTE: set var c24flip in sub picker for the initial dark or light palette $server_only = 0; # overides $obfuscate, $force_msie, $use_mdown, $p_gen::jsl # normally set to one for external client based xy resolution $obfuscate = 1; # overides force_msie, and frames(parameter) # forces jslib to be loaded by copyright page #### THIS SHOULD ALWAYS BE SET TO ONE !!! # the new xy resolution methods work for all clients $use_mdown = 1; # use new onMouseDown routines, overides client side $force_msie $force_msie = 0; # normally 0 set 1 to use msie stuff in netscape for debug $colwidth = 85; # width of columns, right side is 2X this $leftwidth = 450; # color picker width $image = 1; # starting picker image, 0=dark, 1=light ################################################ my $greyimg = 'grey.jpg'; my $darkimg = 'darkb409.jpg'; my $liteimg = 'liteb409.jpg'; my $size = 409; my $button = 38; ################################################ $_ = $colwidth << 1; $msie_frame = '
| ColorPicker © 2002-'. ((localtime())[5] + 1900). ' Michael Robinton loading, please wait |
| |. $c24m . q| | |. $cgrey . q| |
| |. $colortab . q| | |. $digitbox . &make_buttons('#0000cc',60,$butable) . qq| $VERSION |
| |;
}
else {
$butbar .= q||; } $butbar .= qq| | |