first line of my menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

first line of my menu

Post by xenophil »

hello all
and thank you milonic
but my first line of my menu is parameter of "menu"
and when i'm on the net it's writte "MILONIC" .
it's very strange
tanks for reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Check this topic for information. It's probably because you're on the desktop, if you've done it correctly and it's not showing on the web.

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

thank you I love this menu
i think it's the best menu !!!
but i have another probleme
---->
i wish that when i go down or up with the window of the page where there is the "milonic-menu" this one deplace with the window and it is always visible.

it's important thanks for reply bye ;)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

If you mean when you use the scroll bar in the browser you want the menu to follow down the page, in the menu definition, where you have style= top=alwaysvisible=1; put followscroll=1; Then the menu will follow down the page when you scroll it.

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

I must change "menu_data.js" ?
i haven't the line
style= top=alwaysvisible=1;
followscroll=1;
I must add those line in this file or in another file ?
with(menuStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="80%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#DCE9F0";
offcolor="#515151";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=3;
style= top=alwaysvisible=1;
}
can you help me plz ruth :|
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm sorry, not in the style, in the menu part. I should have been clearer. For example on the Milonic site it would be in this part

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=240;
screenposition="center";
alwaysvisible=1;
orientation="horizontal";
You would put it after the orientation="horizontal"; followscroll=1;

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

tank you very much

but the menu can't keep the same place of my page ?
when i scroll a little the "milonic-menu" goes down but stay in the top of my page
if its normal it's not a problem ....

thx ruth ;)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes, that is normal, when you scroll the menu stays at the top of the page. If you wanted it to be at the same 'top' position as it is when you first open the page I think you can do that. For example, let's say you have set the top position to top=20; and when it scrolls you would like it to be at that top=20; position always, you can change the way you set the top to top="offset=20";

That would still put the menu at the top position of 20px down, but it would also put the menu at that 20px down from the top when it scrolled.

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

i have test but there is a probleme it's like before !!!!
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=50;
overflow="scroll";
style=menuStyle;
top=offset=300;
it's here that i must change ?
before it's top=300;

sorry it's not the good solution if you have another solution can you tell it me ?
bye and thx ;)

sorry I'm very tired see you tomorrow
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

If the original top position is 300, then you want to code it:

Code: Select all

with(milonic=new menuname("Main Menu")){ 
alwaysvisible=1; 
left=50; 
overflow="scroll"; 
style=menuStyle; 
top="offset=300";


You left the " marks out. Also, I don't see the code for it to follow, that's followscroll=1;

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

i have put this code
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=50;
overflow="scroll";
style=menuStyle;
top="offset=300";
but the "milonic-menu" stay in the top of the page about 1cm ..
and when i scroll it don't move ...

i think i put top=300"; likr before

please visit for see my menu : --->http://xenophil.chez.tiscali.fr/
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You do not have the correct coding. You have overflow="scroll" only which is, I think, debordment would be the French equivalent. It puts a scroll bar in very long submenus so they stay fully on the screen. But as I noted in my other post,

Code: Select all

Also, I don't see the code for it to follow, that's followscroll=1; 
you still don't have followscroll=1; which makes the main menu follow when you scroll the page.

Code: Select all

with(milonic=new menuname("Main Menu")){ 
style=menuStyle; 
top="offset=300";
left=50; 
overflow="scroll"; 
followscroll=1;
alwaysvisible=1; 
Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

i will test
thx
and i will post a reply if it's OK and if it's NOT OK lol
thanks for all
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

ok my menu scroll only with top=offset=300;
and don't scrool with top="offset=300"; strange ??
but he dont stay in the same position when I scroll ??

look at my code please :
with(milonic=new menuname("Main Menu")){
alwaysvisible=1
left=50;
overflow="scroll";
followscroll=1;
style=menuStyle;
top=offset=300;
orientation="vertical";followscroll=1;
followscroll=1;
aI
thanks for all visit http://xenophil.chez.tiscali.fr/ for exemple !
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You have followscroll=1; in there 3 times! Once is enough.

Also, as Ruth mentioned, you need the " in top="offset=300"; .
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

There seems to be a bug on the offset= when you use " which are required. I've reported it.

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

ok but if I put the " he stay at the top of my windows
Are you sure that I do use the " ??
because I heve test the twice and without " i can scroll but he stay on the top of my windows
if you have not another solution thank you ( quand meme ) in french !!!! :D
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
OK, I finally figured it out. I'm not up on variables so it took someone to explain it to me. This is the code you want for your menu.

Code: Select all

with(milonic=new menuname("Main Menu")){ 
style=menuStyle; 
top=300; 
left=50; 
overflow="scroll"; 
followscroll=300; 
alwaysvisible=1; 
The 300 in the followscroll tells the menu where to be on the page when it stops scrolling. So, get rid of the top="offset=, even though you have it working without quotes. Just make it top=300; and followscroll=300; I'm sorry it took so long. Make sure you correct this because what you have top=offset=300; without quotes might cause problems in some browsers because it's not supposed to be like that. The top="offset= is supposed to be used for positioning a submenu that you want to be different from the usual position of a submenu.

Ruth
xenophil
Advanced
Advanced
Posts: 14
Joined: Sat Mar 05, 2005 2:52 pm
Contact:

Post by xenophil »

thanks for all
now it's OK
i'm very happy
nice job and still THX :D :D :D :D :D :D :D :D
Post Reply