ich erstelle gerade eine Internetseite und würde gern die Hilfnavigation als Horizontalesmenü verwenden.
Es sollte so aussehen wie hier: http://www.t-home.de/is-bin/INTERSHOP.e ... heme-Start
Grafik Entertainment , grafik Surfen.......usw.
Grafik und der jeweiliger Menüpunkt dahinter, die Grafik (19 x 19 px) sollte beim Hovereffekt wechseln.
Dieses Modul nutze ich dafür:
Code: Alles auswählen
<?php
/***********************************************
* CONTENIDO MODUL - OUTPUT
*
* Modulname : Hilfsnavigation
* Author(s) : Andreas Lindner
* Copyright : Contenido - four for business, Andreas Lindner
* Created : 05.08.2005
************************************************/
cInclude("frontend", "includes/functions.navigation.php");
cInclude('classes', 'class.template.php');
$catStart = "CMS_VALUE[0]";
if(($catStart=='')||($catStart=='0')){
$cApiClient = new cApiClient($client);
$catStart= $cApiClient->getProperty('navigation', 'idcat_hilfsnavi');
}
if(!is_object($oClient)) {
$oClient = new cApiClient($client);
}
$navigation = array();
$navigation = createNavigationArray($catStart, $db);
if (count($navigation) > 0) {
foreach ($navigation as $key => $data) {
echo '<img src="images/point_normal.gif" width="19" height="19"> <a href="'.$sess->url('front_content.php?idcat='.$data['idcat']).'" class="additionalnavi">'.$data['name'].'</a>';
}
}
?>
Code: Alles auswählen
a.additionalnavi, a.additionalnavi:link, a.additionalnavi:visited, a.additionalnavi:active
{
float:center;
text-decoration: none;
padding-right: 20px;
text-align:center;
color:rgb(160,160,160);
}
a.additionalnavi, a.additionalnavi:hover
{
color: #000000;
text-decoration: none; }