Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:36

'Floating Menu's'


Poster: rossnunn
Dated: Wednesday January 1 2003 - 21:02:59 GMT

is it possable to 'float' the horizontal menu? like the vertical menu on the left hand side on the front page of milonic.co.uk?
:?:
Regards

Ross


Poster: timmyboy
Dated: Thursday January 2 2003 - 14:57:17 GMT

If by "floating" you mean to make it follow the page up and down when the user scrolls, it is possible and is in the menu style array. (the same addmenu function where you add you horizontal menu items.)

It's the eleventh element, right before the horizontal/vertical variable, and should be set to 1 if you want it to follow, there should be a comment next to it identifying it as the follow scroll attribute. (Code samle below)

Take care and good luck,

~ tim <><

Code:
addmenu(menu=[            
"mainmenu",            
115,               
40,               
,               
,               
,
style2,
1,
,
,
1,               // Follow Scrolling - (1=on/0=off)
1,
,
,
,
,
,
"",
,
,
,
,"Home","index.html","#","Home",1       //Menu items
])


Poster: rossnunn
Dated: Thursday January 2 2003 - 18:59:12 GMT

Thanks M8,

I have two more questions.

1) Is it possable to scroll through the menus? - i.e i have a product menu that at 1024x768 is too big to fit on screen. Is it possable to have this scroll up and down? There seems to be an option at line 78 but I cannot enable it??

2) If i set the background to clear the menu 'sticks' and then overlay's on itself

Can you help?

Regards

Ross


Poster: timmyboy
Dated: Thursday January 2 2003 - 20:42:42 GMT

To answer your question, no, I probably can't help you with those, Andy and Co. would probably have to step in with these.

As for what I know, when my menus have been too long I've split them from the second to a third tier. I've never seen one that has the scroll bar like you ask but perhaps.

I think we'd have to see the code/site for the second issue you're having.

Take care and good luck,

~ tim <><


Poster: kevin3442
Dated: Saturday January 4 2003 - 7:18:57 GMT

Hi Ross,

Scrolling menus aren't really a viable option right now. The option you see mentioned in a comment (from an older array file) refers to some functionality that the Milonic crew had been experimenting with a while ago. You'll notice that the comment does not appear in the more recent downloads/examples. That's because the option was not fully implemented... it was just an experiment at the time. Nevertheless, the scrolling code is still in the base script, so you could try it if you like. Be aware, however, that the option was never fully implemented, so it may not work to your satisfaction. The only example I know of is at this site, in the "Galleries" menu. You'll notice, however, that the page is dedicated to listing problems with the approach. So, you might want to consider Tim's suggestion and break your products menu into smaller pieces, perhaps following some sort of product category.

Regarding your second question... I'm not sure what you mean by "sticking." I can tell you that if you want a transparent color, it's best to use "" (a null string) in the appropriate spot within the style array. If that doesn't help solve the issue, perhaps you could post a URL, so we could see what's happening and examine the code behind it, to come up with a solution.

Hope that helps,

Kevin

Menu is following scroll (and I don't want it to)


Poster: davebarnes
Dated: Tuesday April 26 2005 - 19:34:35 BST

oops