Recently we began a project where the decision to add pop-up menus was made after the Fireworks stage of the template creation, so we designed our pop-ups from within Dreamweaver MX 2004 itself. To clear some of the specifics and eliminate some of the preliminary questions, we know that Dreamweaver does not dynamically update links from within popup menus so we designed them with absolute URL's for the images and for the links. Once created, the menu previewed fine on my machine (the creator) and the synchronized site works fine on my machine also, however, it will not work correctly on any other machine we try it on. The rollover effects work fine, but the popup menus do not appear on the other machine and Javascript errors are produced.
The site can be found at:
http://www.tworiverspublichealth.com
The following are the errors we are seeing:
Line: 18
Char: 27
Error: 'Menu' is undefined
and on every menu item we get:
Line: 159 (different line numbers for different errors)
Char: 220 (also different for different errors)
Error: Object Expected
A quick background on how the menus were designed. Initially, I created all of the rollover effects for the image changes first. I then used the Pop-Up menu creator incorporated with Dreamweaver to create each popup menu. Each image also has a unique id="" and name="" identifier, so there are no conflicts.
Here is the code generating the first error:
<!--
function mmLoadMenus() {
if (window.mm_menu_1022144510_0) return;
window.mm_menu_1022144510_0 = new Menu("root",137,18,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#FFFFFF","#E6E6E6","#0842A5", "left","middle",4,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1022144510_0.addMenuItem("Board of Health","location='http://www.tworiverspublichealth.com/About/Board.htm'");
mm_menu_1022144510_0.addMenuItem("Staff","location ='http://www.tworiverspublichealth.com/About/Staff.htm'");
The Errors for subsequent menu items are generated in the following lines:
<tr>
<td height="30" bgcolor="#E7E7E7"><img src="http://www.tworiverspublichealth.com/images/template/menu/MenuTemplate_r4_c1.gif" name="programs" width="153" height="30" border="0" id="programs"></td>
<td><img src="http://www.tworiverspublichealth.com/images/template/menu/MenuTemplate_r3_c2.gif" name="programsarrow" width="28" height="30" id="programsarrow"></td>
</tr>
Any help would be greaty appreciated.
Thanks,
Dustin Horne
Web Designer I
IntelliCom Computer Consulting, Inc.
[email protected]
Dustin Horne
Web Designer I
IntelliCom Computer Consulting, Inc.
http://www.intellicominc.com
[email protected]