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

Screen position in Firefox with text size increase -[SOLVED]


Poster: mpilgrim
Dated: Wednesday August 3 2005 - 21:35:59 BST

I have two menus with two different styles, "Main Menu" and "Login".

What I'd like to do is have the "Login" menu always appear to the right of my "Main Menu". (As if "Login" is part of "Main Menu" just with a different font and bg styles)

This works fine for the most part if I assign it like this in my "menu_data.js" file:
Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=0;
orientation="horizontal";
style=menuStyle;
top=79;
screenposition="left";


Then:
Code:
with(milonic=new menuname("Login")){
alwaysvisible=1;
left=466;
orientation="horizontal";
style=menuStyle4;
top=79;


The problem comes in Firefox when I want to increase the text size ( View > Text Size > Increase ) 2 or 3 times. The "Login" part stays where it is while the part of the "Main Menu" disappears underneath the login.

Is there a way to make this "Login" menu appear directly to the right of the "Main Menu" no matter what the text size in FireFox?

http://media.marketwire.com/SECURE/menu_data.js

http://media.marketwire.com/SECURE/test.htm
(please ignore the broken images on the page)


Any help would be appreciated,
Matt


Poster: Ruth
Dated: Wednesday August 3 2005 - 22:12:33 BST

Hi Matt,

Just out of curiosity, why don't you just make it part of the main menu? The only difference between that style and the style for the login is the offcolor, the onbgcolor and the padding which you can code into the aI string. You can make it the last item and still have it look like it does now. Beginning with your existing last item it would be:
Code:
aI("text= separatorsize=0;onbgcolor=#ffffff;pointer=default;");
aI("status=Log In to Submit your Press Release;text=Log In/Submit;url=http://dev.marketwire.com/dev/customer_login#;offcolor=#CC0000;onbgcolor=#CC0000;padding=3px;");
}


The separatorsize=0;onbgcolor=#fffff;pointer=default; in the now existing last item is to keep any color change or mouse change from happening as you pass over that blank item to the login, then in the last one you have just included the changes for the colors and padding in the aI string.

This way, when you change text size it is part of the menu so it will shift.

If you look below my name there are links to different property references for the menu.

Ruth


Poster: mpilgrim
Dated: Wednesday August 3 2005 - 23:03:06 BST

Thanks again Ruth,
That should be all you hear from me for a while!

Worked just like I wanted it to.
- Matt