Being that your question is still a little vague to me, there is a chance I'm misunderstanding it. However, I will explain my assumptions and we can run from there:
I'm assuming:
1. You have a static *.html table that has, among other things, row/columns with one of three colors in them.
2. If you click a link relative to one of these rows, you would like to be directed to another page with the 'linked' color.
If I'm incorrect with either of my two assumptions, please let me know and I will try to re-factor my answer. Though, given these assumptions, here is something you can do:
Your HTML links could resemble the following:
<a href="color.cgi?source_color=red">Red link</a>
Next, in the CGI script, you could code the following:
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $source = CGI::param( 'source_color' );
my $color_map = {
'red' => 'CCFF33',
};
my $destination = '#' . ( $color_map->{$source} || 'CCFF33' );
Now, for each of the 'source' colors relative to the link, you will be able to translate it to the destination HTML color code. Then, using the HEX representation of the color within the $destination variable, you will be able to use it where every you like throughout your code.
Again, I might not understand your real problem. If this doesn't sound like a solution like you were looking for, feel free to elaborate on your question. Otherwise, hope this helps!
---hA||ta----
print map{$_.' '}grep{/\w+/}@{[reverse(qw{Perl Code})]} or die while ( 'trying' );
| [reply] [d/l] [select] |
NO SOURCE DESTINATION NET SERVICES
row1 link in red color link in yellow nmfp ppp
row2 link in yellow color link in yellow ndfmp sdf
row3 link in red color link in yellow nfgmp ppdp
row4 link in yellow color link in yellow nmp psp
This is how it will look like. i want to collect the info about the row that has source in red color and destination in yellow (no need to click on the link) i jsut want to check the color of the link.
is this fine ?
sunny | [reply] [d/l] |
How is the color information (inclu|enco)ded for the links? Is the color of a link controlled via CSS, font tags, web browser, or other?
| [reply] |