Followscroll and screenpostion

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Hardowin
Beginner
Beginner
Posts: 4
Joined: Mon Aug 12, 2002 10:43 am

Followscroll and screenpostion

Post by Hardowin »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Followscroll and screenpostion

Post by John »

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/).
John
Hardowin
Beginner
Beginner
Posts: 4
Joined: Mon Aug 12, 2002 10:43 am

Re: Followscroll and screenpostion

Post by Hardowin »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Followscroll and screenpostion

Post by kevin3442 »

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: Select all

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

Code: Select all

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
Hardowin
Beginner
Beginner
Posts: 4
Joined: Mon Aug 12, 2002 10:43 am

Post by Hardowin »

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
Post Reply