Board Logo

Menu - Demo #1 - center
arfa - 1/27/2006 at 06:59 PM


Brilliant script and amazing presentation - the builder is an amazing offering.!

So, all is well but...
TWO questions.............

how do I set menu for page <center>?
menu_tpl.js has: 'block_left': 'x'
which is good enough but is there a way to set either relative pos or just plain center?

In your blank.html:
//Don't try to position menu locating menu initialization block in
// some table cell or other HTML element.

clear enough but can we winkle menu.js?
or whatever.

Is there some way to include: new menu (MENU_ITEMS, MENU_POS); in a .js header file?
I am using the menu for an offline dictionary (about 9Mb of text and many pages) and it would simplify file reformatting if I could just have all the page-top stuff in a single .js and only have to insert the one call.
I have tried <body onLoad... but no go.
A few other hack arounds but it no likee.

Neither question is critical but it would be good to hear from you.

Many thanks again for a fine product. I have tried a good many menu systems over the years and this has size and versatility in absence and abundance respectively :)

TeckniX - 2/7/2006 at 07:50 PM

I'd be really interested to know also how to do the <center> function on this.
I had thought about implementing a javascript side script, that would find the width of the browser and display items based on that.

So if anyone finds something post it up.
I'm gona work on this and will repost if I find something good.

jaimej - 3/23/2006 at 07:44 PM

I'd like to know how to center this as well. Is it anywhere on here or is there no way and thats why theres no response?

mclu - 9/26/2006 at 06:07 PM

Try this:
Change the line below in "menu.js"
this.n_x =0;
this.n_x = (screen.width-(a_items.length)*100)/2 ; // 100 is your item width

The menu will be in the center of the window.

Back to forum: