Resource Folder Or Web Paths?
This page provides information on the Resource Folder feature which is new in Version 8. On the second tab, there is information on the Web Path feature with which many DHTMLMenu users are familiar. You must be using Version 8.1 or higher in order to have the Web Path Option.
The Resource Folder
When you open the DHTMLMenu program, one of the first things you will notice after the Startup screen is the Resource Folder:

In previous versions of DHTMLMenu, those who wanted to preview a menu locally during site development had to set the paths as local paths (i.e., C:\mysite\menu) and then change them to Web paths before publishing the menu. The Resource Folder makes it possible to preview a menu locally and have it work on a Web server without changing paths. However, in order for the Resource Folder to work, you must have a similar directory structure on you local system and your Web server, and you must site the site root correctly. For example, if the address of your Web site is http:.//mydomain.com/mysite and your local directory structure is C:\websites\mydomain.com\mysite, you would set the Site Root as C:\websites\mydomain.com. Once you have set the Site Root correctly, in order for the link code to function locally and on the Web, the program generates link code similar to the following:
<script type="text/javascript" id="sothink_dhtmlmenu"> <!--
st_siteroot="file:///C|/websites/mydomain.com";
st_jspath="/js/stmenu.js";
if(!window.location.href.indexOf("file:") && st_jspath.charAt(0)=="/")
document.write('<script type="text/javascript" src="'+st_siteroot+st_jspath+'"><\/script>');
else
document.write('<script type="text/javascript" src="'+st_jspath+'"><\/script>');
//--> </script>
Web Path
While the Resource Folder may be useful for some, we believe
that most professional developers will prefer to use the Web
paths that were available in previous versions of the program.
Sothink has taken that into consideration, and in the upper right
corner of the Resource Folder panel (Version 8.1 and higher),
there is an icon for advanced users
.
Click on that icon and you will see the familiar Web Path panel. We suggest entering a path for both JavaScripts and Images. If you want to preview your pages locally during site development, set the paths as local paths (i.e., C:\mysite\menu) but, before publishing the menu, use absolute paths (i.e., http://mydomain.com/mysite/menu/) for JavaScript path and Image path.

