Pages vues depuis 25/05/2001 : 108 402 014
Index du forum »» Questions »» Mettre en surbrillance un item d'une liste
#en-cours {
text-decoration: none;
background-color: #EEE;
font-weight: bold;
color: #277dd4;
}
function Indexpages() {
global $numpage;
$numeropage= substr(substr($numpage,5),0,-1);
If ($numeropage!="") {
$textpage="<div class=\"rightbloc\"><h3>Wakonai</h3><div class=\"bloc\"><ul>";
if ($numeropage==0) {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page0]\" id=\"en-cours\">Introduction</a></li>";
} else {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page0]\">Introduction</a></li>";
}
for ($i = 1; $i <= 12; $i++) {
if ($numeropage==$i) {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page";
$textpage.="$i]\" id=\"en-cours\">Page $i</a></li>";
} else {
$textpage.="<li><a href=\"sections.php?op=viewarticle&artid=3&page=[page";
$textpage.="$i]\">Page $i</a></li>";
}
}
$textpage.="</ul></div></div>";
echo "$textpage";
}
}
uri#sections.php?op=viewarticle&artid=3 sections.php?*&op=viewarticle&artid=3
!include!#modules/mesmodules/Pages_liste.php
function#Indexpages
switch ($pages){
case 1 :
$class1 = "class=\"active\"";
break;
case 2 :
$class2 = "class=\"active\"";
break;
case 3 :
$class3 = "class=\"active\"";
break;
....
}
- <?php
if ($nav_en_cours == 'rubrique1') {echo ' id="en-cours"';} ?>>Rubrique 1
Rubrique 2
#en-cours a {
background-color: #91BD09;
color: #fff;
Message édité par : B-Mag / 19-05-2015 09:11