Click to See Complete Forum and Search --> : Help with JavaScript menu positioning


Francesca
10-04-2003, 10:16 PM
Hello!

I have a problem with a Javascript menu that I have installed on my site.

The problem is the following:
when the webpage containing the menu is resized, the menu (which obviously "floats" over the page) will remain exactly in the position specified by its properties (I created it with a menu editor), rather than reposition itself according to the new size.

So the menu ends up covering other parts of the page and being mostly unusable (unless the page is maximized) and ugly.

I thought I had specified all the relevant options in the menu editor program I used (AllWebMenus), but it doesn't seem to work.

I checked out java menus on other sites and none of them has this problem. So I downloaded one such page and opened it with Dreamweaver to discover that there is a Layer item in the area where the menu appears once loaded... apparently an "anchor" feature which restricts the position of the menu to that particular area.

Obviously I am a real newbie and don't have a clue about how to use these features and make them work for me! But this DIY approach is all I can afford.

Does anyone know how can I create such an anchor for my javascript menu?

Any pointers, comments or info would be greatly appreciated! Thanks!

Francesca

Fang
10-05-2003, 02:00 AM
Give a link to the page, we need to see the code.

Francesca
10-05-2003, 01:57 PM
Hi, and thanks for responding.

Sorry, I obviously needed to post the example URLs! Duh! I'm such a newbie.

Here:

you can see the page with the problem in question at:

http://www.spiritfamily.com/testhome-t.htm

and the javascript code for the menu is at:

http://www.spiritfamily.com/menus/navbarhoriz.js

Let me know if you need any more info, and thank you so much for helping!

Francesca

Fang
10-05-2003, 04:47 PM
This is explained in the manual, see an example (http://www.likno.com/examples/example_positioning.html)