anyway to just put the menu in a table?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
brokeDUstudent
Beginner
Beginner
Posts: 1
Joined: Tue Jul 29, 2003 2:38 am

anyway to just put the menu in a table?

Post by brokeDUstudent »

Hey hows it going,
is there anyway to just put the 2 menu files in a table and not specify the exact position of it? I only ask because if someone doesn't have the browser maximized my menu is not in the position where it should be. I tried searching for a similar problem and have come up empty-handed.. any ideas are appreciated, thanks.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Crank up the menu.htm file in the v5 download you got. You'll see Local Samples/Embedded Inside a Table. That, and the associated array, should get you going.
John
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Hmmm... what?

Post by codyrush »

I'm sorry, but I'm trying to do this as well and your answer did not help. I would like to place this in a table, and not use X,Y coordinates - is that possible? Can you please explain your answer with more detail?

Thank you,
Cody Rush
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Post by codyrush »

Okay, I found a download for beta4. I d/l'd it and now I see a table_data.js file. I have actually been successful in placing the appropriate files into a table. Yeah! Now, can I do it with a horizontal menu?

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

Re: Hmmm... what?

Post by John »

codyrush wrote:I'm sorry, but I'm trying to do this as well and your answer did not help. I would like to place this in a table, and not use X,Y coordinates - is that possible? Can you please explain your answer with more detail?
Sorry, but you got me on that one. What "X,Y" coordinates, specifically, are you talking about? Looking at the file I mentioned in the other message I don't see any. What version of the menu are you running?

Very simply, it's just a matter of...

Code: Select all

<body>
<script language="Javascript" src="/sa/menu5/milonic_src.js" type="text/javascript"></script>
Adjust that for your path, of course. And...

Code: Select all

<td width="100" align="center" valign="top"><script language="Javascript" src="reg1_data.js" type="text/javascript"></script>
Also adjusted as necessary for your array.
John
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Re: Hmmm... what?

Post by codyrush »

jgillett wrote: Sorry, but you got me on that one. What "X,Y" coordinates, specifically, are you talking about? Looking at the file I mentioned in the other message I don't see any. What version of the menu are you running?
I'm sorry. What I was referring to was how you set the position of the menu based on coordinates from the top and left of the page. I'm looking at this more, and I am coming to the assumption that I do not have the same version of the software as you. I do not have a file named reg1_data.js. Or, is this just simply a different file that has been renamed? I tried to use the horizontal_data.js inside a table, but it output the table and then the menu below it, not inside the table.

Thanks
Cody
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Post by codyrush »

Okay, according to the menu_array.js the version is 3.x. :?:

In one of your examples, the path says sa/menu5/milonic_src.js. Is there a more current version (version 5)? Which version do you recommend and where can I d/l it?

Thanks again,
Cody Rush
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Post by codyrush »

Hah! Maybe next time I should read the front page.
Please note: The beta is currently still at version 4 but once we go live this will become version 5. I know it's more confusion but it's just something we needed to address. All will become clear once we go for launch.
Got it! So, the beta4 is what I should be using - which is what I d/l'd last night.

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

Post by John »

You can name the array (menu data) files anything you like (that's why I said '...adjusted as necessary for your array.') - just don't rename the 'guts' menu files themselves.

What you should be looking at in the v5 download is table.htm. That has a big old menu smack in the middle of a <td>. The associated table_data.js has all the info that makes it work. Sorry, but I have to say this - that's why Andy called it table_data. ;) This system is actually pretty brilliant. Different parameters (and there's a pile of 'em!) are simply used in different ways, through the same system, to get different results.

I think you're trying to make it too hard. Take it slow, look at the files I mentioned above, and it'll work. If not, post a URL so we can see what's happening.

On the versions, note there's a new RC out, just to make sure we're on the same page - http://milonic.com/v5_rc4/menu.htm.
John
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Post by codyrush »

here is a link... i should have provided this long ago.

http://www.prowestpcm.com/newsite/

I have not put any menu code into this page yet, I'm still just trying to get something to happen on a blank HTML page. Anyways, thats what the page looks like. The links at the top... WELCOME, SERVICES, PROJECTS, REFERENCES and PRESS RELEASES are what I want to make dropdowns.

Any suggestions or recommendations?

Cody
codyrush
Beginner
Beginner
Posts: 7
Joined: Thu Jul 31, 2003 2:49 am
Location: San Diego, CA
Contact:

Post by codyrush »

go to that link, i dare you. i have a menu functioning absolutely wonderful on my local machine. I just uploaded the files via FTP and I get a debug error when I visit the link above. When I click on YES to debug, the debugger highlights the very last word in my array file.... _drawMenu(_a)


EDIT

and now just 5 minutes after I made the post about the debug... and it has just stopped. I'm not getting an error, but I am also not getting my menu, its just blank.

Cody
Post Reply