Linking Top-level Menu Items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MikeKeen
Beginner
Beginner
Posts: 4
Joined: Fri Jul 22, 2005 5:42 pm
Location: Atlanta, GA
Contact:

Linking Top-level Menu Items

Post by MikeKeen »

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: Select all

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.
Mike Keen
Idea New Media
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
MikeKeen
Beginner
Beginner
Posts: 4
Joined: Fri Jul 22, 2005 5:42 pm
Location: Atlanta, GA
Contact:

Post by MikeKeen »

Kevin,

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

-Mike
Mike Keen
Idea New Media
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
MikeKeen
Beginner
Beginner
Posts: 4
Joined: Fri Jul 22, 2005 5:42 pm
Location: Atlanta, GA
Contact:

Post by MikeKeen »

Why is your system not compatable with DIV's?
Mike Keen
Idea New Media
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
MikeKeen
Beginner
Beginner
Posts: 4
Joined: Fri Jul 22, 2005 5:42 pm
Location: Atlanta, GA
Contact:

Post by MikeKeen »

Thanks for the explaination, Ruth.
Mike Keen
Idea New Media
Post Reply