diff --git a/dist/style_prive.html b/dist/style_prive.html index 0db2b395bb0db5edf215eee1acb9ae73bfe21660..e5356a5c98c94432dc3d4f618123ee77900854e0 100644 --- a/dist/style_prive.html +++ b/dist/style_prive.html @@ -1356,19 +1356,21 @@ a.triangle_block:hover { color: #666; } -div.highlight { +a.highlight { color: #000; padding: 2px; background-color: ##ENV{couleur_claire,edf3fe}; + display:block; } -div.pashighlight { +a.pashighlight { color: #666; padding: 2px; background-color: white; + display:block; } -div.highlight:hover, div.pashighlight:hover, { +a.highlight:hover, a.pashighlight:hover, { color: #000; cursor: pointer; } diff --git a/ecrire/inc/mini_nav.php b/ecrire/inc/mini_nav.php index 1fa9449cb5f1cd9c4687b11d85db826106fc3866..0428cc6084a59e182818f4a49112a4b2f9b51486 100644 --- a/ecrire/inc/mini_nav.php +++ b/ecrire/inc/mini_nav.php @@ -54,12 +54,9 @@ function mini_afficher_rubrique ($id_rubrique, $rac="", $list=array(), $col = 1, $url = "\nhref='$rec&id=$id'" ; } else { $url = $acces = ''; } - $ret .= "<div class='" - . (($id == $next) ? "highlight" : "pashighlight") - . "'><a" + $ret .= "<a" . $url -# "this" sur une balise A retourne son attribut href, pas le noeud A ! - . "\nonClick=\"changerhighlight(this.parentNode);" + . "\nonClick=\"changerhighlight(this);" . "return aff_selection_provisoire($id,$args);" # ce lien provoque la selection (directe) de la rubrique cliquee # et l'affichage de son titre dans le bandeau @@ -67,7 +64,7 @@ function mini_afficher_rubrique ($id_rubrique, $rac="", $list=array(), $col = 1, . "return aff_selection_titre(this." . $acces . "firstChild.firstChild.nodeValue,$id,$args);" - . "\">$titre</a></div>"; + . "\" class='". (($id == $next) ? "highlight" : "pashighlight")."'>$titre</a>"; } }