Posts: 3
Name: Mark
|
I am having some trouble with some web pages and particularly with dropdown menus. Using Dreamweaver's behaviors, I created some dropdown menus on mouse rollover. Everything works fine locally, but when I upload the file to the server to test, the images are incomplete and I get errors both in IE and Firefox.
The IE error says:
Line: 204
Char: 1
Error: Object expected
Code: 0
With Firefox, I get the following errors:
Menu is not defined
MM_showMenu is not defined
MM_startTimeout is not defined
and
uncaught exception: Permission denied to call method Location.toString
I'm guessing that these errors are due to javascript not being found? If so, how is the javascript uploaded to the server? How do you upload the script? What files?
Some of the code is below. I've truncated some of it as there is a lot. In the <head> section, it looks as if the scripts are being defined, but they won't work on the remote versions. Below, I also pasted in the part of the code where the "object expected" error was.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0419160234_0) return;
window.mm_menu_0419160234_0 = new Menu("root",87,20,"",14,"#000000","#FFFFFF","#E8E9 D1","#990000","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
mm_menu_0419160234_0.addMenuItem("About Us"," location='about/about.html'");
mm_menu_0419160234_0.fontWeight="bold";
mm_menu_0419160234_0.hideOnMouseOut=true;
mm_menu_0419160234_0.bgColor='#555555';
mm_menu_0419160234_0.menuBorder=1;
mm_menu_0419160234_0.menuLiteBgColor='#FFFFFF';
mm_menu_0419160234_0.menuBorderBgColor='#777777';
window.mm_menu_0419162749_0 = new Menu("root",87,20,"",14,"#000000","#FFFFFF","#FFFF FF","#990000","left","middle",3,0,150,-5,7,true,false,true,0,true,true);
mm_menu_0419162749_0.addMenuItem("About Us"," location='about/about.html'");
mm_menu_0419162749_0.fontWeight="bold";
mm_menu_0419162749_0.hideOnMouseOut=true;
mm_menu_0419162749_0.bgColor='#555555';
mm_menu_0419162749_0.menuBorder=1;
mm_menu_0419162749_0.menuLiteBgColor='#FFFFFF';
mm_menu_0419162749_0.menuBorderBgColor='#777777';
window.mm_menu_0419162913_0 = new Menu("root",145,20,"",14,"#000000","#FFFFFF","#FFF FFF","#990000","left","middle",3,0,150,-5,7,true,false,true,0,true,true);
mm_menu_0419162913_0.addMenuItem("Skin Cancer Info","location='skin_cancer/skin-cancer.html'");
mm_menu_0419162913_0.addMenuItem("Skin Cancer FAQs","location='skin_cancer/skin-cancer-faqs.html'");
mm_menu_0419162913_0.addMenuItem("Mohs Surger y","location='skin_cancer/mohs.html'");
mm_menu_0419162913_0.fontWeight="bold";
mm_menu_0419162913_0.hideOnMouseOut=true;
mm_menu_0419162913_0.bgColor='#555555';
mm_menu_0419162913_0.menuBorder=1;
mm_menu_0419162913_0.menuLiteBgColor='#FFFFFF';
mm_menu_0419162913_0.menuBorderBgColor='#777777';
window.mm_menu_0419164153_0 = new Menu("root",109,20,"",14,"#000000","#FFFFFF","#FFF FFF","#990000","left","middle",3,0,150,-5,7,true,false,true,0,true,true);
mm_menu_0419164153_0.addMenuItem("Clinical Tr ials","location='clinical/trials.html'");
mm_menu_0419164153_0.fontWeight="bold";
mm_menu_0419164153_0.hideOnMouseOut=true;
mm_menu_0419164153_0.bgColor='#555555';
mm_menu_0419164153_0.menuBorder=1;
mm_menu_0419164153_0.menuLiteBgColor='#FFFFFF';
mm_menu_0419164153_0.menuBorderBgColor='#777777';
window.mm_menu_0419164235_0 = new Menu("root",137,20,"",14,"#000000","#FFFFF
Error on page - "Object expected"
<td valign="top"><a href="../about/about-us.html"><img src="../graphics/homenav_about-2.gif" name="image1" width="100" height="30" border="0" id="image1" onMouseOver="MM_showMenu(window.mm_menu_0419162749 _0,10,30,null,'image1')" onMouseOut="MM_startTimeout();"></a><a href="../skin_cancer/skin-cancer-overview.html"><img src="../graphics/homenav_cancer-2.gif" name="image2" width="100" height="30" border="0" id="image2" onMouseOver="MM_showMenu(window.mm_menu_0419162913 _0,5,30,null,'image2')" onMouseOut="MM_startTimeout();"></a><a href="../clinical/clinical-trials.html"><img src="../graphics/homenav_clinical-2.gif" name="image3" width="120" height="30" border="0" id="image3" onMouseOver="MM_showMenu(window.mm_menu_0419164153 _0,5,30,null,'image3')" onMouseOut="MM_startTimeout();"></a><a href="cosmetic-about.html"><img src="../graphics/homenav_cosmetic-2.gif" name="image4" width="152" height="30" border="0" id="image4" onMouseOver="MM_showMenu(window.mm_menu_0419164235 _0,5,30,null,'image4')" onMouseOut="MM_startTimeout();"></a><a href="../office/office-information.html"><img src="../graphics/homenav_office-2.gif" name="image5" width="190" height="30" border="0" id="image5" onMouseOver="MM_showMenu(window.mm_menu_0419164507 _0,5,30,null,'image5')" onMouseOut="MM_startTimeout();"></a><a href="../staff/gladstone.html"><img src="../graphics/homnav_staff-2.gif" name="image6" width="120" height="30" border="0" id="image6" onMouseOver="MM_showMenu(window.mm_menu_0419164614 _0,5,30,null,'image6')" onMouseOut="MM_startTimeout();"></a></td>
</tr>
I'd appreciate any help I can get.
Thank you!
|