PDA

View Full Version : Need local path instead of URL


calabama
03-29-2003, 04:30 AM
Hello,
I am trying to modify a Hierarchical drop down menu script written in javascript. I need to use a local machine path rather than a URL ie: http:// for the address.

This is a single menu example of the code.

oCMenu.makeMenu('top12','','NewsLetter','http://www.vspms.com/communicate')

I just dont know enough about javascript to know if it can be done.

Thanks for any help
Cal

tpeck
03-29-2003, 09:10 AM
why doesn't c:\folder\page.html work? I mean, you can't know where the page is on someone else's machine, but doesn't this do it?

tpeck
03-29-2003, 09:18 AM
I'm no genius, but I did a test in Frontpage with the following code between the body tags:

<body>

<p><a href="file:///C:/test.gif">test1</a></p>

<p><a href="file:///C:/test.html">test2</a></p>

</body>

Maybe you need "file:///C:/whatever................"

Good luck!