Hi Ruth,
Thanks for all your help, you have been very helpful. We did figure out the SSL issue, when I was editing my post you were replying.
Your example did centre the menu perfectly just as needed but kinda created a new problem.
1) We are going to be using a global folder for all menus, so every menu, regardless where it is located on the site it always refers to one global folder for its resources.
public_html/menu/js/mmenudom.js
public_html/menu/js/milonic_src.js
public_html/menu/js/menu_data.js
public_html/menu/js/mmenuns4.js
This way we can edit/add/remove a menu items or its properties, at the main folder (www/menu/) and it will effect all menus on the site.
In your example:
Code: Select all
position="relative";
aI("status=Back To Home Page;text=Home;url=http://milonic.com/;");
aI("showmenu=Milonic;text=Milonic;");
aI("showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=MyMilonic;text=My Milonic;");
}
drawMenus();
the embedded code defines specific menu items, is there a way to import the data from a file? So if we wanted to change say "partners" to "Sponsors" for example then we would have to be changed on every page which would be alot of work.
Another thing is that its not just a simple reference to a resource file. We cant use a set absolute path that is http:// that will cause warnings in https://, we cant use absolute https:// as it will slow down the page for users that are using http://
Likewise we cant use relative path (../menu/js) because there based on current location and will fail if they go deeper and deeper.
I suppose if we could php to define a homepath set in a variable, such as
Code: Select all
$menupath = "/home/insarnia/www/menu/";
Then anytime the menu is called we just use that variable
Do you have any ideas how I can pull this off? I dont even know if we can pass the var from php to html or java and it keep the same browser compatible.
If you can take a quick look at
http://insarnia.ca/menu/
as you see now theres 2 menus

but the bottom one works perfect just as you said. If I understand you right Ruth, then all I need to do to remove the top menu is remove the following code from menu_data.js
Code: Select all
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("status=Back To Home Page;text=Home;url=http://milonic.com/;");
aI("showmenu=Milonic;text=Milonic;");
aI("showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=MyMilonic;text=My Milonic;");
}
It appears to be working anyways, and is centred just right. Is there anything else I need to modify with respect to implementing the chunk of code I took from the js and placed in the table on the page?
Well Ruth that you so much, you have been so helpful, your so right about how great these are, if it wasnt for this ssl I would be able to start making the menu looks great and fit on.
All I really need is 1 template page with the menu working and we can get a license, and I can start making menu items and add the page content
Thanks again Ruth, your awesome!
Kendra