FormerLurker
12-14-2009, 02:47 PM
1) Script Title: AnyLink JS Drop Down Menu v2.2
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: Two questions, one of which I think I will be able to figure out on my own but I want to make sure I'm thinking correctly.
Main question: I am trying to use the AnyLink menu and keep the menu contents contained in the js file instead of inline (the menus are used across several pages). I am using the multi-column menu structure. What I would like to do is be able to include a line of static text in the menu that does not link to anything, but that allows me to categorize the things in the columns. For example, I'd like each column to look something like this:
SUBCAT1
> menu item 1
> menu item 2
> menu item 3
> menu item 4
SUBCAT2
> menu item 1
> menu item 2
Is there a way to do this? From a coding perspective, I'm assuming one way might be to replace the link with a code that the script will interpret as "this is not a link, so don't mark it up as one," but I know absolutely no JS so I'd be in over my head in coding that.
Is that the right assumption? Or is there another way to do it? Any help would be greatly appreciated.
Secondary question: If you look at my sample above, what I also want to do is have the > sign only appear when that particular link is hovered over. What I'm assuming I need to do here is add margin/padding to the link texts then use CSS rollover to display/hide the arrow as a background image. Does that sound right? If so, the challenge would be to figure out how to have one CSS class for the link items and a different CSS class for the static text (because I wouldn't want that padded since it wouldn't need room to have the arrow appear).
Thanks! I love the script; it is exactly what I was looking for if I/we can do these two tweaks.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem: Two questions, one of which I think I will be able to figure out on my own but I want to make sure I'm thinking correctly.
Main question: I am trying to use the AnyLink menu and keep the menu contents contained in the js file instead of inline (the menus are used across several pages). I am using the multi-column menu structure. What I would like to do is be able to include a line of static text in the menu that does not link to anything, but that allows me to categorize the things in the columns. For example, I'd like each column to look something like this:
SUBCAT1
> menu item 1
> menu item 2
> menu item 3
> menu item 4
SUBCAT2
> menu item 1
> menu item 2
Is there a way to do this? From a coding perspective, I'm assuming one way might be to replace the link with a code that the script will interpret as "this is not a link, so don't mark it up as one," but I know absolutely no JS so I'd be in over my head in coding that.
Is that the right assumption? Or is there another way to do it? Any help would be greatly appreciated.
Secondary question: If you look at my sample above, what I also want to do is have the > sign only appear when that particular link is hovered over. What I'm assuming I need to do here is add margin/padding to the link texts then use CSS rollover to display/hide the arrow as a background image. Does that sound right? If so, the challenge would be to figure out how to have one CSS class for the link items and a different CSS class for the static text (because I wouldn't want that padded since it wouldn't need room to have the arrow appear).
Thanks! I love the script; it is exactly what I was looking for if I/we can do these two tweaks.