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 

Beginner needs help installing menu

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



Joined: 22 May 2007
Posts: 2

PostPosted: Tue May 22, 2007 5:45 pm    Post subject: Beginner needs help installing menu Reply with quote

Hello,
I hope someone can help me figure out what I am doing wrong. I have followed the steps for installing, but after loading to a test-site the menu does not appear and the error is: 'MENU_ITEMS' is not defined.

I have uploaded the following:
b.gif
coolmenu.js
coolmenu_tight_compression.js
menu_items.js
menu_styles.css
mmenu.js


The code of my test html document is:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0">
<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<link rel="stylesheet" type="text/css" href="design_antiquities.css">

<script type="text/javascript" src="coolmenu.js"></script>
<script type="text/javascript" src="menuitems.js"></script>

</head>

<body>
<div align="center">
<table border="0" cellpadding="5" width="100%" id="table1" style="border-top-width: 0; border-bottom: 3px double #000099">
<tr>
<td>
<img border="0" src="fotologo1.jpg" width="250" height="116" align="left"></td>
<td>
<p align="center">
<img border="0" src="tekstlogo1.jpg" width="300" height="122"></td>
<td>
<img border="0" src="fotologo1rev.jpg" width="250" height="116" align="right"></td>
</tr>
</table>
</div>

<div align="center">
<table border="0" cellpadding="15" width="85%" id="table2" style="border-top-width: 0">
<tr>
<td align="center"><h1>TITEL </h1></td>
</tr>
</table>
</div>


<script type="text/javascript">
var menu = new COOLjsMenu("MainMenu", MENU_ITEMS);
</script>
</body>
</body>

</html>


Thanks !
reyubtra
Back to top
reyubtra



Joined: 22 May 2007
Posts: 2

PostPosted: Tue May 22, 2007 6:25 pm    Post subject: Additional question Reply with quote

Can this menu be adapted so that the menu bar stays visible on the left of the screen when scrolling down ?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed May 23, 2007 11:44 am    Post subject: Reply with quote

You've uploaded menu_items.js, but then your code refers to menuitems.js (i.e. no underscore).

Pro can do this, but with additional scripting (IE6 needs it). However, if you don't care about IE6, you can switch Pro into relative positioning mode, and then put it into some <div style="position: fixed;">.
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