Solved

Q/A about hiermenu by Peter Belesis.

Posted on 2001-09-11
4
429 Views
Last Modified: 2008-02-01
Hi.

I'm trying to config this menu.
Need help from someone that used it before.
This is from the file HM_Arrays.js

The problem is that the tree [Blanketter] on HM_Array3
doesn't work. Can anybody explain?
If I set ["Blanketter","http://www.webreference.com/index2.html/",1,0,1],

to.. 1,0,0 the menu starts to work. If it is set to 1,0,1 the menu doesn't load at all? I don't get this..
No logic!



HM_Array3 = [
[141,          // menu width
2,          // left_position
102,               // top_position
"black",      // font_color
"white",   // mouseover_font_color
"#A6CAF0",   // background_color
"#006080",    // mouseover_background_color
"black",     // border_color
"gray",    // separator_color
1,               // top_is_permanent
0,          // top_is_horizontal
0,          // tree_is_horizontal
1,          // position_under
0,          // top_more_images_visible
1,          // tree_more_images_visible
"null",     // evaluate_upon_tree_show
"null",     // evaluate_upon_tree_hide
],         //right-to-left

["Intradoc","http://www.webreference.com/experts/",1,0,1],
["Blanketter","http://www.webreference.com/index2.html/",1,0,1],
["Handbocker","http://www.webreference.com/index2.html",1,0,0],
["CA-System","http://www.webreference.com/about.html",1,0,1]
]

HM_Array3_1 = [
[],
["3-D Animation","http://www.webreference.com/3d/",1,0,0],
["Design","http://www.webreference.com/dlab/",1,0,0],
["HTML","http://www.webreference.com/html/",1,0,0],
["JavaScript","http://www.webreference.com/js/",1,0,0],
["Graphics","http://www.webreference.com/graphics/",1,0,0],
["DHTML","http://www.webreference.com/dhtml/",1,0,1],
["Perl","http://www.webreference.com/perl/",1,0,0],
["XML","http://www.webreference.com/xml/",1,0,0]
]


HM_Array3_1_6 = [
[],
["Diner","http://www.webreference.com/dhtml/diner/",1,0,1],
["Dynomat","http://www.webreference.com/dhtml/dynomat/",1,0,0],
["Links","http://www.webreference.com/dhtml/links/",1,0,0]
]
HM_Array3_2 = [
[],
["Fasta","http://u.com",1,0,0],
["Skrivbara","http://www.webreference.com",1,0,0],
]
HM_Array3_4 = [
[],
["Features","http://www.webreference.com/articles.html",1,0,0],
["Forum","http://www.webreference.com/cgi-bin/Ultimate.cgi?action=intro",1,0,0],
["How-to","http://www.webreference.com/dev/",1,0,0],
["New","http://www.webreference.com/headlines/",1,0,0],
["Hot Sites","http://www.webreference.com/hot/",1,0,0]
]
0
Comment
Question by:sporfex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:HHH
ID: 6473978
Is it possible to give a link so we can view the menu?
0
 

Author Comment

by:sporfex
ID: 6474043
0
 
LVL 1

Accepted Solution

by:
HHH earned 50 total points
ID: 6474138

In the js-file I put:

HM_Array1_2 = [

HM_Array2_2 = [

HM_Array3_2 = [

And after each array I put this code:

[],
["Features","http://www.webreference.com/articles.html",1,0,0],
["Forum","http://www.webreference.com/cgi-bin/Ultimate.cgi?action=intro",1,0,0],
["How-to","http://www.webreference.com/dev/",1,0,0],
["New","http://www.webreference.com/headlines/",1,0,0],
["Hot Sites","http://www.webreference.com/hot/",1,0,0]
]

I got another dropdown menu 'contents >'

Maybe you also tried it, but this is as far as I get it. Can't see anything wrong. So put the code not only after HM_Array3_2 = [ but also a HM_Array2_2 = [ and a HM_Array1_2 = [

HHH
0
 

Author Comment

by:sporfex
ID: 6474247
I just found the error:

["Skrivbara","http://www.webreference.com",1,0,0],

It should not be a comma at the end.
Now it is OK.

Thanks for your help. You get the points because you tried to help me.

Rgrds
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question