DHTML Menu Builder - Problems...

User 1907442 Photo


Registered User
9 posts

Hello all.

I just downloaded the DHTML Menu builder. What a slick little program!

However, I'm having issues when I try to import the menu into my site. It doesn't seem to want to behave. :) I want the menu underneath the header table, but when I try to place it, it ends up at the top of the screen.

Would someone mind taking a look and tell me what I'm missing? The menu isn't finished, I just wanted to place it to see where I'm at.

Now I'll warn you, I'm not too knowledgable with code. I use Dreamweaver in design view to make my sites. Although I just ordered some books to change that. :)

Here's the site in progress: http://www.shagworks.com
User 117361 Photo


Ambassador
6,076 posts

Well, before you do anything at all in there on the code, save yourself a copy of the page, or else start up a new one with all the same characteristics, but just save it as a trial page so things don't get mixed or lost.
Now looking in there, it looks to me as if you can make some changes in the top part of the menu code.For instance:

var StartTop=1; // Menu offset x coordinate
var StartLeft=1; // Menu offset y coordinate


I reckon if you do something to those two numbers "1" you will shift the menu down from the top of the page and over from the left.


var MenuCentered='left'; // Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static

Then again you could maybe try out changing the position in the top line here... try putting 'center'
Don't know if it will help to change the vertical center though which will possibly be changed when you alter the numbers in the previous snippet I included here. Those numbers refer to pixels so check out how high your header image is and try a number just slightly bigger...I think your header is about 142 px, so maybe that number or a little more.

Then let us know how things have worked out.

User 1907442 Photo


Registered User
9 posts

Ok, sorry for the dumb question.

It won't work to place the menu inside of a fixed table? That's what I was trying, but it jumped out of the table. :)
User 6573 Photo


Ambassador
2,649 posts

First of all Great looking site.

Looking at the size of your header table. Your image in it is at 142 pxl high. I would recommend trying this:

Under options tab try these settings:

Horizontal Alignment: Center
Vertical Alignment: Static
Menu Top: 143 (since your image above is 142)

Another thing you might want to consider setting your code for the TD of your table where your image is to height: 142 - so that it stays that height in the different browsers to make sure that at 143 your menu is not going to overlap something.

Kim


User 6573 Photo


Ambassador
2,649 posts

Kim Rickman wrote:
First of all Great looking site.

Looking at the size of your header table. Your image in it is at 142 pxl high. I would recommend trying this:

Under options tab try these settings:

Horizontal Alignment: Center
Vertical Alignment: Static
Menu Top: 143 (since your image above is 142)

Another thing you might want to consider setting your code for the TD of your table where your image is to height: 142 - so that it stays that height in the different browsers to make sure that at 143 your menu is not going to overlap something.

Kim



Haa Haa Janys finished before I did

User 1907442 Photo


Registered User
9 posts

Hey thanks! I think we're getting somewhere. :)

Notice now that when you scroll down the page, the menu scrolls down with you.

http://www.shagworks.com

User 122279 Photo


Senior Advisor
14,649 posts
Online Now

There is a discussion thread for the DHTML menu builder at the bottom of the forum (jump out of this thread and scroll down). Just a couple of days ago I posted a solution for someone who had the same problem.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 117361 Photo


Ambassador
6,076 posts

I think this is the culprit

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


Probably that var should not be set to 'static'
try one of the others.
User 1907442 Photo


Registered User
9 posts

That was it Janys! I set it to top and viola! Thanks for guiding a newbie. :)
User 117361 Photo


Ambassador
6,076 posts

Pleased you got sorted. The site is looking good so enjoy yourself with setting it up completely. Let us know how things develop.

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.