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

Followscroll and screenpostion


Poster: Hardowin
Dated: Sunday May 2 2004 - 22:03:29 BST

Hi,

I need to use screenposition and followscroll.
But as soon as i put these 2 items into the menu, follow scrolling works but the menu keeps staying at top on the screen.

Here's a link: http://www.homepage.hispeed.ch/Hardowin ... tungen.htm

I need the menu to stay in place at all time...

Thanks for any help...

Hardowin

Re: Followscroll and screenpostion


Poster: John
Dated: Monday May 3 2004 - 2:00:13 BST

Hardowin wrote:
I need to use screenposition and followscroll.
I need the menu to stay in place at all time...

This has me quite confused. You say you need followscroll, but you also say you need the menu to stay in place! Which is it - scroll or stay? Right now the scroll is moving the entire main graphic, which is not a good idea. It covers up too much of the text as it moves down.

Also, the domain for which you are licensed (http://www.gastro-enge.ch/) is not the domain you are running the code on (http://www.homepage.hispeed.ch/).

Re: Followscroll and screenpostion


Poster: Hardowin
Dated: Monday May 3 2004 - 18:59:38 BST

Hi John,

John wrote:
I need to use screenposition and followscroll.
I need the menu to stay in place at all time...
This has me quite confused. You say you need followscroll, but you also say you need the menu to stay in place! Which is it - scroll or stay? Right now the scroll is moving the entire main graphic, which is not a good idea. It covers up too much of the text as it moves down.


I need the menu to be centered and to scroll down...

Also, the domain for which you are licensed (http://www.gastro-enge.ch/) is not the domain you are running the code on (http://www.homepage.hispeed.ch/).[/quote]

The link i gave ist to test the Site till it's finished.
On http://www.gastro-enge.ch i still have the old version running.
I want the new site to go online when it's finished.

Is there an other way to center the Menu??

Hardowin

Re: Followscroll and screenpostion


Poster: kevin3442
Dated: Monday May 3 2004 - 21:19:14 BST

Hardowin wrote:
...I need to use screenposition and followscroll.
But as soon as i put these 2 items into the menu, follow scrolling works but the menu keeps staying at top on the screen....

Hi Hardowin,

Long time no see... Glad to see you back on the Milonic boards (you used to participate quite a lot in the old mailing list, right?).

I have seen exactly the same behavior that you referred to (I think it was on bobwill's site). It seems that when you use the screenposition property combined with an absolute top position, the followscroll property no longer obeys where you tell it to scroll... it just goes to the top regardless of the followscroll setting. As a workaround, try this:

Replace the following:
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=122;
menualign="center";
alwaysvisible=1;
screenposition="center";
followscroll = "122";
...
aI() stuff.....
}

with this:
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top="offset=122";
menualign="center";
alwaysvisible=1;
screenposition="center;top";
followscroll = 122;
...
aI() stuff.....
}

In this case, screenposition tells the menu to go to the top, but the top property applies a vertical offset to move it back down. followscroll then seems to behave as you expect. (By the way, you might want to rename the menu that contains the scrolling logo to something other than "Main Menu" so that you don't have two menus named the same.)

You could read this topic as well, to gain a little more insight on how to control the scoll.

Welcome back to Milonic. Hope that helps,

Kevin


Poster: Hardowin
Dated: Monday May 3 2004 - 21:51:12 BST

Hi Kevin,

Thnx for the great help Kevin, it works....

Yeah that was me....on the OLD Board....

But i NEVER forgot the Menu...
It's GREAT working with it....
I bought one license for the DOC which site i'm building right now.
Yeah Milonic is going Medical..... :D

And i will have to buy a few more Licenses in the future...
I'm going to builkd a site for the Lab i'm working.
It's a Medical Lab... :)

I will try to spent some time more on the board in the future....

Cheerio,

Hardowin