 |
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4  | This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040 |
Please indicate which version of the book you are using when posting questions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 7th, 2005, 07:53 PM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Dreamweaver MX 2004
I'm on page 95 of Begining Dreamweaver MX. The popup menu keeps giving me a error. I even tried the download code and still got the error. Could some one please help?
It keeps giving error.
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
Code:
<?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[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].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[i]))!=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"><strong>The
Cooking Place</strong></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:[email protected]" 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
|
|

August 8th, 2005, 02:28 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Rich,
This code uses the file mm_menu. js which is necessary for the menu to work.
Did you upload that file to the server? If not right-click the file in the Files panel and choose Put. Then refresh the page and I think the menu will work....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

August 8th, 2005, 03:01 PM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
First thanks for your help. I go home in about an hour and I will make sure all files uploaded then. I will keep you informed via this thread.
Rich.
Quote:
quote:Originally posted by Imar
Hi Rich,
This code uses the file mm_menu.js which is necessary for the menu to work.
Did you upload that file to the server? If not right-click the file in the Files panel and choose Put. Then refresh the page and I think the menu will work....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|
|

August 9th, 2005, 07:41 AM
|
|
Authorized User
|
|
Join Date: Jul 2003
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I did upload the file the first time. So I started looking in other places for the problem.
Is this correct?
The problem appeared to be my security setting in IE. My security setting were to high. I had to ease restrictions to the point where I'm allowing an Active X control to work. Once I changed that setting the popup menu to worked.
Thanks!
Rich
|
|
 |