From 23d7c501597ea2ca3e181036c094af54e98597f8 Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Tue, 29 Jun 2004 22:28:02 +0000
Subject: [PATCH] Optimisation survols des tr_liste

---
 ecrire/inc_presentation.php3 | 4 +++-
 ecrire/spip_style.php3       | 9 +++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index 9cdd30ea11..ba13659cf3 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -311,6 +311,7 @@ function fin_raccourcis() {
 
 function afficher_liste($largeurs, $table, $styles = '') {
 	global $couleur_claire;
+	global $browser_name;
 
 	if (!is_array($table)) return;
 	reset($table);
@@ -318,7 +319,8 @@ function afficher_liste($largeurs, $table, $styles = '') {
 	while (list(, $t) = each($table)) {
 		// $couleur_fond = ($ifond ^= 1) ? '#FFFFFF' : $couleur_claire;
 		//echo "<tr bgcolor=\"$couleur_fond\">";
-		echo "<tr class='tr_liste' onMouseOver=\"changeclass(this,'tr_liste_over');\" onMouseOut=\"changeclass(this,'tr_liste');\">";
+		if (eregi("msie", $browser_name)) $msover = " onMouseOver=\"changeclass(this,'tr_liste_over');\" onMouseOut=\"changeclass(this,'tr_liste');\"";
+		echo "<tr class='tr_liste'$msover>";
 		reset($largeurs);
 		if ($styles) reset($styles);
 		while (list(, $texte) = each($t)) {
diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3
index f0261da9c7..ed7f1f7fe5 100644
--- a/ecrire/spip_style.php3
+++ b/ecrire/spip_style.php3
@@ -896,11 +896,11 @@ a.liste-mot {
 .tr_liste {
 	background-color: #eeeeee;
 }
-.tr_liste_over {
+.tr_liste_over, .tr_liste:hover {
 	background-color: white;
 }
 
-.tr_liste td, .tr_liste_over td {
+.tr_liste td, .tr_liste:hover td, .tr_liste_over td {
 	border-bottom: 1px solid #cccccc;
 }
 
@@ -909,6 +909,11 @@ a.liste-mot {
 	overflow: hidden;
 }
 
+.tr_liste:hover td div.liste_clip {
+	overflow: visible;
+	height: 100%;
+}
+
 
 div.brouteur_rubrique {
 	display: block;
-- 
GitLab