Thanks for the reply.
Index.html works fine from both local path and when copied on a webserver.
Based on the documentation i tried to create a testpage.htm on the web server to test the menu. i get the error type mismatch at line 14.
the url www.mysite/hmenu/index.html works fine
but www.mysite/hmenu/testpage.htm doesnt work.
copied all the files to hemu directory on the web server.
Let me know if i am doing anything wrong.
The test page(testpage.htm) code is as follows:
- ------------------------------------------------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- load the menu stylesheet -->
<style type="text/css">
@import url("src/skin-xp.css");
</style>
<!-- declare the menu location -->
<script type="text/javascript">
_dynarch_menu_url = "/src/";
</script>
<!-- load the menu program file -->
<script type="text/javascript" src="src/hmenu.js"></script>
<!-- [ ... ] your HEAD declarations here -->
</head>
<body onload="DynarchMenu.setup('menu')">
<table>
<tr>
<td>
<select name="ts"></select>
</td>
</tr>
<table>
<ul id="menu" style="display: none">
<li title="Contains file operation options">
_File
<ul>
<li>
<a href="javascript:doOpen();" title="Open a new file">
_Open
</a>
</li>
<li>
<a href="javascript:doSave();" title="Save the current file">
_Save
</a>
</li>
<li>
<a href="javascript:doSaveAs();" title="Save as a new file">
Save _as...
</a>
</li>
</ul>
</li>
<li title="Links to other sites">
_Links
<ul>
<li>
<img src="icons/mozilla.gif" alt="" />
<a href="http://www.mozilla.org"
title="Mozilla browser (opens new window)"
target="_blank">
_Mozilla
</a>
</li>
<li>
<img src="icons/opera.gif" alt="" />
<a href="http://www.opera.com" title="Opera browser">_Opera</a>
</li>
</ul>
</li>
</ul>
<script type="text/javascript">
//<![CDATA[
document.writeln("<style type='text/css'>#menu { display: none; }</style>");
//]]>
var mnu =document.getElementById("menu")
alert(mnu.innerHTML)
mnu.style.display="none"
</script>
</body>
</html>
- ------------------------------------------------------------------------------------------------------