Hooray for stylesheets.

This commit is contained in:
Garvin Hicking
2003-03-10 13:48:10 +00:00
parent 88579ba476
commit 35702c9861
16 changed files with 3530 additions and 3608 deletions

View File

@@ -252,64 +252,4 @@ function hilightBase(el, theColor)
return true;
} // end of the 'hilightBase()' function
/**
* Add styles for positioned layers
*/
if (capable) {
// Brian Birtles : This is not the ideal method of doing this
// but under the 7th June '00 Mozilla build (and many before
// it) Mozilla did not treat text between <style> tags as
// style information unless it was written with the one call
// to write().
if (isDOM) {
var lstyle = '<style type="text\/css">'
+ '<!--'
+ 'div {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}'
+ '.heada {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}'
+ '.headaCnt {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #000000}'
+ '.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}'
+ '.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none; display: none}'
+ '.item, .item:active, .item:hover, .tblItem, .tblItem:active {font-size: ' + fontSmall + '; color: #333399; text-decoration: none}'
+ '.tblItem:hover {color: #FF0000; text-decoration: underline}'
+ '\/\/-->'
+ '<\/style>';
document.write(lstyle);
}
else {
document.writeln('<style type="text\/css">');
document.writeln('<!--');
document.writeln('div {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}');
document.writeln('.heada {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}');
document.writeln('.headaCnt {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #000000}');
if (isIE4) {
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; display: block}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none; display: none}');
document.writeln('.item, .item:active, .item:hover, .tblItem, .tblItem:active {font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
document.writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
}
else { // NS4 case
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; position: absolute; visibility: hidden}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; position: absolute; visibility: hidden}');
document.writeln('.item, .tblItem {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
}
document.writeln('\/\/-->');
document.writeln('<\/style>');
}
}
else {
document.writeln('<style type="text\/css">');
document.writeln('<!--');
document.writeln('div {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}');
document.writeln('.heada {font-family: ' + fontFamily + '; font-size: ' + fontSize + '; color: #000000}');
document.writeln('.headaCnt {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #000000}');
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
document.writeln('.item, .item:active, .item:hover, .tblItem, .tblItem:active {font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
document.writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
document.writeln('\/\/-->');
document.writeln('<\/style>');
} // end of adding styles
window.onload = initIt;