| Author |
Message |
wilmshurst
Joined: 19 Oct 2003 Posts: 8
|
Posted: Sun Oct 19, 2003 5:30 pm Post subject: Installation Help |
|
|
Downloaded standard version;
ran generator to produce desired menus;
copied code from result and inserted in file called 'menu_items.js';
copied 'coolmenu.js', as downloaded, and pasted into folder containing index file for minimal web page (below) and 'menu_items.js'.
Hoping to produce menus on blank web page;
so far nothing doing.
I have obviously omitted something important!
<hmtl>
<head>
<TITLE>Cool Index</TITLE>
<script language="JavaScript" src="js/coolmenu.js"></script>
<script language="JavaScript" src="menu_items.js"></script>
<link href="/css/coolmenu_styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<script language="JavaScript"">
var menu = new COOLjsMenu("MainMenu", MENU_ITEMS);
</script>
</body>
</html>
I have not yet created 'coolmenu.css' file, referred to in documentation, and have the impression that this may not be necessary. In which case the css line of code is presumably superfluous.
Help gratefully received. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Sun Oct 19, 2003 8:03 pm Post subject: |
|
|
| Quote: | <script language="JavaScript" src="js/coolmenu.js"></script>
|
the coolmenu.js you stated was in the same folder as menu_items ?
yet, you are calling it from a subdir
either change the js/coolmenu.js to just coolmenu.js.. or move the js file to the called subdirectory |
|
| Back to top |
|
 |
wilmshurst
Joined: 19 Oct 2003 Posts: 8
|
Posted: Sun Oct 19, 2003 8:38 pm Post subject: |
|
|
Thanks, Guest.
I had spotted that one and deleted 'js/' - also the extra quote mark after "JavaScript"
<script language="JavaScript"">
Makes no difference still getting a blank web page.
Must be something really stupid. |
|
| Back to top |
|
 |
wilmshurst
Joined: 19 Oct 2003 Posts: 8
|
Posted: Sun Oct 19, 2003 8:53 pm Post subject: |
|
|
| Quote: | | Must be something really stupid |
It was. I had named the file 'menu-items.js' instead of 'menu_items.js'
What a twerp. |
|
| Back to top |
|
 |
|