JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installation Help

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
wilmshurst



Joined: 19 Oct 2003
Posts: 8

PostPosted: Sun Oct 19, 2003 5:30 pm    Post subject: Installation Help Reply with quote

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





PostPosted: Sun Oct 19, 2003 8:03 pm    Post subject: Reply with quote

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

PostPosted: Sun Oct 19, 2003 8:38 pm    Post subject: Reply with quote

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

PostPosted: Sun Oct 19, 2003 8:53 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1