|
|||
|
Hallo,
ich habe ein Menu mit CSS gemacht. Ich möchte jetzt jedoch den aktuellen Menupunkt auf die class="active" setzen um diesen farblich hervorzuheben. Code:
<div id="nav_header"> <div class="hlist"> <ul> <li id="start"><a href="http://www.abc.de/index.php"><span>Startseite</span></a></li> <li><a href="http://www.abc.de/index.php?s=abcaktuell"><span><em>Aktuell</em></span></a></li> <li><a href="http://www.abc.de/standort.abc.php"><span>Standorte</span></a> <ul> <li><a href="http://www.abc.de/standort.abc.php">abc</a></li> <li><a href="http://www.abc.de/standort.abc.php">abc</a></li> <li><a href="http://www.abc.de/standort.abc.php">abc</a></li> </ul> </li> <li><a href="http://abc.org/index"><span>abc</span></a></li> </ul> </div> </div> </div> Code:
<li id="start"><a href="http://www.abc.de/index.php"><span>Startseite</span></a></li> Also müsste ich doch abfragen Code:
<if aktuelle url = http://www.abc.de/index.php>} <li id="start" class="active"><a href="http://www.abc.de/index.php"><span>Startseite</span></a></li> Jedoch bekomme ich nur eine weiße Seite, der Syntax der <if>-Anweisung wird nicht stimmen. Kann mir wer helfen? |
|
|||
|
Also so müsste mein <li> aussehen
Code:
<li class="{if ?????} active{/if}"><a href="http://shop.de/index"><span>Ersatzteilshop</span></a></li>
{if url == 'http://shop.de/index'} ??? |
![]() |
| Lesezeichen |
| Stichworte |
| active, menupunkt, setzen |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| AGB, Datenschutz, Widerrufsbelehrung, etc. woher am sinnvollsten? | BartTheDevil89 | Installation und Konfiguration | 14 | 03.03.2012 15:40 |
| Produktanzahl einer Kategorie auf 0 setzen? | isbn1 | Allgemeine Diskussionen | 0 | 20.06.2010 04:42 |
| Status von einigen Ländern auf INAKTIV setzen | Ronnenberger | Installation und Konfiguration | 3 | 08.07.2009 07:45 |
| Besuchte Artikel auf 0 setzen | Leolino | Admininterface | 2 | 19.04.2009 19:03 |
| Bestell-Nr. auf Null setzen | JessyHH | Installation und Konfiguration | 0 | 04.03.2009 18:14 |