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

screenposition


Poster: jefreygunion
Dated: Wednesday April 9 2008 - 23:03:42 BST

Hi,
I'm trying to position my menu as centered, top. I also want to use an offset from the top of -170 pxls. I can't seem to get the menu to offset. My syntax is as follows:

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center, top';
offset=-170;
....

My test page is: http://www.pointsforwellness.com/index_TEST.htm

Any help with getting my syntax corrected would be a great help.
Thanks!!
Jef

Re: screenposition


Poster: Ruth
Dated: Thursday April 10 2008 - 4:43:25 BST

Are you saying you want the menu to be off the screen, i.e. -170px so it doesn't show?

Try just using screenposition='center'; and then the top offset.

Ruth

Re: screenposition


Poster: John
Dated: Thursday April 10 2008 - 15:15:36 BST

First things first. You are, literally, more than 50 versions down-level in your menu code. For support you must be running the current version, which is v5.792.

Upgrade, then, if necessary, we'll continue from there.

Re: screenposition


Poster: jefreygunion
Dated: Thursday April 10 2008 - 17:46:56 BST

Ruth wrote:
Are you saying you want the menu to be off the screen, i.e. -170px so it doesn't show?
Try just using screenposition='center'; and then the top offset.

Ruth



Hi Ruth,
Thanks for the reply!
What I wanted was to offset the menu down from the top in a centered position by about 170 pixels. I tried your suggestion, but it didn't do the trick. I also need to upgrade my Milonic version per John's recommendation.

Re: screenposition


Poster: Ruth
Dated: Thursday April 10 2008 - 19:03:35 BST

Hi,

Yes, you will have to upgrade because we have no idea how things worked in older versions. Things get changed, updated, fixed etc., so we do need the newest version.

Ruth

Re: screenposition


Poster: jefreygunion
Dated: Thursday April 10 2008 - 19:10:34 BST

Ruth wrote:
Hi,

Yes, you will have to upgrade because we have no idea how things worked in older versions. Things get changed, updated, fixed etc., so we do need the newest version.
Ruth



Hi Ruth,
Just updated my version to most current, and still am having no luck with the screeposition.
These are the syntax combos I've tried:

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center';
offset= 'top',-170;
orientation="horizontal";
style=menuStyle;


with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center';
offset= 'top',170;
orientation="horizontal";
style=menuStyle;


with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center, top';
offset=-170;
orientation="horizontal";
style=menuStyle;


with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center, top';
offset=0, -170;
orientation="horizontal";
style=menuStyle;


with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center';
offset='top', 0, -170;
orientation="horizontal";
style=menuStyle;


with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
screenposition='center', offset=-170;
orientation="horizontal";
style=menuStyle;

Re: screenposition


Poster: John
Dated: Thursday April 10 2008 - 19:32:38 BST

Is there some reason you're hung up on -170 :?:

As Ruth said, minus is off-screen - up - outta-sight.

Re: screenposition


Poster: jefreygunion
Dated: Thursday April 10 2008 - 19:51:06 BST

John wrote:
Is there some reason you're hung up on -170 :?:

As Ruth said, minus is off-screen - up - outta-sight.



John -
I've tried positive and negative values with no luck.
What might make this more clear to users reading through all the different varibles on: http://www.milonic.com/menuproperties.php
For the "screenposition" example, is showing what the syntax might look like.
The paragraph currently reads:
< screenposition is useful for websites that are centered in orientation. By declaring "center" for screenposition, this will ensure that the menu will remain centered at all times. Other options for screen position are top, left, right, middle or bottom, plus a combination of 2 valid properties separated by a semi colon. Offsets can be declared for both top and left. The syntax for offsets is "offset=-100"; this will move the menu 100 pixels back from either top or left depending on the screenposition you have used. >

Based on this information, a beginner [like myself] has no clue how to structure the syntax to make this work. I'm "hung up" on the 170 value because that's how far down from the top I want my menu placed. I now understand a negative value means "up the page", not down.

Thanks.

Re: screenposition


Poster: jefreygunion
Dated: Thursday April 10 2008 - 22:16:05 BST

John wrote:
Is there some reason you're hung up on -170 :?:

As Ruth said, minus is off-screen - up - outta-sight.



John -
I found the answer to my screenposition issue on the Milonic site at:
http://www.milonic.com/menusample1.php

Here's how I used it:

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
screenposition='center';
top="offset=170";
style=menuStyle;


Worked perfectly.
Jef

Re: screenposition


Poster: Ruth
Dated: Thursday April 10 2008 - 22:21:57 BST

Great. And many thanks for posting the solution to help anyone else with the issue :)

Ruth