DHTML menu builder - dropdown problem...

User 383775 Photo


Registered User
4 posts

Using version 2.1.

I want the menu to appear below my image header on the page. So I've set variable StartTop to 213 (from the default 0). Works fine - except that the submenus expand UP instead of drop down.

I've tried amending other promisingly-named variables, but can't get it to work. Any suggestions?

Thanks.
User 355448 Photo


Ambassador
3,144 posts

Richard,

You can try a different DAT file for the DHTML menu builder. The self extracting zip file has a replacement DAT file and a readme file that explains how to make the change.

http://www.coffeecuphelp.com/broberson/dhtmldat.exe
User 355448 Photo


Ambassador
3,144 posts

Richard,

What program are you using to create your web page?

Can you provide a link to the site?
User 383775 Photo


Registered User
4 posts

Bill

I've tried the new DAT file - same problem. I've uploaded 2 test pages:

http://www.richardlawton.net/test.html

This is completely empty apart from the menu - and the submenus go to absolute top 0px.

http://www.richardlawton.net/test2.html

This has an image, and the submenus expand up from the main menu.

In both cases I've made the following script change only:

var StartTop=213; // Menu offset x coordinate

User 383775 Photo


Registered User
4 posts

BTW - I just use a text editor for coding. Problem occurs on both IE7 and Firefox 3.0
User 383775 Photo


Registered User
4 posts

I've identified the problem. Not sure if it's a bug, a feature or just how things are...

If there is apparently nothing below the menu, then the submenus expand UP. If I add a load of line breaks to test.html (above) then it works fine.

In my actual code I was working on, the menu script was followed by an absolutely positioned div and nothing else. So the script reckons there's nothing there. If I add a load of line breaks, the menu drops down ok.

Sometimes I hate computers. :rolleyes:

User 355448 Photo


Ambassador
3,144 posts

Richard,

Interesting that adding content below the menu would fix that. I have never had that issue. :|

I am waiting for the computer that understands what I want and does it. I expect to be waiting for that computer when I die. :D

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.