How do you begin?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

How do you begin?

Post by Surfergirl »

Hullo

I'm script-challenged - I learn from copying other stuff. What has me stumped is I downloaded some files but I don't know what to type in the body to call them up - there is a mmenudom.js, menu_data.js, milonic_src.js , menuns4.js

I think you put this on the page :

<script language=JavaScript src="/images/menu/milonic/milonic_src.js" type=text/javascript></script>

<script language=JavaScript src="/images/menu/milonic/menu_data.js" type=text/javascript></script>

but nothing comes up - I just want to see the sample I downloaded from Milonic appear on my page.

I put the script path in
//scriptpath="/images/menu/milonic/";
Last edited by Surfergirl on Mon Aug 25, 2003 10:58 pm, edited 1 time in total.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

After downloading the menu, do nothing, open the menu.htm file in your browser. It will appear. Then you can begin by opening menu_data.js and try changing text=YOUR LINK NAME and read more instructions on the website to begin changing the menu.

Everything between
aI("...............");
is a menu item

After the top 8 styles are main menu styles.
ending
}
Followed by styles for submenus.
ending
}
A menu may have its own style.
A menu item may have its own style.

Start slow changing items, save and preveiw in your browser, if you do it wrong the menu won't appear... undo last save.

Read instructions on the site, and search the forum if you run into problems.

When you are ready to put the menu up, then place the script on your page where you want the menu to appear.
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

Part I
Ok, I conceeded and moved everything into the main directory and it works but that won't solve my problem when I start adding folders. I need help with the dir structure. I tried putting in the url and that didn't work. This file is in http://www.adventurescape.com/HortonRea ... nu/milonic - please tell me what to do for the src and the call files

Part II - If I change only one letter on the menu_data.js from the download example it gives 'done but with errors on the page'

this is driving me mad :cry: the wind is blowing and I want to go surfing
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You havent set the scriptpath to point to the directory the menu files are in.
Part II - If I change only one letter on the menu_data.js from the download example it gives 'done but with errors on the page'
Given how many letters there are in that file, would you like us to try and guess which you changed one by one, or would you like to give us more exact information on what exactly is happening?

We are more than willing to help, but you have to do your part, too.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

Thanks - I figured out that I was not saving it in the proper format and that is what gave the error - I feel real stupid. :oops:

I would like some help with the directory paths though - I've read everything on the forum and I still don't get it. I have all this in a temp location until we go live so will hve to change it all again - but I need a lesson in directories pretty please...

http://www.adventurescape.com/hortonrea ... nu/milonic ...
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

For the script src I put : http://www.adventurescape.com/HortonRea ... u/milonic/

I can get to the script on the web at the same address

The menu still isn't coming up on the page .....

But if I put it in the root directory, on the same level as the main index.htm page, without any src it works. I prefer to have it in its own little folder.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

If you weren't out surfing, you might have read to rem the 2 surfboards "//"

;)
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

Maz, I'm not a scripter - what do you mean rem //? I need it spelled out - I'm not catching your wave :}
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Your acriptpath in milonic_src.js is wrong AND it's not being read at all because it is commented out (//). It should look like this...

Code: Select all

scriptpath="/HortonRealty/images/menu/milonic/";
Last edited by John on Tue Aug 26, 2003 6:10 pm, edited 1 time in total.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

Thanks for the pointers -

I took out the // - :roll: script path is now /HortonRealty/images/menu/milonic

Tried 2 ways on the web page - with the absolute path http://.... and the relative path /images/menu/milonic/milonic_src.js - hate to say - neither one pulls up the menu - yikes - I know this works because I saw it work when I had everything in the main directory - all I did was change the paths

while I have your attention - what are the other 2 files in the download for ? mmenudom.js and mmenuns4.js? just curious
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Surfergirl wrote:I took out the // - :roll: script path is now /HortonRealty/images/menu/milonic
Which is incorrect :!: Check my earlier message again. You left out the closing / (which is also mentioned in Andy's notes in the milonic_src file itself :roll: ).
Surfergirl wrote:while I have your attention - what are the other 2 files in the download for ? mmenudom.js and mmenuns4.js? just curious
They are both part of the overall menu code and had better be on your server in the same location as milonic_src :!: :) Specifically, the first is called for use by newer browsers, and the second for older Netscape browsers.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

Hi John
the last / is on the script - I didn't type it on the forum. I'm getting 'done with errors'
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Surfergirl wrote:the last / is on the script - I didn't type it on the forum. I'm getting 'done with errors'
Yep, and you will until you take that miserable // off the front of scriptpath :evil: You made the other changes there, but not that one.

You still have...

Code: Select all

//scriptpath="/HortonRealty/images/menu/milonic/";
Should be...

Code: Select all

scriptpath="/HortonRealty/images/menu/milonic/";
We really need to have a long chat... :D
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

:oops: would you believe I'm blonde?

its still having a problema - will you still help?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Surfergirl wrote::oops: would you believe I'm blonde?
Sure :roll: Would you believe I'm old :?: Shows sometimes, like now.

Try this. Drop the /HortonRealty off the front end of the scriptpath so it looks like this...

Code: Select all

scriptpath="/images/menu/milonic/";
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

sorry I'm giving you gray hair - I've stripped the whole src file down, bare-naked, took off every little /* at the top - it begins like this:


scriptpath="/images/menu/milonic/";

_mDepth=2;

_d=document;_\...............etc etc
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Surfergirl wrote:sorry I'm giving you gray hair - I've stripped the whole src file down, bare-naked, took off every little /* at the top - it begins like this:
BAD idea. What you've done is remove all Andy's required copyright info and notes, and possibly other required code as well. Touch only the scriptpath line.

Get a fresh copy of that file (do NOT try and piece it back together), and edit only scriptpath.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

yikes ! sorry - - ok, brand new copy - looks like

Non profit use of this menu system is free of charge. All Copyright statements must always remain in place
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******

License Number: Un-Licensed

*/

scriptpath="/images/menu/milonic/";

/*
The scriptpath variable stores the path to your menu JS files.

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

Post by John »

Noticed you posted RC8 of milonic_src (BTW, where did you get that version), but the other files are still RC7. Not good to mix.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

I just downloaded it from milonic site - which is the same download area I got the other files about 3 days ago. I've changed it all to the newer files - still with errors... BTW - thanks for all your help !
Post Reply