Solved

Q/A about hiermenu by Peter Belesis.

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now