From beaaef29ae0d63a5258bbfcbf63f9e09624ad6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 7 Jul 2001 10:22:53 +0000 Subject: [PATCH] Improved css --- left.php3 | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/left.php3 b/left.php3 index 60f5b46c4..805d070f1 100755 --- a/left.php3 +++ b/left.php3 @@ -30,6 +30,9 @@ header('Content-Type: text/html; charset=' . $charset); /** * Displays the frame */ +$font_family = ($charset == 'iso-8859-1') + ? 'verdana, helvetica, arial, geneva, sans-serif' + : 'sans-serif'; ?> @@ -44,10 +47,29 @@ header('Content-Type: text/html; charset=' . $charset); var isIE4 = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0; var isNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0; var capable = (isDOM || isIE4 || isNS4) ? 1 : 0; - var fontFamily = ''; + // Uggly fix for Konqueror and Opera that are not fully DOM compliant + if (capable && typeof(navigator.userAgent) != 'undefined') { + var browserName = ' ' + navigator.userAgent.toLowerCase(); + if (browserName.indexOf('opera') > 0 || browserName.indexOf('konqueror') > 0) { + capable = 0; + } + } + var fontFamily = ''; //--> +