
Robin - 2005-08-10 15:18:03
There were some incompatibilities with Firefox, which can be fixed using a simple addition to the CSS styles, but the Javascript is needed for Internet Explorer.
Change
//print CSS (Condensed into short space)
$html .= "<style>\n";
$html .= ".tab-holder { font-family: {$this->Font}; font-size: 12px; }\n";
$html .= ".tab-off { padding-left: 10px; padding-right: 10px;\n";
$html .= " border: 1px solid {$this->Off['border']}; color: {$this->Off['text']};\n";
$html .= " font-weight: bold; background: {$this->Off['back']}; white-space: nowrap; }\n";
$html .= ".tab-on { padding-left: 10px; padding-right: 10px;\n";
$html .= " border: 1px solid {$this->On['border']}; border-bottom-width: 0px; color: {$this->On['text']};\n";
$html .= " background-color: {$this->On['back']}; font-weight: bold; white-space: nowrap; }\n";
$html .= ".tab-spc { border-bottom: 1px solid {$this->Off['border']}; }\n";
$html .= "</style>\n\n";
To
//print CSS (Condensed into short space)
$html .= "<style>\n";
$html .= ".tab-holder { cursor: default; font-family: {$this->Font}; font-size: 12px; }\n";
$html .= ".tab-off { cursor: default; padding-left: 10px; padding-right: 10px;\n";
$html .= " border: 1px solid {$this->Off['border']}; color: {$this->Off['text']};\n";
$html .= " font-weight: bold; background: {$this->Off['back']}; white-space: nowrap; }\n";
$html .= "td.tab-off:hover { cursor: default; padding-left: 10px; padding-right: 10px;\n";
$html .= " border: 1px solid {$this->Off['border']}; color: {$this->Off['Htext']};\n";
$html .= " font-weight: bold; background: {$this->Off['Hback']}; white-space: nowrap; }\n";
$html .= ".tab-on { cursor: default; padding-left: 10px; padding-right: 10px;\n";
$html .= " border: 1px solid {$this->On['border']}; border-bottom-width: 0px; color: {$this->On['text']};\n";
$html .= " background-color: {$this->On['back']}; font-weight: bold; white-space: nowrap; }\n";
$html .= ".tab-spc { cursor: default; border-bottom: 1px solid {$this->Off['border']}; }\n";
$html .= "</style>\n\n";