/    Sign up×
Community /Pin to ProfileBookmark

toolbar-menu ???? HELP HELP

Hi everyone,
i have found a need litle menu that i wanna use at;
[url]http://javascript.internet.com/navigation/toolbar-menu.html[/url]

Only problem i have with it is that i want to chance the position of the menu en put it somewhere just above the absolute middle of a webpage.

I can not seem to figure out how to do it.

Any one has a glue ??

Please help me

[upl-file uuid=1dca146a-5a66-44d3-82f1-a7a3124f7f75 size=8kB]menu.zip[/upl-file]

to post a comment
JavaScript

13 Comments(s)

Copy linkTweet thisAlerts:
@JonaFeb 23.2003 — You mean you want to make the menu that is at the top, in the middle of the page? And you want it to stay there?
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 24.2003 — Yes, thats exactly what i mean.

Have any idea`s ?
Copy linkTweet thisAlerts:
@JonaFeb 24.2003 — Let's see... <SPAN style="top:120px;"><script></script></SPAN>

Maybe that'll work. You can try editting the JavaScript instead, or adding, "position:absolute;" to the SPAN. The <script></script> is where you put your .js file. If you'd like me to, I can look and see if there's another way (probably is) by editting the JavaScript. Because older browsers (really older ones) don't support some CSS.
Copy linkTweet thisAlerts:
@JonaFeb 24.2003 — On second thought, that doesn't work... I'm pretty sure the only way to do it is to edit the menu.js file. It seems that the part you'll have to edit is in the one function that says the innerHeight and innerWidth [FrstLoc.innerHeight; and FrstLoc.innerWidth;]
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 25.2003 — Ok i think i have found the right lines.

Unfortunately i am a absolute script dummy.

Under here are the lines that you ment Right ?

Where can i give the coordinates to make the menu be placed somewhere else?

function RePos(){

FrstWinWdth=ExpYes?FrstLoc.document.body.clientWidth:FrstLoc.innerWidth;

FrstWinHght=ExpYes?FrstLoc.document.body.clientHeight:FrstLoc.innerHeight;

ScWinWdth=ExpYes?ScLoc.document.body.clientWidth:ScLoc.innerWidth;

ScWinHght=ExpYes?ScLoc.document.body.clientHeight:ScLoc.innerHeight;

if(MenuCentered=='justify'&&FirstLineHorizontal){

FrstCntnr.style.width=FrstWinWdth;

ClcJus();

var P=FrstCntnr.FrstMbr,W=Menu1[5],i;

for(i=0;i<NoOffFirstLineMenus;i++){P.style.width=W;P=P.PrvMbr}}

StaticPos=-1;

if(TargetLoc)ClcTrgt();

if(MenuCentered)ClcLft();

if(MenuVerticalCentered)ClcTp();

PosMenu(FrstCntnr,StartTop,StartLeft)}


Last Thing;

As far as i can see the only way to place the menu somewhere else is to edit the javacode.

I have tryed to put it in a Table, didnt work.

I have tryed to put it in layer, didnt work.

Css would also not work.

A well, i hope you would have a good solution for me.

Thank you sofar for your time.
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 25.2003 — Have finaly found something to move the menu, the next lines give me the chance to move the menu to left, middle or right.

var MenuCentered='left'; // Menu horizontal position 'left', 'center' or 'right'

var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static


So im close to what i need.

Is it possible to chance the code lines so that i can move the menu for example exactley between the left and the middle?

i would like to move exactley the menu to any position i like.

Hope you have a answer for me.
Copy linkTweet thisAlerts:
@JonaFeb 25.2003 — Under here are the lines that you ment Right ?

Where can i give the coordinates to make the menu be placed somewhere else?

function RePos(){

FrstWinWdth=ExpYes?FrstLoc.document.body.clientWidth:FrstLoc.innerWidth;

FrstWinHght=ExpYes?FrstLoc.document.body.clientHeight:FrstLoc.innerHeight;

ScWinWdth=ExpYes?ScLoc.document.body.clientWidth:ScLoc.innerWidth;

ScWinHght=ExpYes?ScLoc.document.body.clientHeight:ScLoc.innerHeight;

if(MenuCentered=='justify'&&FirstLineHorizontal){

FrstCntnr.style.width=FrstWinWdth;

ClcJus();

var P=FrstCntnr.FrstMbr,W=Menu1[5],i;

for(i=0;i<NoOffFirstLineMenus;i++){P.style.width=W;P=P.PrvMbr}}

StaticPos=-1;

if(TargetLoc)ClcTrgt();

if(MenuCentered)ClcLft();

if(MenuVerticalCentered)ClcTp();

PosMenu(FrstCntnr,StartTop,StartLeft)} [/quote]


Yep, that's it. Well, I tried changing it, but you may want to try changing, "FrstWinHght=ExpYes?FrstLoc.document.body.clientHeight:FrstLoc.innerHeight;" to something like, "FrstWinHght=ExpYes?200px" or "FrstWinHght=ExpYes?top:200" or maybe even, "FrstWinHght=top:200" or "FrstWinHght=200px" Or something like that.. just a thought.

Unfortunately i am a absolute script dummy. [/quote]

You're not the only one... :p

Have finaly found something to move the menu, the next lines give me the chance to move the menu to left, middle or right.

var MenuCentered='left'; // Menu horizontal position 'left', 'center' or 'right'

var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static


So im close to what i need.

Is it possible to chance the code lines so that i can move the menu for example exactley between the left and the middle?
[/quote]


OK, since you can move the menu to center it, you just want it to stay in the center at all times? Hmm, well, that can probably be done. Try something like, "MenuVerticalCentered='top:200px;position:relative';" or something like that. If it doesn't work, you'll probably have to edit the "hard-code" part in the menu.js file and reprogram the part that sets the actual position--something quite difficult for even me, I might add.
Copy linkTweet thisAlerts:
@voorheesjFeb 26.2003 — you need to edit the menu_var.js


the line is

var StartTop=1;


just change that number till you are where u want
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 26.2003 — Just tryied al the options, ANd didnt work :-(

Maybe i just did it wrong or so, but im not able to move the menu to anywhere specifick.

Im stuck here
Copy linkTweet thisAlerts:
@voorheesjFeb 26.2003 — var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static


should be set to top


and

var StartTop=1;


set that number at around 70

I'm using the same menu, it will work
Copy linkTweet thisAlerts:
@JonaFeb 27.2003 — Hehe... I must not have looked very closely at the menu's code....
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 27.2003 — Yep your right it works :-)

Great, thanx


Your a genius.

Thanx to all people for helping out.

You have all been great
Copy linkTweet thisAlerts:
@crashdaravenauthorFeb 28.2003 — pffffffff think i had it good and then a new problem came;

Problem is that if i hit F11 (browser fullscreen) the menu moves to to the upper left corner.

After resizing to normal browser the menu stays in upper left corner.

Only after hitting refresh button the menu goes to the original position.

If i open the page in Full screen than the menu also doesnt have the right position.

It looks like ,the given coordinates position the menu according to the computer screen and not according to the webpage.

[upl-file uuid=8c35b298-8713-47d4-afaa-bf2116d423a4 size=4kB]iframe.zip[/upl-file]
×

Success!

Help @crashdaraven spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...