navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

PopUp Menu Dreamweaver MX

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> PopUp Menu Dreamweaver MX
Page: [1]
 
mar0364

 

Posts: 3092
Joined: 4/5/2002
From: Florida, US
Status: offline

 
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
BeTheBall

 

Posts: 6359
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/8/2005 22:13:03   
Regions.htm may not be that long, but what about, mm_menu.js? It is called by Regions.htm. What does the code for it look like?

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to mar0364)
mar0364

 

Posts: 3092
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/9/2005 8:53:25   
Thanks Duane!

This was the solution.
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

(in reply to BeTheBall)
BeTheBall

 

Posts: 6359
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/9/2005 14:00:12   
Glad you got it to work. However, your solution would make me wonder whether the script you are using is worthwhile. What will happen when other users come to the page and have no idea or no desire to change their security settings?

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to mar0364)
Tailslide

 

Posts: 6046
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/9/2005 14:03:03   
quote:

ORIGINAL: BeTheBall

Glad you got it to work. However, your solution would make me wonder whether the script you are using is worthwhile. What will happen when other users come to the page and have no idea or no desire to change their security settings?


Or FF adblock - does it work with Adblock on?

Duane - just noticed your signature - that's got to be the best signature I've ever seen - If I had a family crest I'd put it on it!:)

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to BeTheBall)
BeTheBall

 

Posts: 6359
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/9/2005 14:55:56   
quote:

Duane - just noticed your signature - that's got to be the best signature I've ever seen - If I had a family crest I'd put it on it!


Got that in an email one day and since I didn't have a signature at the time, well, the rest is history.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to Tailslide)
mar0364

 

Posts: 3092
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 8/9/2005 17:41:45   
When I upload I put the link on this thread so we can all give it a try.

As always, Thanks All!

(in reply to BeTheBall)
Leprakawn

 

Posts: 1
Joined: 2/26/2008
Status: offline

 
RE: PopUp Menu Dreamweaver MX - 2/26/2008 15:42:09   
I have googled this without finding anything as a good answer, but maybe some of you can answer this for me. As for the mm_menu function, is it possible to make a link open in a secondary window?
:)

(in reply to mar0364)
Page:   [1]

All Forums >> Web Development >> General Web Development >> PopUp Menu Dreamweaver MX
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts