I can't make a glossy-menu implementation...

Stefek

You're welcome.

I assume, the SM2 call works correctly?

Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

vincent77

You really make me cry...

I spent just too much hours on making this work! Thank you SO much!  :-)

Stefek

Hello,
why don't you usethe show_menu2 function for your menu?

If your HTML Structure is intended to be like:

<ul class="glossymenu">
   <li class="current"><a href="http://www.dynamicdrive.com/"><b>Home</b></a></li>
   <li><a href="http://www.dynamicdrive.com/style/"><b>CSS</b></a></li>
   <li><a href="http://www.dynamicdrive.com/forums/"><b>Forums</b></a></li>    
   <li><a href="http://tools.dynamicdrive.com"><b>Webmaster Tools</b></a></li>    
   <li><a href="http://www.javascriptkit.com/"><b>JavaScript</b></a></li>    
   <li><a href="http://www.cssdrive.com"><b>Gallery</b></a></li>    
</ul>


..try this SM2 Call:



                  <?php 
                show_menu2

                                
$aMenu          1,
                
$aStart         SM2_ROOT
                
$aMaxLevel      SM2_START,        
                
$aOptions       '',
                
$aItemOpen      '<li [if(class==menu-current) {class="current"} ]><a href="[url]"><b>[menu_title]</b></a>',
                
$aItemClose     '</li>',
                
$aMenuOpen      '<ul class="glossymenu">',
                    
$aMenuClose     '</ul>',
                
$aTopItemOpen   '',
                
$aTopMenuOpen   ''
                 
);
                  
?>



Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

vincent77

I'm trying to get this menu
http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/

in  my WB for the last couple of days now, and all I got was a headache...
my hover just won't work, it will only load the left image, and not the hoverright image.

I also don't know how to set a "current" class at the active page...

here some code i've used:


<ul class="glossymenu">
<?php $count 0;
while(
$page $menu1->fetchRow()) {
if(!isset(
$admin) OR $admin->show_page($page)) {
?>

   <li><a class="menuHead" href="<?php echo page_link($page['link']); ?>"><?php echo stripslashes($page['menu_title']); ?></a></li>
<?php
$count 
$count+1;
}
}
?>


and the css:
[code]
/* MENU glossy */

.glossymenu{
   position: relative;
   padding: 0 0 0 34px;
   margin: 0 auto 0 auto;
   background: url(menuimages/menug_bg.gif) repeat-x; /*tab background image path*/
   height: 46px;
   list-style: none;
}

.glossymenu li{
   float:left;
}

.glossymenu li a{
   float: left;
   display: block;
   color:#000;
   text-decoration: none;
   font-family: sans-serif;
   font-size: 13px;
   font-weight: bold;
   padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/
   height: 46px;
   line-height: 46px;
   text-align: center;
   cursor: pointer;    
}

.glossymenu li a b{
   float: left;
   display: block;
   padding: 0 24px 0 8px; /*Padding of menu items*/
}

.glossymenu li.current a, .glossymenu li a:hover{
   color: #fff;
   background: url(menuimages/menug_hover_left.gif) no-repeat; /*left tab image path*/
   background-position: left;
}

.glossymenu li.current a b, .glossymenu li a:hover b{
   color: #fff;
   background: url(menuimages/menug_hover_right.gif) no-repeat right top; /*right tab image path*/
}


[/code]