When using a <%random_link%> global on my home.html page, the CSS background color is being lost in IE 5 pc and IE 6 pc.
See my other post with a photo of this problem. Specifically the link on home page problem.
I have determined that the background color is being lost due to the link.html being loaded via a global. I have rewritten the global a half dozen different ways and it still produces a link with the wrong background color.
If I <%include link.html%> on the home page, the background is the correct color.
Calling <%include link.html%> directly from home.html doesn't really work for obvious reasons. It has no idea what link I want and no id or anything else, but the linklisting box shows up, and it is in the color specified by css.
When using the actual global which displays the link properly, the background color is wrong.
So it is my conclusion that...
Calling Links::SiteHTML::display('link',$rec);
via a global is what is breaking the css in ie5 and 6 on pc.
I am spending an awful lot of time on these css issues, it would be nice to get some input.
Thank you,
Chris
my random global:
my $in_cat = shift;
my $db = $DB->table ('Links','CatLinks');
$db->select_options ("ORDER BY rand()","LIMIT 1");
my $sth = $db->select({ 'CatLinks.CategoryID' => $in_cat });
my $rec = $sth->fetchrow_hashref;
my $catID = $rec->{CategoryID};
my $table = $DB->table('Category');
my $cat_sth = $table->select( { ID => $catID } );
my $cat_hit = $cat_sth->fetchrow_hashref;
my $name = $cat_hit->{Link_Template};
return Links::SiteHTML::display($name, $rec);
}RGB World, Inc. - Software & Web Development.
rgbworld.com
See my other post with a photo of this problem. Specifically the link on home page problem.
I have determined that the background color is being lost due to the link.html being loaded via a global. I have rewritten the global a half dozen different ways and it still produces a link with the wrong background color.
If I <%include link.html%> on the home page, the background is the correct color.
Calling <%include link.html%> directly from home.html doesn't really work for obvious reasons. It has no idea what link I want and no id or anything else, but the linklisting box shows up, and it is in the color specified by css.
When using the actual global which displays the link properly, the background color is wrong.
So it is my conclusion that...
Calling Links::SiteHTML::display('link',$rec);
via a global is what is breaking the css in ie5 and 6 on pc.
I am spending an awful lot of time on these css issues, it would be nice to get some input.
Thank you,
Chris
my random global:
Code:
sub { my $in_cat = shift;
my $db = $DB->table ('Links','CatLinks');
$db->select_options ("ORDER BY rand()","LIMIT 1");
my $sth = $db->select({ 'CatLinks.CategoryID' => $in_cat });
my $rec = $sth->fetchrow_hashref;
my $catID = $rec->{CategoryID};
my $table = $DB->table('Category');
my $cat_sth = $table->select( { ID => $catID } );
my $cat_hit = $cat_sth->fetchrow_hashref;
my $name = $cat_hit->{Link_Template};
return Links::SiteHTML::display($name, $rec);
}
rgbworld.com