position=relative; causes menu to disappear

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jgold723
Super Advanced
Super Advanced
Posts: 40
Joined: Wed Nov 19, 2003 10:14 pm

position=relative; causes menu to disappear

Post by jgold723 »

I know this may be a wicked newbie question -- but I'm trying to position my menu within a table.

But when I use the position=relative; statement, the menu disappears.

Below is the code from the data file:


with(milonic=new menuname("Main Menu")){
style=menuStyle;
position=relative;
alwaysvisible=1;
orientation="horizontal";

On my HTML page, I take the script statements in their entirety and place them within the table cell, correct?

Can anyone tell me what I'm doing wrong?

Thanks,

John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi John,

You've left out the double quotes around "relative", so it's trying to assign position a value contained within a variable named relative, which doesn't exist. Try this:

Code: Select all

position="relative";
Hope that helps,

Kevin
jgold723
Super Advanced
Super Advanced
Posts: 40
Joined: Wed Nov 19, 2003 10:14 pm

Post by jgold723 »

Ah -- as I said, I'm a newbie.

Thanks! That did it.

John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Basically anything that's a string needs the quotes...

onbgcolor = "transparent";
oncolor = "#ff9933";
fontsize = "12px";
fontfamily = "Verdana, Arial, Helvetica";

Anything that's strictly numeric does not...

separatorsize = 1;
padding = 4;
top = 130;
left = 25;

etc.
John
Post Reply