Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 44

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Templates > Template Discussions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 25.07.2006, 11:44   #1 (permalink)
Baby Mamber
 
Join Date: Jul 2006
Posts: 1
webtytte is on a distinguished road
Question Help: how to make drop downs from horisontal menu in template

Hi,

I am using a template called "Akowinterportal" (from here). It has a "built in" horizontal menu in the top, however it doesnt show sub-links to menuitems.

I would like it to make a drop down when hoovering with the mouse over a menuitem. Can someone help me with this or guide me to a place that can?

I have posted the code I believe is the one to modify from the index.php of the template:

Code:
      <?php

        # Vertical Menu V2.1 - by Arthur Konze - www.mamboportal.com

        $database->setQuery("SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");

        $vmrows = $database->loadObjectList();

        echo "<table border='0' cellpadding='0' cellspacing='2' width='75%'><tr>";

        $num_vmrows  = count($vmrows);

        $vmtab_width = floor(100 / $num_vmrows);

        foreach($vmrows as $vmrow) {

          echo "<td width='$vmtab_width%'><a href='".sefRelToAbs("$vmrow->link&Itemid=$vmrow->id")."' class='buttonbar'>$vmrow->name</a></td>";

        }

        echo "</tr></table>";

      ?>
An this is from the CSS file of the template:
Code:
/* ###################### UPPER BUTTON BAR ###################### */
.buttonbar {
  display          : block;
  font-family      : Arial, Helvetica, serif;
  width            : 100%;
  text-align       : center;
  font-weight      : normal;
  text-decoration  : none;
}

a.buttonbar:link, a.buttonbar:visited {
  font-size        : 9px;
  padding-top      : 1px;
  padding-bottom   : 1px;
  text-decoration  : none;
  border-top       : 1px solid #95BFD1;
  border-left      : 1px solid #95BFD1;
  border-right     : 1px solid #427D96;
  border-bottom    : 1px solid #427D96;
  background-color : #50A9DC;
  color            : #FFFFFF
}
a.buttonbar:hover {
  padding-top      : 1px;
  padding-bottom   : 1px;
  border-top       : 1px solid #427D96;
  border-left      : 1px solid #427D96;
  border-right     : 1px solid #95BFD1;
  border-bottom    : 1px solid #95BFD1;
  background-color : #308CC0;
  color            : #FFFFFF
}

/* ################ MAIN AND SUB MENU SYSTEM ################ */
a.mainlevel:link, a.mainlevel:visited {
  color            : #808080;
}

a.mainlevel:hover {
  color            : #7DB1C7;
}
Alternatively I also use the component "Extended menu" but I havent figured out how to make a horizontal menu in that component. If anyone can guide me to an understandable guide I would be very happy - as it might work as an alternative to the above solution?

In the hopes of some assistance...

Kind regards

Webtytte
webtytte is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i make my template wider...major problems... nrhlax78 Mambo 4.5.1 'How Do I' Questions 0 01.09.2005 18:15
Template -> How to make an expanding Javascript menu MCK Mambo 4.5 'How Do I' Questions 5 02.07.2005 07:30
How do I....make a menu like that? Cibulo Mambo 4.5.1 'How Do I' Questions 6 18.11.2004 10:32
Imagemaps in the Main Menu (and elsewhere!)... henrycooperavel Mambo 5.0 Wishlist 5 05.05.2004 21:54
Adding a DHTML Menu into a Template blay Mambo 4.5 'How Do I' Questions 2 14.04.2004 00:05


All times are GMT +2. The time now is 11:44.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.