screenposition

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jefreygunion
Beginner
Beginner
Posts: 5
Joined: Wed Apr 09, 2008 10:53 pm

screenposition

Post by jefreygunion »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: screenposition

Post by Ruth »

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

Re: screenposition

Post by John »

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.
John
jefreygunion
Beginner
Beginner
Posts: 5
Joined: Wed Apr 09, 2008 10:53 pm

Re: screenposition

Post by jefreygunion »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: screenposition

Post by Ruth »

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
jefreygunion
Beginner
Beginner
Posts: 5
Joined: Wed Apr 09, 2008 10:53 pm

Re: screenposition

Post by jefreygunion »

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

Re: screenposition

Post by John »

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

As Ruth said, minus is off-screen - up - outta-sight.
John
jefreygunion
Beginner
Beginner
Posts: 5
Joined: Wed Apr 09, 2008 10:53 pm

Re: screenposition

Post by jefreygunion »

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://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.
jefreygunion
Beginner
Beginner
Posts: 5
Joined: Wed Apr 09, 2008 10:53 pm

Re: screenposition

Post by jefreygunion »

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://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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: screenposition

Post by Ruth »

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

Ruth
Post Reply