|
mar0364 -> PopUp Menu Dreamweaver MX (8/8/2005 13:32:16)
|
Has anyone used the popup menu behavior in DW MX yet? I've tried it several time following step by step but get an error. Appreciate any help. Line 555 Char 3 menulayer is null or not an object code 0 url localhost/regions.htm Regions.htm does not have 555 lines in it. Here is the text from regions.htm
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Cooking Place - Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Keywords" content="cooking, food, French Cuisine, American Cuisine, Italian Cuisine, recipes, recipe exchange, cooking techniques, cooking equipment" />
<meta name="Description" content="The Cooking Place is where you can come to find great recipes, get some cooking tips, learn about various techniques, and share your recipes with friends from all over the world. " />
<script language="JavaScript" type="text/JavaScript">function mmLoadMenus() {
if (window.mm_menu_1215170954_0) return;
window.mm_menu_1215170954_0_1 = new Menu("Italian",119,18,"",12,"#000000","#FFFFFF","#CCCCCC","#000084","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1215170954_0_1.addMenuItem("Southern Italian","location='sitalian.htm'");
mm_menu_1215170954_0_1.addMenuItem("Northern Italian","location='nitalian.htm'");
mm_menu_1215170954_0_1.hideOnMouseOut=true;
mm_menu_1215170954_0_1.bgColor='#555555';
mm_menu_1215170954_0_1.menuBorder=1;
mm_menu_1215170954_0_1.menuLiteBgColor='#FFFFFF';
mm_menu_1215170954_0_1.menuBorderBgColor='#777777';
window.mm_menu_1215170954_0 = new Menu("root",82,18,"",12,"#000000","#FFFFFF","#CCCCCC","#000084","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
mm_menu_1215170954_0.addMenuItem("American","location='american.htm'");
mm_menu_1215170954_0.addMenuItem("French","location='french.htm'");
mm_menu_1215170954_0.addMenuItem(mm_menu_1215170954_0_1,"location='italian.htm'");
mm_menu_1215170954_0.hideOnMouseOut=true;
mm_menu_1215170954_0.childMenuIcon="arrows.gif";
mm_menu_1215170954_0.bgColor='#555555';
mm_menu_1215170954_0.menuBorder=1;
mm_menu_1215170954_0.menuLiteBgColor='#FFFFFF';
mm_menu_1215170954_0.menuBorderBgColor='#777777';
mm_menu_1215170954_0.writeMenus();
} // mmLoadMenus()
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="MM_preloadImages('Images/home_over.gif','Images/news_over.gif','Images/contact_over.gif')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="Images/topbkg.gif">
<tr>
<td width="50%"><img src="Images/topleft.gif" width="290" height="51" /></td>
<td width="50%"><div align="center"><font color="#FFFFFF" size="6" face="Arial"><strong>The
Cooking Place</strong></font></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="257" valign="top" background="Images/sidebkg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="Images/topleft2.gif" width="257" height="112" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top" background="Images/rightsidebkg.gif"><img src="Images/topleft3.gif" width="195" height="75" /><br />
<a href="index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('homeButton','','Images/home_over.gif',1)"><img src="Images/buttonblank.gif" alt="Home" name="homeButton" width="181" height="31" border="0" id="homeButton" /></a>
<br /> <a href="news.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('newsButton','','Images/news_over.gif',1)"><img src="Images/buttonblank.gif" alt="News" name="newsButton" width="181" height="31" border="0" id="newsButton" /></a>
<br />
<a href="javascript:;" onmouseover="MM_showMenu(window.mm_menu_1215170954_0,178,28,null,'regionsButton')" onmouseout="MM_startTimeout();"><img src="Images/regions_over.gif" name="regionsButton" width="181" height="31" border="0" id="regionsButton" /></a><br />
<a href="mailto:charles@thecookingplace.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contactButton','','Images/contact_over.gif',1)"><img src="Images/buttonblank.gif" alt="Contact Us" name="contactButton" width="181" height="31" border="0" id="contactButton" /></a>
</td>
<td width="50%" valign="top"><img src="Images/page.gif" width="59" height="199" /></td>
</tr>
</table></td>
<td width="99%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" valign="top"><img src="Images/leftcorn.gif" width="28" height="22" /></td>
<td width="98%"> </td>
<td width="1%" valign="top"><img src="Images/rightcorn.gif" width="28" height="22" /></td>
</tr>
</table></td>
<td width="1%" background="Images/rightsidebkg.gif"><img src="Images/rightsidebkg.gif" width="24" height="31" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="Images/botbkg.gif">
<tr>
<td width="50%"><img src="Images/botleft.gif" width="235" height="40" /></td>
<td><div align="right"><img src="Images/botright.gif" width="69" height="40" /></div></td>
</tr>
</table>
</body>
</html>
Thanks! Rich
|
|
|
|