Can I change milonic menu to index.htm and put in root?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Can I change milonic menu to index.htm and put in root?

Post by whiskey3 »

I originally had version 5 horizontal.htm and configed it my way and renamed it to menu.htm.
Can I change it to index.htm and the menu.js file to index.js and upload them to my server and will it act as the index page correct?

Thanks.
Wolf
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

You can change the horizontal.htm file name without any problem. Some servers prefer default.htm or index.htm though. It all depends on whether you want to promote your web address as:

http://www.mywebsite.com

or

http://www.mywebsite.com/menu.htm

We always try and keep the JS names the same. That way, if you have any problems the experts on here know which files they are looking at.

But, in general, there is no problem with changing the name.

Andy
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

Thanks. That's what I thought. I will change it to index.
Do the mmenudom.js and mmenus4.js also have to be in the root for the navbar to work?
Wolf
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

It all depends on how you've linked them to other web pages. I keep them all in the root folder and have not had any problems.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

whiskey3 wrote:Do the mmenudom.js and mmenus4.js also have to be in the root for the navbar to work?
No, they don't. That's what milonic_src.js is for. Seems we've been through this one a few threads back. Read Andy's notes there concerning its use.
John
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

Site check please...

I put my stuff in the root:

http://www.moldex.com/new/index.htm

and my nav bar isn't showing up?

I tried putting in the index page the path "htttp://www.moldex.com/new/ etc. for the .src and .js and I can't get it to work?
Wolf
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Your scriptpath variable (inside milonic_src.js) is set incorrectly. :oops: Its still set to some local path, fix that and you're good to go.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

I set the milonic_src.js file to:

http://www.moldex.com/new/index.js

and still nothing?

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

Post by John »

Wolf, old boy,I'm going to get just a tad annoyed here :} . We've discussed this many times. Did you read Andy's comments in the milonic_src file as I suggested? In particular...
  • You need to declare the path to the script as a standard directory structure format
    but you must use / for both Windows and Unix file systems and you must end with a /
It says, "...end with a /". Therefore, http://www.moldex.com/new/index.js has to be wrong.

Assuming you have all the menu code files in /new/, the correct entry would be this...

Code: Select all

scriptpath="/new/";
Sorry for jumpin' at ya, but you're really making this a lot harder than it is. Read the information provided in the files, and the answers a lot of folks have been giving you here. We're here to help, and gladly at that, but you need to listen. Fair :?:
John
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

Thanks a bunch it worked....but now my navbar isn't showing up.

Look I'm sorry that was a bad error on my case but you have to understand I had this whole site coded with version 3 and had to redo to 5 and 5 has been a pain a little bit and I'm under a deadline and I just want to get it going.....so I'm a lttle stressed. :)

I just need help with this other version.

Now I don't know why the navbar isn't showing up at all GRRRRRRR!!!
Wolf
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Try leaving your JS files in the root and not declaring the scriptpath.

Although I haven't properly published a V5 menu (I'm in exactly the same boat as you) yet, I have not made any changes.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I just visited your site and the src tags for the menu are empty... I dont know if you pulled them out for testing or what. But like John said and I emailed you about, your script path is a path, not a file. A tip that helps me sometimes is always use fully qualified names. What John said with the /new/ is correct, but for my own sanity, I use http://www.mydomain.com/new/ so I know I referencing exactly where I think I am. You put all your menu files into that directory and when you reference the files from your pages, I always use <SCRIPT src='http://www.mydomain.com/new/milonic_src.js'></SCRIPT>
Hope we are able to help you and get your stuff in by the dead line.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

Yeah I was changing things when you checked. I might go back to the old menu since it was working.........and I'm close to a deadline and you know how they say "don't fix things if they ain't broken."

I'm having problems getting it to work in the index even though I tried:

<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="index.js" type=text/javascript></SCRIPT>

or this:

<SCRIPT language=JavaScript src="http://www.moldex.com/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://www.moldex.com/index.js" type=text/javascript></SCRIPT>

And on your old post I stll can't figure out how to get rid of the arrows from the top of the navbar but I still want them in the bottom submenus still?

For reference try to look at this link now:

http://www.moldex.com/new/navbar/menu.htm

I'm going back to the old one version 3 here:

http://www.moldex.com/new/index.htm
Wolf
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I am not going to repeat all the stuff I said in that other post since its pretty much what you need to do. Styles have subimages defined in them, and you have one style for BOTH your top and sub menus. You need to create a NEW style (with NO subimage defined in it) and make your top most menus reference that NEW style. Take a look at the examples Andy has for the new menu in the RC5 section, the menu you see with all the different colors utilizes multiple styles...thats what you need to do, have more than one style.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

I look at that thanks. :)
Wolf
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Check out this post, I think I hit on this previously with someone.
http://www.milonic.com/menu/forum/viewtopic.php?t=2064
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

Thanks a bunch. It will help.
Due to time constraints and deadline I had to go back to version 3.

http://www.moldex.com/new/index.htm

I will move to new version after the site is moved over with DNS and I have more time to code......I had to make deadline and I was having a learning curve going to 5 cause I guess I was so used to 3.

Could you please tell me how to move the navbar over to the right.
I enter numbers in the menu_array.js file for menu left but can't seem to get it to work. If you go to my link you can see that the navbar should be moved over to the right a little bit underneath the flash animation header.

Thanks to the forum for all the help.
Wolf
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Looks pretty good to me, almost barely noticable. Looking at your code, I dont see any obvious reason it shouldnt be heeding to your commands. If you want to try and put a space (&nbsp;) somewhere in your menu labels to tweak it some, that may be something you could try.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
whiskey3
Super Advanced
Super Advanced
Posts: 79
Joined: Fri Jul 18, 2003 8:47 pm

Post by whiskey3 »

So you mean I can't move it to the right but just add spaces in the code for the top menu to widen it?
Wolf
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

you SHOULD be able to move it to the right. Change the menu left from 200 to like 202. But if that doesnt work. try putting a space on the end of one of the labels. it might widen your menu some to make it look more centered. If it makes it too wide, move the menu to the left alittle so it looks little wider than the flash banner.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply