Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv30549
Modified Files:
inc_presentation.php3 spip_style.php3
Log Message:
Corrections d'affichage barre superieure pour MSIE 5 (Macintosh, en tout cas)
Index: spip_style.php3
RCS file: /home/spip-cvs/spip/ecrire/spip_style.php3,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- spip_style.php3 20 Jul 2004 13:30:54 -0000 1.76
+++ spip_style.php3 1 Aug 2004 14:23:33 -0000 1.77
@@ -85,13 +85,14 @@
*/
.bandeau-principal {
+ background-color: white;
margin: 0px;
padding: 0px;
- background-color: white;
border-bottom: 1px solid black;
}
.bandeau-icones {
+ background-color: white;
margin: 0px;
padding: 0px;
padding-bottom: 2px;
Index: inc_presentation.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_presentation.php3,v
retrieving revision 1.414
retrieving revision 1.415
diff -u -d -r1.414 -r1.415
--- inc_presentation.php3 26 Jul 2004 21:10:04 -0000 1.414
+++ inc_presentation.php3 1 Aug 2004 14:23:33 -0000 1.415
@@ -1357,13 +1357,20 @@
function decalerCouche(id_couche) {
if (!(layer = findObj(id_couche))) return;
+
+ <?php
+ $effectuer_decalage = true;
+ if ($spip_lang_left != "left") $effectuer_decalage = false;
+ if ($browser_name == "MSIE" AND $browser_version < 6) $effectuer_decalage = false; // bug offsetwidth
- <?php if ($spip_lang_left == "left") { /* uniquement affichage ltr: bug Mozilla dans offsetWidth quand ecran inverse! */ ?>
+ if ($effectuer_decalage) { /* uniquement affichage ltr: bug Mozilla dans offsetWidth quand ecran inverse! */ ?>
if ( parseInt(layer.style.<?php echo $spip_lang_left; ?>) > 0) {
+
+
gauche = parseInt(layer.style.<?php echo $spip_lang_left; ?>) - Math.floor( layer.offsetWidth / 2 ) + Math.floor(<?php echo largeur_icone_bandeau_principal(_T('icone_a_suivre')); ?> / 2);
if (gauche < 0) gauche = 0;
-
+
layer.style.<?php echo $spip_lang_left; ?> = gauche+"px";
}
@@ -1990,7 +1997,7 @@
echo "<div id='haut-page'>";
echo "<div class='bandeau-principal' align='center'>\n";
- echo "<div class='bandeau-icones' >\n";
+ echo "<div class='bandeau-icones'>\n";
echo "<table width='$largeur' cellpadding='0' cellspacing='0' border='0' align='center'><tr>\n";
icone_bandeau_principal (_T('icone_a_suivre'), "index.php3", "asuivre-48.png", "asuivre", $rubrique, "", "asuivre", $sous_rubrique);
@@ -2020,6 +2027,7 @@
echo "</div>\n";
+ echo "<table width='$largeur' cellpadding='0' cellspacing='0'' align='center'><tr><td>";
echo "<div style='text-align: $spip_lang_left; width: ".$largeur."px; position: relative; z-index: 2000;'>";
// Icones secondaires
@@ -2152,6 +2160,9 @@
}
echo "</div>";
+
+ echo "</td></tr></table>";
+
echo "</div>\n";
// Bandeau