ellwood
Newbie
Posts: 1
Registered: 10/31/2005
Location: Denmark
Member Is Offline
|
| posted on 10/31/2005 at 09:27 PM |
|
|
Menufiles folder stuck with menu.htm file
I am new to Tigra.
I have created an index.htm file and populated it in accordance with the 'export' description.
SNIP
<head>
<title></title>
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/menu_items.js"></script>
<script language="JavaScript" src="menu_files/menu_tpl.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Harja.dk Forside</title>
<style type="text/css">
<!--
body {
background-image: url(Grafik/baggrund.gif);
}
-->
</style></head>
SNIP
<tr>
<td width="78" bgcolor="#E7CEA5"><div align="right"></div></td>
<td bgcolor="#E7CEA5">
<div align="center">
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
</div>
</td>
</tr>
SNIP
Also the .js and .css files have been populated with the export text.
I had to copy an 'menu.js' file from a demo into the 'menu_files' folder to get things working.
I also have an menu.htm file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Tigra Menu Test</title>
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/menu_items.js"></script>
<script language="JavaScript" src="menu_files/menu_tpl.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
</body>
</html>
For some reason if I delete the 'menu.htm' file the 'menu_files' folder is also deleted.
And if I don't copy the 'menu.htm' into my subfolders, my subfolder html files including the menu construction won't work.
As soon as I copy the 'menu.htm' file to the subfolder the 'menu_files' folder is also copied to the subfolder.
Is there some link here in the 'menu.js' file that I am not aware of?
Ellwood
|
|
|
tigra
Administrator
Posts: 1963
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/11/2005 at 05:25 AM |
|
|
Yes, there is a link between those names in windows. When you save some page from IE it will create the directory with the same name as HTML file but
with the _files at the end and it will copy all linked resources in that folder. Then it will treat HTML file and directory as one file. In your case
windows believes that the file and folder were saved from the web. Just don't create menu.html file and you'll be fine.
|
|
|