Members: 16,996
Threads: 38,868
Posts: 159,480
Online: 56

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
Old 27.04.2004, 12:22   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 11
noite is on a distinguished road
Question replacing text with Images for Main Menu links

Well, the thing I want sounds simple and I hope it also is simple. I want to create a menu where I can use images in stead of the tekst links. I'd like to have some little control to it, like an mouse over state..(if possible).

the structure is like this: one horizontal menu (this is a native mambo menu, and it resides it a frame). this points at the pages that reside in the second (=content) frame.

Now I have a problem:

Each of these pages has a submenu situeated in the left column. It's just one level, but the menu items need to be images. Also each of those pages has it's own specific menu. So, there no one generic one.

The address to the testsite (it's not mambo'ed yet):
http://amstelborgh.intermax.nl/frameset.html

As my deadline is already here and I really want to use mambo, I'm desperatly looking for a solution. Plz. give me some feedback on this..

-noite
noite is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 27.04.2004, 12:46   #2 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: Images instead of tekst.. HELP!

A couple of questions...

I'm assuming that the top frame includes a layer (div) and you are moving it to create the slideshow like effect (that is, sliding it using mouseover javascript calls). True or False?

Is the lower area of the screen a HTML page with 2-column table embedded in content frame or a left-right frameset embedded in the main frameset?
mmx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 27.04.2004, 18:40   #3 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 11
noite is on a distinguished road
Default Re: Images instead of tekst.. HELP!

the top frame is 100% flash menu which is being controlled by a xml config file. There're no dhtml effects in it.

The lower frame is the content frame which indeed consists of roughly said 2 colums. Left for submenus and right for the corresponding content.

The first page (homepage) is different though. There's only one column here and no submenus.
noite is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.04.2004, 04:25   #4 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: Images instead of tekst.. HELP!

Achieving the results you need with a frameset is much easier than doing it with a template because you can work with targets in the anchor elements when loading the various frames. I do this a lot with TYPO3 and frameset-based templates, but have never tried it with Mambo in frameless templates.

I don't recall which template name, but I believe that one of the YTW templates on mamboportal.com uses a dual menu system. I took a look at the mechanics sometime back out of curiosity but do not remember all the details. The query for the first menu excludes the submenu items and the main menu passes the top level record id as a variable to the second menu. The passed variable is then used in the query for the second menu to only display the submenu items for the top level specified by that top level variable. The template was released about 1-2 months ago. The basic mechanics are somewhat similar to what you need to achieve.

YTW also has another template that uses sub_template variables locally within the confines of the template set. A combination of the two techniques should allow you to handle the secondary menus for specific sub_templates and use a discrete sub_template for handling the opening page without a secondary menu.

Read backwards through the news articles on mamboportal.com. The articles contain more detailed information about the various template releases.
mmx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.04.2004, 21:47   #5 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
vinack is on a distinguished road
Default Re: replacing text with Images for Main Menu links

Hello
I just make such icon menu last night using a modified piece of code i found. The icon menu i make is used to show section item from a categorie; i thing it should be easy to adapt them for your purpose:

<?php // Custom icon menu
if(getMenuName() == "schiebewaende" || getMenuName() == "produkte") {
$database->setQuery("SELECT * FROM #__content WHERE sectionid = '2' AND catid = '7' AND state = '1' ORDER BY ordering"
);
$myIconmenu_rows = $database->loadObjectList();
$myIconmenu_content = "<pan class=\"pathway\" align=\"center\">";
foreach($myIconmenu_rows as $myIconmenu_row) {
$myIconmenulink = $myIconmenu_row->title;
$myIconmenulinkId = $myIconmenu_row->id;
$myIconmenu_content .= "<a href=\"/index.php?option=content&task=view&id=".sefRelToAb s($myIconmenulinkId)."&Item
id=27\" onMouseOver=\"document.".$myIconmenulink.".src='/images/Navigation/$myIconmenulink.g.gif'\" onMouseOut=\"document.".$myIconm
enulink.".src='/images/Navigation/$myIconmenulink.gif'\"><img src=\"/images/Navigation/$myIconmenulink.gif\" NAME=\"".$myIconmenulin
k."\" alt=\"".$myIconmenulink."\" border=\"0\"></a> ";
}
$myIconmenu_content = substr($myIconmenu_content,0,strlen($myIconmenu_co ntent)-2);
echo $myIconmenu_content;
}
?>
and

function getMenuName()
{
global $Itemid;
$name = getMenu($Itemid);

$name = ereg_replace('[/ ]', "", strtolower($name));
return $name;
}

function getMenu($itemid)
{
global $database;

$sql = "SELECT name FROM #__menu WHERE id='$itemid'";
$database->setQuery( $sql );

return $database->loadResult();
}

This template is in development under http://cms.hta.ch...
Kind regards - Vincent
vinack is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12.05.2004, 21:33   #6 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 11
noite is on a distinguished road
Default Re: replacing text with Images for Main Menu links

Hi, MMX you say:
Quote:
Achieving the results you need with a frameset is much easier than doing it with a template
Since I am using frames.. what would be the least painfull way to get it done? And this thing about submenus (being total newbie) I didn't get

ps. thanx for all the replies!
noite is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

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
Mamb-Ads Component -> images are not being displayed oukenfold Component 'How Do I' Questions 6 19.05.2004 22:47
Static Component -> How do I get images to show ZeroZen Component 'How Do I' Questions 37 27.04.2004 09:57
Rollovermenu with images mcpat Template Discussions 0 24.04.2004 02:52
Adding FTP'd images directly to content ThereseWeel Mambo 4.5 Bugs 0 15.04.2004 20:06
problem with htmlarea2 and uploading images scoobidoo Mambo 4.5 'How Do I' Questions 2 12.04.2004 13:43


All times are GMT +2. The time now is 19:53.

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.