I have Javascript side navigation with dropdown sub-menus.
Being a newbie, could anyone please help by editing the position code below so that when a page is scrolled down the navigation will float down to it’s same position
This is the code I have with the menu disappearing when page is scrolled.
/*
— menu level scope setting structure —
var MENU_POS = [
{
// item sizes
‘height’: 25,
‘width’: 140,
// menu block offset from the origin:
// for root level origin is upper left corner of the page
// for other levels origin is upper left corner of parent item
‘block_top’: 15,
‘block_left’: 300,
// offsets between items of the same level
‘top’: 24,
‘left’: 0,
// time in milliseconds before menu is hidden after cursor has gone out
// of any items
‘hide_delay’: 200,
‘css’ : {
‘outer’ : [‘m0l0oout’, ‘m0l0oover’],
‘inner’ : [‘m0l0iout’, ‘m0l0iover’]
}
},
{
‘width’: 120,
‘block_left’: 30,
‘css’ : {
‘outer’ : [‘m0l1oout’, ‘m0l1oover’],
‘inner’ : [‘m0l1iout’, ‘m0l1iover’]
}
}
];
All help much appreciated