Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:51

3 part question


Poster: Gipetto
Dated: Tuesday December 23 2003 - 21:09:17 GMT

Sorry for the dummy questions, I inherited ownership of this script with the website I'm working with (and currently redesigning).

1) Is there a way with version 3.5.11 to assign an image that appears at the top and at the bottom of the menu?

2) if not: is there a way to get the height of the menu that is generated? I have a template that this is going into, and if I can't get an image to appear top and bottom, I need to get the height of the menu so that I can position these images appropriately through CSS. These heights will vary since I have one index.php file for the entire site (approx 120 pages and 9 unique menus)

3) last part: I can't find a lot of documentation on putting the menu in a table and generating it on the fly. Example: can I load all the menu display parameters through the standard menthods of including the .js and .php files and include the menu array data through php includes or switch statements? This way I could have a common set of attributes for all 9 menus.


Poster: Ruth
Dated: Wednesday December 24 2003 - 11:24:41 GMT

There's probably a better way, but you could do this. It's how I did it when I had version 3.
Code:
addmenu(menu=["main",
5,95,150,1,"",navbar,1,"center",,,,,,,,,,,,,1
,"<img src=whateverimage.xxx border=0>","#",,,1
,"This Site","show-menu=mysite",,"",1
,"Contact","show-menu=contact","#",,1
,"Milonic Menus","show-menu=milonic",,,1
,"<img src=whateverimage.xxx border=0>","#",,,1
])


Best of all would be to switch to version 5 which is incredibly versatile, ability to use things like onclass, onfunction, and zillions of things I have no idea what they do, are or how to do them. :lol:

Ruth---Happy Holidays


Poster: Ruth
Dated: Wednesday December 24 2003 - 11:41:59 GMT

Forgot about the table question. Try these. And you can do a search limit it to version 3 and do tables, or placemenu or table cells etc. And, I have no idea about the 2nd part of your ?

http://www.milonic.com/forum/viewtopic.php?t=1734&highlight=placemenu
http://www.milonic.com/forum/viewtopic.php?t=1806&highlight=tables

Ruth


Poster: Gipetto
Dated: Wednesday December 24 2003 - 14:52:20 GMT

Cool, thanks for the reply.

I tried the first thing already - but if you apply padding to the menu it pads the image as well.

I'll have to see if I can apply CSS to the menu items individually and create my spacing that way - if so, then I'll be pretty happy.

Thanks for the other links as well - I'll trundle my way through them.


Poster: Ruth
Dated: Wednesday December 24 2003 - 23:21:15 GMT

It would be easier if you had a test page up kind of showing the image and how you're trying to place it, what you're trying to make it look like. :) I still think you should switch to version 5 since it's so much more up to date on the newer things out there, css especially.

Ruth


Poster: Hergio
Dated: Friday December 26 2003 - 15:23:23 GMT

Way to go helpin out here in the v3, your a machine! ;)


Poster: Gipetto
Dated: Monday December 29 2003 - 15:22:12 GMT

If it does CSS, then it's worth it.
I'll take a look at it today.

Thanks.