Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop-down menu scripting error

Status
Not open for further replies.

spriggan2005

Programmer
Jan 17, 2005
18
AU
Hello, hope anyone can help me.

I'm having trouble to get drop-down menu to show. It appears to me its do with Javascript error.

When I put this <script language="JavaScript"> inside index page, saved it & preview it, the drop menu showed up.

Then I uploaded it to server, not showing up. Went back to DW to check that code I always get this:
<script language="Script">

I have enclosed sample of codes for my index page.

Any assistance would be greatly appreciated.

Regards,
Mark

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "<!doctype html public "-//W3C//DTD HTML 4.0//EN">
<!doctype html public "-//W3C//DTD HTML 4.0 Strict//EN">

<html>
<head>
<title>Mapp &amp; Hession Pharmacy</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Nov 02 20:27:19 GMT+1000 (E. Australia Standard Time) 2004-->
<script language="Script">
<!--
function mmLoadMenus() {
if (window.mm_menu_1017141859_0) return;
window.mm_menu_1017141859_0 = new Menu("root",113,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_1017141859_0.addMenuItem("Diseases","window.open('diseases.htm', 'main');");
mm_menu_1017141859_0.addMenuItem("Women's&nbsp;Health","window.open('women_health.htm', 'main');");
mm_menu_1017141859_0.addMenuItem("Men's&nbsp;Health","window.open('men_health.htm', 'main');");
mm_menu_1017141859_0.addMenuItem("Seniors","window.open('seniors.htm', 'main');");
mm_menu_1017141859_0.addMenuItem("Diabetes","window.open('Diabetes.htm', 'main');");
mm_menu_1017141859_0.addMenuItem("Quit&nbsp;Smoking","window.open(' 'main');");
mm_menu_1017141859_0.addMenuItem("Head&nbsp;Lice","window.open(' 'main');");
mm_menu_1017141859_0.hideOnMouseOut=true;
mm_menu_1017141859_0.bgColor='#663366';
mm_menu_1017141859_0.menuBorder=0;
mm_menu_1017141859_0.menuLiteBgColor='#ffffff';
mm_menu_1017141859_0.menuBorderBgColor='#ff9933';
window.mm_menu_1017141859_1 = new Menu("root",140,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_1017141859_1.addMenuItem("What&nbsp;vaccinations?","window.open(' 'main');");
mm_menu_1017141859_1.addMenuItem("Treating&nbsp;Bali&nbsp;Belly","window.open(' 'main');");
mm_menu_1017141859_1.addMenuItem("Travel&nbsp;hints&nbsp;and&nbsp;tips","window.open(' 'main');");
mm_menu_1017141859_1.hideOnMouseOut=true;
mm_menu_1017141859_1.bgColor='#663366';
mm_menu_1017141859_1.menuBorder=0;
mm_menu_1017141859_1.menuLiteBgColor='#ffffff';
mm_menu_1017141859_1.menuBorderBgColor='#ff9933';
window.mm_menu_1017141859_2 = new Menu("root",163,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","right","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_1017141859_2.addMenuItem("Pregancy&nbsp;Problems","window.open(' 'main');");
mm_menu_1017141859_2.addMenuItem("Breastfeeding","window.open(' 'main');");
mm_menu_1017141859_2.addMenuItem("Immunisation","window.open(' 'main');");
mm_menu_1017141859_2.addMenuItem("Common&nbsp;Baby&nbsp;Problems","window.open(' 'main');");
mm_menu_1017141859_2.addMenuItem("Fact&nbsp;Sheets","window.open(' 'main');");
mm_menu_1017141859_2.hideOnMouseOut=true;
mm_menu_1017141859_2.bgColor='#663366';
mm_menu_1017141859_2.menuBorder=0;
mm_menu_1017141859_2.menuLiteBgColor='#ffffff';
mm_menu_1017141859_2.menuBorderBgColor='#ff9933';
window.mm_menu_0112165355_0 = new Menu("root",113,18,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#000000","#663366","#99CC00","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0112165355_0.addMenuItem("Vitamins");
mm_menu_0112165355_0.addMenuItem("Herbs");
mm_menu_0112165355_0.addMenuItem("Homeopathy");
mm_menu_0112165355_0.addMenuItem("Aromatherapy");
mm_menu_0112165355_0.hideOnMouseOut=true;
mm_menu_0112165355_0.bgColor='#663366';
mm_menu_0112165355_0.menuBorder=0;
mm_menu_0112165355_0.menuLiteBgColor='#FFFFFF';
mm_menu_0112165355_0.menuBorderBgColor='#FF9933';

window.mm_menu_0921011115_0 = new Menu("root",113,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0921011115_0.addMenuItem("Diseases","window.open('diseases.htm', 'main');");
mm_menu_0921011115_0.addMenuItem("Women's&nbsp;Health","window.open('women_health.htm', 'main');");
mm_menu_0921011115_0.addMenuItem("Men's&nbsp;Health","window.open('men_health.htm', 'main');");
mm_menu_0921011115_0.addMenuItem("Seniors","window.open('seniors.htm', 'main');");
mm_menu_0921011115_0.addMenuItem("Diabetes","window.open('Diabetes.htm', 'main');");
mm_menu_0921011115_0.addMenuItem("Quit&nbsp;Smoking","window.open(' '_blank');");
mm_menu_0921011115_0.addMenuItem("Head&nbsp;Lice","window.open(' '_blank');");
mm_menu_0921011115_0.hideOnMouseOut=true;
mm_menu_0921011115_0.bgColor='#663366';
mm_menu_0921011115_0.menuBorder=0;
mm_menu_0921011115_0.menuLiteBgColor='#ffffff';
mm_menu_0921011115_0.menuBorderBgColor='#ff9933';
window.mm_menu_0921012626_1 = new Menu("root",140,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0921012626_1.addMenuItem("What&nbsp;vaccinations?","window.open(' '_blank');");
mm_menu_0921012626_1.addMenuItem("Treating&nbsp;Bali&nbsp;Belly","window.open(' '_blank');");
mm_menu_0921012626_1.addMenuItem("Travel&nbsp;hints&nbsp;and&nbsp;tips","window.open(' '_blank');");
mm_menu_0921012626_1.hideOnMouseOut=true;
mm_menu_0921012626_1.bgColor='#663366';
mm_menu_0921012626_1.menuBorder=0;
mm_menu_0921012626_1.menuLiteBgColor='#ffffff';
mm_menu_0921012626_1.menuBorderBgColor='#ff9933';
window.mm_menu_0921012859_2 = new Menu("root",163,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","right","middle",3,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0921012859_2.addMenuItem("New&nbsp;item");
mm_menu_0921012859_2.hideOnMouseOut=true;
mm_menu_0921012859_2.bgColor='#663366';
mm_menu_0921012859_2.menuBorder=0;
mm_menu_0921012859_2.menuLiteBgColor='#ffffff';
mm_menu_0921012859_2.menuBorderBgColor='#ff9933';
window.mm_menu_0113041212_0 = new Menu("root",111,18,"Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#663366","#99cc00","left","middle",3,0,100,-5,7,true,true,true,0,true,true);
mm_menu_0113041212_0.addMenuItem("Vitamins","window.open('vitamins.htm', 'main');");
mm_menu_0113041212_0.addMenuItem("Herbs","window.open('herbs.htm', 'main');");
mm_menu_0113041212_0.addMenuItem("Homeopathy","window.open('homeopathy.htm', 'main');");
mm_menu_0113041212_0.addMenuItem("Aromatherapy","window.open('aromatherapy.htm', 'main');");
mm_menu_0113041212_0.hideOnMouseOut=true;
mm_menu_0113041212_0.bgColor='#663366';
mm_menu_0113041212_0.menuBorder=0;
mm_menu_0113041212_0.menuLiteBgColor='#ffffff';
mm_menu_0113041212_0.menuBorderBgColor='#ff9933';

mm_menu_0113041212_0.writeMenus();
} // mmLoadMenus()

//-->
</script>
<script language="JavaScript1.2" src="mm_menu.js"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
-->
</style>
<meta name="description" content="We now have private natural consultations every Monday. Please phone for an appointment">
</head>
<body>

<div align="left">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="800" border="0" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="mockup.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="images/spacer.gif" width="7" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="129" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="9" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="247" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="54" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="59" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="71" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="62" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="55" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="50" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="57" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td colspan="11"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="800" height="180">
<param name="movie" value="flash/topnav.swf">
<param name="quality" value="high">
<embed src="flash/topnav.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="800" height="180"></embed>
</object></td>
<td><img src="images/spacer.gif" width="1" height="181" border="0" alt=""></td>
</tr>
<tr>
<td colspan="11"><table width="680" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="menu_bar.png" fwbase="menu_bar.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
<tr>
<td><img name="menu_bar_r1_c1" src="images/menu_bar_r1_c1.gif" width="330" height="15" border="0" alt=""></td>
<td><a href="index.htm"><img src="images/menu_bar_r1_c2.gif" alt="" name="menu_bar_r1_c2" width="55" height="15" border="0"></a></td>
<td><a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0921011115_0,0,15,null,'menu_bar_r1_c3');"><img name="menu_bar_r1_c3" src="images/menu_bar_r1_c3.gif" width="59" height="15" border="0"></a></td>
<td><a href="javascript:;" target="main" onMouseOver="MM_showMenu(window.mm_menu_0113041212_0,0,15,null,'menu_bar_r1_c4')" onMouseOut="MM_startTimeout();"><img name="menu_bar_r1_c4" src="images/menu_bar_r1_c4.gif" width="119" height="15" border="0"></a></td>
<td><a href="beauty.htm" target="main"><img name="menu_bar_r1_c5" src="images/menu_bar_r1_c5.gif" width="61" height="15" border="0"></a></td>
<td><a href="#" onMouseOver="MM_showMenu(window.mm_menu_0921012626_1,0,15,null,'menu_bar_r1_c6');" onMouseOut="MM_startTimeout();"><img name="menu_bar_r1_c6" src="images/menu_bar_r1_c6.gif" width="55" height="15" border="0"></a></td>
<td><a href="baby.htm" target="main" onMouseOut="MM_startTimeout();"><img name="menu_bar_r1_c7" src="images/menu_bar_r1_c7.gif" width="50" height="15" border="0"></a></td>
<td><a href="about_us.htm" target="main"><img name="menu_bar_r1_c8" src="images/menu_bar_r1_c8.gif" width="71" height="15" border="0"></a></td>
</tr>
</table></td>
<!-- <td>&nbsp;</td> -->
</tr>
<tr>
<td colspan="3"><img name="index_r3_c1" src="images/index_r3_c1.gif" width="145" height="358" border="0" alt="Info"></td>
<td colspan="8" rowspan="3" align="left" valign="top"><IFRAME name="main" src="home.htm" width=655 height=401 frameborder=0 scrolling=yes>
</iframe></td>
<td><img src="images/spacer.gif" width="1" height="358" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="index_r4_c1" src="images/index_r4_c1.gif" width="7" height="43" border="0" alt=""></td>
<td><a href="mailto:info@chemistinfo.net"><img name="index_r4_c2" src="images/index_r4_c2.gif" width="129" height="16" border="0" alt="email: info@chemistinfo.net"></a></td>
<td rowspan="2"><img name="index_r4_c3" src="images/index_r4_c3.gif" width="9" height="43" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="16" border="0" alt=""></td>
</tr>
<tr>
<td><img name="index_r5_c2" src="images/index_r5_c2.gif" width="129" height="27" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="27" border="0" alt=""></td>
</tr>
</table>
</div>
</body>
</html>
 
This may not be the fix you want but it should work.

Open HTM with notepad--->Make adjustments -->Save and Upload
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top