Solved

Q/A about hiermenu by Peter Belesis.

Posted on 2001-09-11
4
425 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Head to not include on scroll 4 23
on window close, not beforeunload 6 18
Search Item in Table 2 20
Help with Javascript to round decimal points to 2 13 16
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

860 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