• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Arrays

Example 12-3 shows HM_Array.js.

Example 12-3. HM_Array.js

//Relative-to-Mouse-Position Vertical Variable-Width Popup
//Menu (Displays on mouseover)
HM_Array1 = [
[150,,,,,,,,,,,,,,,,,,,1,true],
["Experts","http://www.webreference.com/experts/",1,0,1],
["Contents","http://www.webreference.com/index2.html"
     ,1,0,0],
["Services","http://www.webreference.com/index2.html",
     1,0,1],
["About","http://www.webreference.com/about.html",1,0,0],
["Hot Sites","http://www.webreference.com/hot/",1,0,1]
]

HM_Array1_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_Array1_3 = [
[],
["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]
]

HM_Array1_5 = [
[],
["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_Array1_1_6 = [
[],
["Diner","http://www.webreference.com/dhtml/diner/",1,0,0],
["Dynomat","http://www.webreference.com/dhtml/dynomat/",
    1,0,0],
["Links","http://www.webreference.com/dhtml/links/",1,0,0]
]
// Permanent Centered Horizontal Menu
HM_Array2 = [
[100,           // menu width
"HM_f_CenterMenu('HM_Menu2')", // left_position
90,                            // top_position
"red",                         // font_color
"yellow",                      // mouseover_font_color
"yellow",                      // background_color
"black",                   // mouseover_background_color
"blue",                    // border_color
"green",                   // separator_color
1,                          // top_is_permanent
1,                          // top_is_horizontal
0,                         // tree_is_horizontal
1,                        // position_under
1,                        // top_more_images_visible
1,                         // tree_more_images_visible
"null",                  // evaluate_upon_tree_show
"null",                // evaluate_upon_tree_hide
,            // right_to_left
1],          // display_on_click
["Experts","http://www.webreference.com/experts/",1,0,1],
["Contents","http://www.webreference.com/index2.html",
    1,0,0],
["Services","http://www.webreference.com/index2.html",
    1,0,1],
["About","http://www.webreference.com/about.html",1,0,1]
]

HM_Array2_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,0],
["Perl","http://www.webreference.com/perl/",1,0,0],
["XML","http://www.webreference.com/xml/",1,0,0]
]

HM_Array2_3 = [
[],
["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]
]

HM_Array2_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]
]

HM_Array2_1_6 = [
[],
["Diner","http://www.webreference.com/dhtml/diner/",
    1,0,0],
["Dynomat","http://www.webreference.com/dhtml/dynomat/",
    1,0,0],
["Links","http://www.webreference.com/dhtml/links/",1,0,0]
]

// Absolute Position Popup Menu
HM_Array3 = [
[120,      // menu width
200,       // left_position
300,       // top_position
"black",   // font_color
"white",   // mouseover_font_color
"white",   // background_color
"black",   // mouseover_background_color
"black",   // border_color
"gray",    // separator_color
0,         // top_is_permanent
0,         // top_is_horizontal
0,         // tree_is_horizontal
1,         // position_under
1,         // top_more_images_visible
1,         // tree_more_images_visible
"null",    // evaluate_upon_tree_show
"null",    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
["Experts","http://www.webreference.com/experts/",1,0,1],
["Contents","http://www.webreference.com/index2.html",
    1,0,0],
["Services","http://www.webreference.com/index2.html",
    1,0,1],
["About","http://www.webreference.com/about.html",1,0,0]
]

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_3 = [
[],
["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]
]

HM_Array3_1_6 = [
[],
["Diner","http://www.webreference.com/dhtml/diner/",1,0,0],
["Dynomat","http://www.webreference.com/dhtml/dynomat/",1,0,0],
["Links","http://www.webreference.com/dhtml/links/",1,0,0]
]

// Relative-to-Mouse-Position Using Keywords Popup Menu
HM_Array4 = [
[120,
"mouse_x_position + 20",
"mouse_y_position + 20",
,,,,,,,,,,,,,,,
true],
["Experts","http://www.webreference.com/experts/",1,0,1],
["Contents","http://www.webreference.com/index2.html",
    1,0,0],
["Services","http://www.webreference.com/index2.html",
    1,0,0],
["About","http://www.webreference.com/about.html",1,0,0]
]

HM_Array4_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,0],
["Perl","http://www.webreference.com/perl/",1,0,0],
["XML","http://www.webreference.com/xml/",1,0,0]
]

// Permanent Horizontal Variable-Width Menu
HM_Array5 = [
[100,        // menu_width
70,          // left_position
170,         // top_position
"red",       // font_color
"yellow",    // mouseover_font_color
"yellow",    // background_color
"black",     // mouseover_background_color
"blue",      // border_color
"green",     // separator_color
1,           // top_is_permanent
1,           // 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
,            // display_on_click
true,        // top_is_variable_width
,            // tree_is_variable_width
],
["Experts","http://www.webreference.com/experts/",1,0,1],
["Contents","http://www.webreference.com/index2.html",
    1,0,0],
["Services","http://www.webreference.com/index2.html",
    1,0,1],
["About","http://www.webreference.com/about.html",1,0,0]
]

HM_Array5_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_Array5_3 = [
[],
["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]
]

HM_Array5_1_6 = [
[],
["Diner","http://www.webreference.com/dhtml/diner/",
    1,0,0],
["Dynomat","http://www.webreference.com/dhtml/dynomat/",
    1,0,0],
["Links","http://www.webreference.com/dhtml/links/",1,0,0]
]


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint