Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:55
position=relative; causes menu to disappear
Poster: jgold723
Dated: Wednesday November 19 2003 - 21:18:12 GMT
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
Poster: kevin3442
Dated: Friday November 21 2003 - 1:28:00 GMT
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:
position="relative";
Hope that helps,
Kevin
Poster: jgold723
Dated: Friday November 21 2003 - 13:43:28 GMT
Ah -- as I said, I'm a newbie.
Thanks! That did it.
John
Poster: John
Dated: Friday November 21 2003 - 16:08:50 GMT
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.