Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Q/A about hiermenu by Peter Belesis.

Posted on 2001-09-11
4
Medium Priority
?
436 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 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

688 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