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: Thursday February 8 2018 - 06:02:39

Set URLs

Poster: Two5kid
Dated: Thursday August 8 2002 - 18:54:51 BST


I have one question. Can we set the base URLs for all the links?

For example,
My base URL would be
Do I need to insert the whole URL into every menu string?
As I have a couple of Subdirectories too.



Poster: Two5kid
Dated: Sunday August 11 2002 - 10:04:27 BST

I think I need to rephrase my question as no one is answering me. :)

Well, what I want to know is that whether I can have a base URL for all the links within the Milonic Menu. Since I have a long URL : it would be silly to type it out on every link.

For example:

What I want is to only type "/Arsenal/arsenal.html" , instead of everything because I have "/Juventus/juventus.html" too.

Is there a line on the menu where I can just enter the base URL which is, since it's going to appear in each and every link.

Poster: Andy
Dated: Sunday August 11 2002 - 17:49:22 BST

This should be easy.

Set the base URL at the top of the array with this

Code: Select all


Then each menuitem needs to have this value added like this

Code: Select all

,"Menu Item", baseurl+"Arsenal/arsenal.html",,,1
......and so on

Hope this helps

Which Line?

Poster: Two5kid
Dated: Sunday August 11 2002 - 18:31:19 BST

Thanks for the reply, that would have saved me a lot of trouble. Anyway, to which line should I set the 'baseurl' code?

Right above "Time Delay"?
or at the "Reserved for Future Use"?

Poster: Andy
Dated: Sunday August 11 2002 - 18:53:16 BST

Anyline will do, Somewhere at the top of the code before your first menu item.

-- Andy


Poster: Two5kid
Dated: Monday August 12 2002 - 12:19:19 BST

Thanks a lot for the help.

Poster: John
Dated: Monday August 12 2002 - 19:39:48 BST

FWIW, I did what you were after without setting a base. Since the server already knows 'where it is' (base, if you will), I was simply able to go after my images and links from there; e.g., /sai/graphics/home.jpg, /sai/staff/calendar/, etc. No problems.

You Meant

Poster: Two5kid
Dated: Thursday August 22 2002 - 17:27:22 BST

Err... You mean I don't have to set the urls?

For instance, if I want to jump from one directory to another?
Say, from baseurl/Arsenal/ to baseurl/Juventus/ ?

Usually, in HTML, you can't do so as the browser would search for
baseurl/Arsenal/Juventus/ . Do you know what I mean?

Re: You Meant

Poster: John
Dated: Thursday August 22 2002 - 22:37:24 BST

Two5kid wrote:Err... You mean I don't have to set the urls?

Just past the base. For instance, I have a menu running at No base is specified in the code. To get to another location on the same server would be something like this snip...

Code: Select all

,"Bulletin Board","/sai/staff/ads/",,,1
,"Energy-Wise Tips","/sai/staff/energy.cfm",,,1


Note that I have added the /sai/ again. That's only because of the way our servers are set up. Same is true for graphics...

Code: Select all


Nifty stuff.

Also note that, obviously, if you go off-server you will need the entire URL :!:


Poster: dikonstrukt
Dated: Sunday October 6 2002 - 5:33:51 BST

jgillett...thanks so much! was exactly the problem i was having and this solved it

:D :D :D :D :D

Poster: John
Dated: Monday October 7 2002 - 19:41:52 BST

Glad to hear it!

That'll be $2 please... :mrgreen: