Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:37

Linking Top-level Menu Items


Poster: MikeKeen
Dated: Friday July 22 2005 - 17:46:45 BST

Hello,

I set up the Milonic menu system on the following page:

http://smartpicks.com/header-mike.php

I can't figure out how to get the top level menu items to link to a specific page. (ex. Games, Books, Posters, Gifts & More)

I am using the following code to generate the menus on the main page:

Code:
with(new menuname("One")){
   style=AllImagesStyle;
   orientation="horizontal";
   alwaysvisible=1;
   position="relative";
aI("showmenu=games;image=images/head_nev_games.gif;url=/games/");
   }
   drawMenus()


Am I doing something wrong or perhaps missing something? Please let me know.


Poster: kevin3442
Dated: Friday July 22 2005 - 19:27:24 BST

Hi Mike,

You have specified only a directory name in the url. For example, you have url=/games/ in your example menu item. This will only result in a page loading if there is a default page in the /games/ directory (e.g., a default page would typically be named index.htm, index.html, default.htm, or default.html). If you have no such file in the /games/ directory, then nothing will load. You might want to specify exactly which page you'd like to load, e.g., url=/games/games.htm.

Cheers,

Kevin


Poster: MikeKeen
Dated: Saturday July 23 2005 - 2:02:26 BST

Kevin,

The problem is that the top level items do not even appear as links. You aren't even able to click them.

-Mike


Poster: Ruth
Dated: Saturday July 23 2005 - 6:48:55 BST

Hi,

You need to upgrade to the newest version. Get the menu out of the div. Make your top logo part a div, then do the table, centering the table if that's what you are trying to do with the div and then if you want the content in a div place a div below the table. Once it's out of the div the links work.

Ruth


Poster: MikeKeen
Dated: Tuesday July 26 2005 - 16:13:04 BST

Why is your system not compatable with DIV's?


Poster: Ruth
Dated: Tuesday July 26 2005 - 17:42:40 BST

Hi Mike,

I'm not a div expert. And, I don't really have the 'technical' jargon to explain concisely. What I know is that not all browsers treat divs the same, you see all kinds of things about hacks this hack and that hack to make a certain div layout work the same in various browsers. The menu itself has divs, so off the top of my head, I'd say that when someone uses divs and positions them in a certain way, using relative, or absolute or fixed and so on, that may conflict with the divs in the menu in certain browsers. It is therefore recommended that the menu not be put in a div.

I have seen many who do put it in a div and don't worry about the browsers that may have problems, usually with regard to placement of the submenus when they open. It seems to work in divs in the main browsers but I've not seen all possible div positioning and layouts, so I guess one could use a div if they wanted. We just make sure they are aware that it's not recommended because it can cause problems cross-browser compatiblity.

Ruth


Poster: Ruth
Dated: Tuesday July 26 2005 - 19:21:42 BST

One last thing, as to the divs, it is usually the positioning settings that cause the problems so I'd look in the style sheet and find the div settings for that nav section try removing, changing etc until I found what was causing the links to not work.

Ruth


Poster: MikeKeen
Dated: Wednesday July 27 2005 - 15:06:55 BST

Thanks for the explaination, Ruth.