PHP Classes

Bug fixes

Recommend this page to a friend!

      JPTabClass  >  All threads  >  Bug fixes  >  (Un) Subscribe thread alerts  
Subject:Bug fixes
Summary:Firefox Incompatibility
Messages:2
Author:Robin
Date:2005-08-10 15:18:03
Update:2005-08-16 15:25:39
 

  1. Bug fixes   Reply   Report abuse  
Picture of Robin 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";

  2. Re: Bug fixes   Reply   Report abuse  
Picture of Jon Pulice Jon Pulice - 2005-08-16 15:25:39 - In reply to message 1 from Robin
Thanks alot, i will make the change in the class file.