Hi All,
Have a look at this menu:
It's a CSS-based (div's) menu with css-rollovers (hover).
This menu should be implemented in the template as an output from the
NAV_LIST_ALL replacement tag.
The actual CSS code is:
Code: Select all
.cssnav1, .cssnav2, .cssnav3, .cssnav4, .cssnav5, .cssnav6, .cssnav7, .cssnav8 {
position:relative;
font-family: arial, verdana, helvetica, sans-serif;
background-repeat: no-repeat;
display: block;
margin: 0;
margin-bottom:0px;
padding: 0;
border: 0;
}
.cssnav1 {background-image: url(images/knop_hover_r1_c1.gif);}
.cssnav2 {background-image: url(images/knop_hover_r2_c1.gif);}
.cssnav3 {background-image: url(images/knop_hover_r3_c1.gif);}
.cssnav4 {background-image: url(images/knop_hover_r4_c1.gif);}
.cssnav5 {background-image: url(images/knop_hover_r5_c1.gif);}
.cssnav6 {background-image: url(images/knop_hover_r6_c1.gif);}
.cssnav7 {background-image: url(images/knop_hover_r7_c1.gif);}
.cssnav8 {background-image: url(images/knop_hover_r8_c1.gif);}
.cssnav1 a, .cssnav2 a, .cssnav3 a, .cssnav4 a, .cssnav5 a, .cssnav6 a, .cssnav7 a, .cssnav8 a {
display:block;
font-size: 11px;
width: 140px;
height: 20px;
display: block;
float: none;
margin: 0;
padding: 0;
color: black;
text-decoration: none;
border: 0;
}
.cssnav1 img, .cssnav2 img, .cssnav3 img, .cssnav4 img, .cssnav5 img, .cssnav6 img, .cssnav7 img, .cssnav8 img {
width: 100%;
height: 100%;
border: 0px;
}
* html a:hover {visibility:visible}
.cssnav1 a:hover img, .cssnav2 a:hover img, .cssnav3 a:hover img, .cssnav4 a:hover img, .cssnav5 a:hover img, .cssnav6 a:hover img, .cssnav7 a:hover img, .cssnav8 a:hover img {visibility:hidden}
.cssnav1 span, .cssnav2 span, .cssnav3 span, .cssnav4 span, .cssnav5 span, .cssnav6 span, .cssnav7 span, .cssnav8 span { position:absolute; left:5px; top:3px; margin:0; cursor: pointer;}
and the HTML code, which I now copied in the template:
Code: Select all
<div id="menulok">
<div class="cssnav1"><a href="#"><img src="images/knop_r1_c1.gif" /></a></div>
<div class="cssnav2"><a href="index.php?inschrijven"><img src="images/knop_r2_c1.gif" /></a></div>
<div class="cssnav3"><a href="index.php?kimlian"><img src="images/knop_r3_c1.gif" /></a></div>
<div class="cssnav4"><a href="index.php?prijsvraag"><img src="images/knop_r4_c1.gif" /></a></div>
<div class="cssnav5"><a href="index.php?gasten"><img src="images/knop_r5_c1.gif" /></a></div>
<div class="cssnav6"><a href="index.php?agenda"><img src="images/knop_r6_c1.gif" /></a></div>
<div class="cssnav7"><a href="index.php?uitzendingen"><img src="images/knop_r7_c1.gif" /></a></div>
<div class="cssnav8"><a href="index.php?kleding"><img src="images/knop_r8_c1.gif" /></a></div>
</div>
I need some help with the correct use of the mentioned replacement tag. The output of the replacement tag is:
Code: Select all
<li class="MenuItem_lvl_1"><a href="index.php?inschrijven" title="Inschrijven">Inschrijven</a></li>
<li class="MenuItem_lvl_1"><a href="index.php?kimlian" title="Kim-Lian">Kim-Lian</a></li>
<li class="MenuItem_lvl_1"><a href="index.php?kleding" title="Kleding">Kleding</a></li>
<li class="MenuItem_lvl_1"><a href="index.php?prijsvraag" title="Prijsvraag">Prijsvraag</a></li>
<li class="MenuItem_lvl_1"><a href="index.php?gasten" title="Gasten">Gasten</a></li>
<li class="MenuItem_lvl_1"><a href="index.php?agenda" title="Agenda">Agenda</a></li>
Does anyone know how to moderate the genereted output to show the menu correctly?
Thanks a lot
http://ctmweb.nl.server1.firstfind.nl/kidstop20.nl/