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:09

followscroll to stay 1 px from the top with screenposition o


Poster: 4viggo
Dated: Saturday September 27 2003 - 23:29:46 BST

How do i get followscroll to stay 1 px from the top when scrolling, and at the same time using the screenposition feature? :?

with(milonic=new menuname("Main Menu")){
style=menuStyle;
screenposition="center";
top="offset=75";
center="offset=-20";
alwaysvisible=1;
orientation="horizontal";
followscroll="1";
aI("text=Home;url=http://www.milonic.co.uk/;itemwidth=100;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");

The followscroll stays 75px down the screen all the time. :(

Any suggestions anyone?

Regards
4viggo


Poster: Hergio
Dated: Sunday September 28 2003 - 3:58:04 BST

Followscroll can take up to three parameters...see these for examples.

http://www.milonic.com/forum/viewtopic.php?t=2064

http://www.milonic.com/forum/viewtopic.php?t=2314


Poster: 4viggo
Dated: Sunday September 28 2003 - 10:27:10 BST

Tried it with the 2 extra parameters, but the main menu is still adjusting it self 75px down the screen when you are scrolling. :(

code:

with(milonic=new menuname("Main Menu")){
style=menuStyle;
screenposition="center";
top="offset=75";
center="offset=-20";
alwaysvisible=1;
orientation="horizontal";
followscroll="1,100,2";
aI("text=Home;url=http://www.milonic.co.uk/;itemwidth=60;status=Back To Home Page;");
aI("text=Menu Samples;itemwidth=120;showmenu=Samples;");

Whitout the screenposition it works fine :?

Any thoughts to why the screenposition is screwing up the followscroll?

regards
4viggo


Poster: Andy
Dated: Sunday September 28 2003 - 13:32:32 BST

There has been a few fixes on the screenposition/followscroll combinations as of last week.

It might be an idea to upgrade your menu source files and see if it helps

Regards
Andy


Poster: 4viggo
Dated: Sunday September 28 2003 - 17:15:56 BST

Thanks Andy. :D

downloaded the latest version as of:
Version 5.0 Release Candidate 12.0 Built: Saturday September 27 2003 - 15:32

It has the same problem still, the top="offset=75"; overrides the followscroll parameter of 1px so the menu stays 75px down the screen when scrolling. :cry:

regards
4viggo


Poster: Andy
Dated: Sunday September 28 2003 - 17:31:25 BST

Oh I see the problem now.

You've got the menus screenposition set to "center", that's fine.
You've also got an offset of -20 for left position, that's fine too.

But, you've got an offset for the top position, not fine.

The problem is, an offset is always relative to something else and in this instance the top offset isn't relative to anything because nothing has been specified for the top position - This is where it can get complicated.

Anyway, to cut this story short. If you change the top position from an offset to an actual position it will work. I'd suggest changing top="offset=75"; to top=75;

Hope this helps
Andy


Poster: 4viggo
Dated: Sunday September 28 2003 - 18:21:58 BST

Thanks Andy
The absolute position and RC12 fixed it. Great work :D

The only snag left is, it's not possible to specify the amount the menu should stay from the top when you scroll. It stays at 1 px no matter what you set the followscoll parameter at.
That's no big problem for me :o just thought i should let you know.

Thanks again for all the help.

regards
4viggo


Poster: Andy
Dated: Monday September 29 2003 - 10:00:20 BST

OK then I'll take a look, could be a bug.

Cheers
Andy


Poster: Hardowin
Dated: Sunday May 2 2004 - 22:27:35 BST

Andy wrote:
OK then I'll take a look, could be a bug.

Cheers
Andy


Hi Andy,

Did you found something, i'm havingthe same problems.
I downloaded the latest Version of the menu.
But i'm still having this problem.

Hardowin


Poster: John
Dated: Monday May 3 2004 - 1:54:07 BST

A URL would be helpful, as requested.


Poster: kevin3442
Dated: Monday May 3 2004 - 21:22:35 BST

For other intrepid readers... solution (I hope) posted in this thread.

Kevin