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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:21

top and followscroll with offset - [Solved]


Poster: tawm
Dated: Thursday March 20 2008 - 17:30:10 GMT

I've recently purchased the menu product because it seems by far the best I've seen -- supported and otherwise!

I am trying to start at top=50; and use followscroll with a offset of top="offset+10" is there any way to combine these?

a.k.a. It starts at 50px from the top of the page but once you scroll the top of the page past the 40px point it starts to follow with a top offset of +10px.

I've done a bit of searching here on the forums and do not find anyone trying to do something like this (I may have missed it though)

Thanks for taking the time to read over this; any and all help is appreciated.
joe __at__ thehotshotz

Re: top and followscroll with offset


Poster: Ruth
Dated: Friday March 21 2008 - 17:25:24 GMT

Hi,

There are two way to set followscroll, followscroll=1 or followscroll="x,y,z";

The first turns it on i.e 0=off and 1=on, like so many of the computer stuff. The second set is for the starting/stopping scroll position, the followrate and the followspeed. I suggest you try followscroll="10,10,10"; and see if that serves.

You have to be careful with the last two numbers, if you set them too large then the menu gets jumpy and jerking and stays off the screen at the top if the followrate is high since it move very slowly then.

Ruth

Re: top and followscroll with offset


Poster: tawm
Dated: Saturday March 22 2008 - 22:10:37 GMT

Ruth,

Thank you for your reply.. I've tried it out, but I'm not sure I'm getting your point. Changing those numbers seems to only change the speed at which the menu scrolls (I may be incorrect)..

I've put together an example on the following two pages.

If I could get what's on index2.php to scroll like it does on index.php I would be home free.

http://evilboxproductionz.com/thehotsho ... /index.php
http://evilboxproductionz.com/thehotsho ... index2.php

Please see my initial explanation after looking at these pages.

Again -- thank you for your time,
Joe

Re: top and followscroll with offset


Poster: Ruth
Dated: Saturday March 22 2008 - 23:55:48 GMT

Hi,

Sorry, when you said +10, that's what I figured you wanted. So, what you are saying is you want the menu to be set at a top position of 72, you then want it set to followscroll but you don't want it to follow scroll until the div above it is within 10px of it so that in the scroll it remains 10px below that red rss div stuff. If that is correct, you can do it, but unfortunately not with the screenposition and offset top. That I have to assume will do something with regard to your layout. I will give you what will work as to the followscroll part so you can test it. But, if you want/need the screenposition then you will have to contact Milonic on whether and/or how that could be done.

Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible="1";
orientation="horizontal";
left="offset=-348";
top=72;
menualign="center";
menuwidth="293";
followscroll="42,10,10";
aI("text=Home;url=http://www.milonic.com/;");
aI("showmenu=Members;text=Members;");
aI("showmenu=Media;text=Media;");
aI("showmenu=Information;text=Information;");

}


Using that as your main menu will allow it to do what you want as to followscroll. It works in IE6, NN7, 9, FF1.5, 2, Safari 3 Beta for PC. The menu also seems to be in the same place in all those browsers, about 10 pixels in from the left side. For some reason it seems the left="offset=-348"; is not being used. I removed it to see where the menu went and it stayed in the same place. My resolution is 1028x768.

Ruth

Re: top and followscroll with offset


Poster: tawm
Dated: Sunday March 23 2008 - 16:51:59 GMT

That screenposition bug is weird -- I will see what I can do about contacting milonic. Anyway!

Wow Ruth,

Thank you very much. After many-a-days trying to figure that out, you have brought me much light.

You are awesome!

Take care.

Re: top and followscroll with offset


Poster: Andy
Dated: Tuesday March 25 2008 - 13:13:59 GMT

Is this the kind of thing you want?

http://www.milonic.com/users/follow/fs.htm

What you are asking of the menu is quite complicated. The only way I could get this to work is to build the sub menus just after the body tag so that they are already available and you can forget about them and concentrate on the main menu. The main menu has been embedded inside a table and also followscroll has a property of -141 so that it positions the followscroll correctly, this also affects the menus top position so this has a top value of -86. All this results in what you see at http://www.milonic.com/users/follow/fs.htm

if you change anything you'll need to change the values but it's at least a start.

HTH,
Andy