fixed a bug with netscape 3 thanks to Fran�ois

This commit is contained in:
Loïc Chapeaux
2001-08-19 21:00:23 +00:00
parent 3f4c6b2970
commit 5ebfd2d844

50
left.js
View File

@@ -217,7 +217,8 @@ if (capable) {
// style information unless it was written with the one call // style information unless it was written with the one call
// to write(). // to write().
if (isDOM) { if (isDOM) {
var lstyle = '<style type="text/css">' var lstyle = '<style type="text\/css">'
+ '<!--'
+ 'div {color: #000000;}' + 'div {color: #000000;}'
+ '.heada {font-family: ' + fontFamily + '; font-size: 10pt}' + '.heada {font-family: ' + fontFamily + '; font-size: 10pt}'
+ '.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}' + '.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}'
@@ -225,40 +226,45 @@ if (capable) {
+ '.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration:none; display: none}' + '.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration:none; display: none}'
+ '.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none; font-size: 8pt;}' + '.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none; font-size: 8pt;}'
+ '.tblItem:hover {color: #FF0000; text-decoration: underline}' + '.tblItem:hover {color: #FF0000; text-decoration: underline}'
+ '\/\/-->'
+ '<\/style>'; + '<\/style>';
write(lstyle); write(lstyle);
} }
else { else {
write('<style type="text/css">'); writeln('<style type="text\/css">');
write('div {color: #000000; }'); writeln('<!--');
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}'); writeln('div {color: #000000; }');
write('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}'); writeln('.heada {font-family: ' + fontFamily + '; font-size: 10pt}');
writeln('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}');
if (isIE4) { if (isIE4) {
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}'); writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}');
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none; display: none}'); writeln('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none; display: none}');
write('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none; font-size: 8pt}'); writeln('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none; font-size: 8pt}');
write('.tblItem:hover {color: #FF0000; text-decoration: underline}'); writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
} }
else { else {
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; position: absolute; visibility: hidden}'); writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; position: absolute; visibility: hidden}');
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; position: absolute; visibility: hidden}'); writeln('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; position: absolute; visibility: hidden}');
write('.item, .tblItem {color: #333399; text-decoration: none}'); writeln('.item, .tblItem {color: #333399; text-decoration: none}');
} }
write('<\/style>'); writeln('\/\/-->');
writeln('<\/style>');
} }
} }
} }
else { else {
with (document) { with (document) {
write('<style type="text/css">'); writeln('<style type="text\/css">');
write('div {color: #000000; }'); writeln('<!--');
write('.heada {font-family: ' + fontFamily + '; font-size: 10pt}'); writeln('div {color: #000000; }');
write('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}'); writeln('.heada {font-family: ' + fontFamily + '; font-size: 10pt}');
write('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}'); writeln('.heada_cnt {font-family: ' + fontFamily + '; font-size: 8pt}');
write('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none}'); writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
write('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}'); writeln('.child {font-family: ' + fontFamily + '; font-size: 8pt; color: #333399; text-decoration: none}');
write('.tblItem:hover {color: #FF0000; text-decoration: underline}'); writeln('.item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}');
write('<\/style>'); writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
writeln('\/\/-->');
writeln('<\/style>');
} }
} // end of adding styles } // end of adding styles