Hi. Sorry about that. Looks like you hit a bug =)
Changing the code inside the foreach () { } button to;
my @colors;
push @colors, 'FF66FF';
push @colors, '6699FF';
push @colors, '66FFFF';
push @colors, 'CC99FF';
push @colors, 'FFFF66';
push @colors, 'FF9933';
my $rand_number = rand $#colors;
# now lets make the pretty colours!
my $highlight_string = qq|style="background-color: #| . $colors[$rand_number] . q|"|;
my $replace = qq|<span $highlight_string>$_</span>|;
$value =~ s|\Q$_|$replace|ig;
...should make it so that multiple random colors are used :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Changing the code inside the foreach () { } button to;
Code:
# define our random color. my @colors;
push @colors, 'FF66FF';
push @colors, '6699FF';
push @colors, '66FFFF';
push @colors, 'CC99FF';
push @colors, 'FFFF66';
push @colors, 'FF9933';
my $rand_number = rand $#colors;
# now lets make the pretty colours!
my $highlight_string = qq|style="background-color: #| . $colors[$rand_number] . q|"|;
my $replace = qq|<span $highlight_string>$_</span>|;
$value =~ s|\Q$_|$replace|ig;
...should make it so that multiple random colors are used :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!