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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

Linking Menu to Local file/folder


Poster: Inphluence
Dated: Tuesday November 24 2009 - 22:33:54 GMT

Hello,

I'm trying to link a few of my menus to a local file or folder.

with(milonic=new menuname("Media")){
style=menuStyle;
aI("text=DVDs;url=C:\Documents and Settings\All Users\DVDs;");
aI("text=Music;url=C:\Documents and Settings\All Users\Music;");
}

So the above link ends up coming up as a page cannot be displayed. I'm not doing anything more than just opening a folder on a drive and/or linking to a Excel sheet to pull up.

Thanks in advance.

JJ

Re: Linking Menu to Local file/folder


Poster: Andy
Dated: Wednesday November 25 2009 - 10:06:51 GMT

Hi,

You'll need to use the file protocol for linking to local files, so change C:\ to file:///c:/

Also, note that we need to swap the \ character for the / character

Here's how you can do this:

Code:
with(milonic=new menuname("Media")){
style=menuStyle;
aI("text=DVDs;url=file:///c:/Documents and Settings/All Users/DVDs;");
aI("text=Music;url=file:///c:/Documents and Settings/All Users/Music;");
}




HTH,
Andy

Re: Linking Menu to Local file/folder


Poster: Inphluence
Dated: Wednesday November 25 2009 - 17:33:30 GMT

OMG Andy, I love you!

I scoured the net all day yesterday with everyone saying that you can't do it. Your support alone was worth the price of admission, thank you sir!

JJ