Ask a Question related to Macromedia Fireworks, Design and Development.
-
Murray *TMM* #1
Re: my drop down menu only work on one page!
Jay:
There are three components to the FW menus -
1. The js embedded in the head of the document. In your case, this code
begins here -
<!--
function mmLoadMenus() {
if (window.mm_menu_0814122927_0) return;
window.mm_menu_0814122927_0 = new Menu("root",133,14,"Verdana, Arial,
Helvetica,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);
and continues through here -
mm_menu_0814123952_4.bgColor='#000000';
mm_menu_0814123952_4.writeMenus();
} // mmLoadMenus()
2. The link to the mm_menu.js file (also in the head of the document) -
<script language="JavaScript1.2" src="mm_menu.js"></script>
3. The call to the js file to build the menu -
<td height="13">
<div align="center">
<script
language="JavaScript1.2">mmLoadMenus();</script>
Since these menus are 'layer' based, and since 'layers' do not belong in
table cells, your call (shown above) is going to be trouble for your
cross-browser functioning (note its placement in a table cell). In
addition, since 'layers' are absolutely positioned by virtue of the inline
styles, they will be properly placed on the page regardless of where their
code appears in the flow of the code on the page. So - I have these
suggestions -
a) in the new page, please make sure you have copied and pasted all three of
the components mentioned above
b) when you paste the script call shown in #3 above, please just paste it
immediately after the <body> tag (without the preceding table cell tag and
<div> tag as shown above)
And if you really want to make me happy, you'll get rid of these FW menus
altogether and use something that is easier to maintain, less weight on the
page, not invisible to search engines or DW's link management, and
compatible with accessability requirements (looks like these last two issues
might (should?) be a big concern for you!).
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
ANSWERS
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"JayABNB" <webforumsuser@macromedia.com> wrote in message
news:bkfisk$qpq$1@forums.macromedia.com...[url]http://www.dekalbhealth.net/test-2/following-layout2/following-layout2.htm[/url]> well the version that is uploaded is atthe layout stretch across the screen. so i am trying to take the sliced>
> however, i have had to redo the layout to make to top and bottom part of
images from this layout into the new version. everything is fine EXCEPT when
i try to copy the menu or insert the menu to its proper table it wont
work...follows:>
> ON MY HARD DRIVE....the javascript codes in my source files are asHelvetica,>
> <html>
> <head>
> <title>Welcome to the DeKalb County Board of Health</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <script language="JavaScript">
> <!--
> function mmLoadMenus() {
> if (window.mm_menu_0814122927_0) return;
> window.mm_menu_0814122927_0 = new Menu("root",133,14,"Verdana, Arial,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);Helvetica,> mm_menu_0814122927_0.addMenuItem("Adult Healt h");
> mm_menu_0814122927_0.addMenuItem("Dental Heal th");
> mm_menu_0814122927_0.addMenuItem("Family Plan ning");
> mm_menu_0814122927_0.addMenuItem("HIV/AIDS");
> mm_menu_0814122927_0.addMenuItem("Mothers and Children");
> mm_menu_0814122927_0.addMenuItem("Refugee Hea lth");
> mm_menu_0814122927_0.addMenuItem("School Heal th");
> mm_menu_0814122927_0.addMenuItem("Travel Immu nizations");
> mm_menu_0814122927_0.addMenuItem("Teen Clinic s");
> mm_menu_0814122927_0.addMenuItem("WIC Nutriti on Program");
> mm_menu_0814122927_0.hideOnMouseOut=true;
> mm_menu_0814122927_0.menuBorder=1;
> mm_menu_0814122927_0.menuLiteBgColor='#ffffff';
> mm_menu_0814122927_0.menuBorderBgColor='#333333';
> mm_menu_0814122927_0.bgColor='#000000';
> window.mm_menu_0814123305_1 = new Menu("root",166,14,"Verdana, Arial,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);mm_menu_0814123305_1.addMenuItem("Inside the& nbsp;Board of He> mm_menu_0814123305_1.addMenuItem("Data and&nb sp;Statistics");
> mm_menu_0814123305_1.addMenuItem("Health @&nb sp;Home");
> mm_menu_0814123305_1.addMenuItem("Injury Prev ention");
> mm_menu_0814123305_1.addMenuItem("Infectious Diseases");
>
alth");Helvetica,> mm_menu_0814123305_1.addMenuItem("Public Rela tions");
> mm_menu_0814123305_1.addMenuItem("Restaurant Inspections");
> mm_menu_0814123305_1.addMenuItem("Status of&n bsp;Health");
> mm_menu_0814123305_1.addMenuItem("Swimming Po ol Inspections");
> mm_menu_0814123305_1.hideOnMouseOut=true;
> mm_menu_0814123305_1.menuBorder=1;
> mm_menu_0814123305_1.menuLiteBgColor='#ffffff';
> mm_menu_0814123305_1.menuBorderBgColor='#333333';
> mm_menu_0814123305_1.bgColor='#000000';
> window.mm_menu_0814123714_2 = new Menu("root",261,14,"Verdana, Arial,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);mm_menu_0814123714_2.addMenuItem("Center for& nbsp;Community Health>
Transformation");Helvetica,> mm_menu_0814123714_2.addMenuItem("Healthy DeK alb");
> mm_menu_0814123714_2.addMenuItem("Medical Res erve Corps");
> mm_menu_0814123714_2.addMenuItem("Tobacco Pre vention/PATCH");
> mm_menu_0814123714_2.hideOnMouseOut=true;
> mm_menu_0814123714_2.menuBorder=1;
> mm_menu_0814123714_2.menuLiteBgColor='#ffffff';
> mm_menu_0814123714_2.menuBorderBgColor='#333333';
> mm_menu_0814123714_2.bgColor='#000000';
> window.mm_menu_0814123854_3 = new Menu("root",133,14,"Verdana, Arial,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);Helvetica,> mm_menu_0814123854_3.addMenuItem("Background");
> mm_menu_0814123854_3.addMenuItem("Programs an d Projects");
> mm_menu_0814123854_3.addMenuItem("Resources");
> mm_menu_0814123854_3.hideOnMouseOut=true;
> mm_menu_0814123854_3.menuBorder=1;
> mm_menu_0814123854_3.menuLiteBgColor='#ffffff';
> mm_menu_0814123854_3.menuBorderBgColor='#333333';
> mm_menu_0814123854_3.bgColor='#000000';
> window.mm_menu_0814123952_4 = new Menu("root",195,14,"Verdana, Arial,
sans-serif",10,"#000000","#ffffff","#cccccc","#000084", "left","middle",2,0,3
00,-5,7,true,true,true,0,true,true);mm_menu_0814123952_4.addMenuItem("Become an&n bsp;Approved Vendor")>
;mm_menu_0814123952_4.addMenuItem("Board of&nb sp;Health Bid Op>
portunities");x.src=x.oSrc;> mm_menu_0814123952_4.addMenuItem("Jobs and&nb sp;Internships");
> mm_menu_0814123952_4.addMenuItem("Small Grant Programs");
> mm_menu_0814123952_4.addMenuItem("Volunteering");
> mm_menu_0814123952_4.hideOnMouseOut=true;
> mm_menu_0814123952_4.menuBorder=1;
> mm_menu_0814123952_4.menuLiteBgColor='#ffffff';
> mm_menu_0814123952_4.menuBorderBgColor='#333333';
> mm_menu_0814123952_4.bgColor='#000000';
>
> mm_menu_0814123952_4.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++)i<a.length; i++)> }
>
> 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;if((p=n.indexOf("?"))>0&&parent.frames.length) {> if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
> }
>
> function MM_findObj(n, d) { //v4.0
> var p,i,x; if(!d) d=document;x=d.forms[n];> 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=MM_findObj(n,d.layers.document);> for(i=0;!x&&d.layers&&i<d.layers.length;i++)x;> if(!x && document.getElementById) x=document.getElementById(n); returnfor(i=0;i<(a.length-2);i+=3)> }
>
> function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;x.oSrc=x.src; x.src=a[i+2];}> if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)bottommargin=0 rightmargin=0> }
> //-->
> </script>
> <script language="JavaScript1.2" src="mm_menu.js"></script>
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0"
onLoad="MM_preloadImages('navigation-images/clinical-services_f2.jpg','navig
ation-images/information_f2.jpg','navigation-images/community-collab_f2.jpg'
,'navigation-images/cphp_f2.jpg','navigation-images/jobs_f2.jpg')">height="100">> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td valign="top">
> <table width="100%" border="0" cellspacing="0" cellpadding="0"src="../images/top-navigation.jpg" width="769" height="104"></td>> <tr>
> <td width="57%" valign="top" height="94"><imgbackground="../images/right-top-navigation.jpg" height="94"> </td>> <td width="43%" valign="top"bgcolor="#990000">> </tr>
> </table>
> <table width="100%" border="0" cellspacing="0" cellpadding="0"cellpadding="0" bgcolor="#990000" bordercolor="#CCCC99" height="8">> <tr>
> <td width="76%" height="27">
> <div align="center">
> <table width="100%" border="0" cellspacing="0"language="JavaScript1.2">mmLoadMenus();</script>> <tr>
> <td height="13">
> <div align="center">
> <scriptwidth="755">> <table border="0" cellpadding="0" cellspacing="0"fwbase="navigation-only.jpg" fwstyle="Dreamweaver" fwdocid = "742308039"> <!-- fwtable fwsrc="layout (navigation).png"
fwnested="0" -->width="113" height="1" border="0" alt="" name="undefined_2"></td>> <tr>
> <td><img src="navigation-images/spacer.gif"width="91" height="1" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"width="171" height="1" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"width="244" height="1" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"width="136" height="1" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"width="1" height="1" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"onMouseOut="MM_swapImgRestore();MM_startTimeout()"> </tr>
> <tr>
> <td><a href="#"
onMouseOver="MM_showMenu(window.mm_menu_0814122927 _0,0,21,null,'clinicalserv
ices');MM_swapImage('clinicalservices','','navigat ion-images/clinical-servic
es_f2.jpg',1);"><img name="clinicalservices"
src="navigation-images/clinical-services.jpg" width="113" height="21"
border="0" alt=""></a></td>onMouseOut="MM_swapImgRestore();MM_startTimeout()"> <td><a href="#"
onMouseOver="MM_showMenu(window.mm_menu_0814123305 _1,0,21,null,'information'
);MM_swapImage('information','','navigation-images/information_f2.jpg',1);">
<img name="information" src="navigation-images/information.jpg" width="91"
height="21" border="0" alt=""></a></td>onMouseOut="MM_swapImgRestore();MM_startTimeout()"> <td><a href="#"
onMouseOver="MM_showMenu(window.mm_menu_0814123714 _2,0,21,null,'communitycol
lab');MM_swapImage('communitycollab','','navigatio n-images/community-collab_
f2.jpg',1);"><img name="communitycollab"
src="navigation-images/community-collab.jpg" width="171" height="21"
border="0" alt=""></a></td>onMouseOut="MM_swapImgRestore();MM_startTimeout()"> <td><a href="#"
onMouseOver="MM_showMenu(window.mm_menu_0814123854 _3,0,21,null,'cphp');MM_sw
apImage('cphp','','navigation-images/cphp_f2.jpg',1);"><img name="cphp"
src="navigation-images/cphp.jpg" width="244" height="21" border="0"
alt=""></a></td>onMouseOut="MM_swapImgRestore();MM_startTimeout()"> <td><a href="#"
onMouseOver="MM_showMenu(window.mm_menu_0814123952 _4,-56,21,null,'jobs');MM_
swapImage('jobs','','navigation-images/jobs_f2.jpg',1);"><img name="jobs"
src="navigation-images/jobs.jpg" width="136" height="21" border="0"
alt=""></a></td>width="1" height="21" border="0" alt="" name="undefined_2"></td>> <td><img src="navigation-images/spacer.gif"> </tr>
> </table>
> </div>
> </td>
> </tr>
> </table>
> </div>
> </td>
> <td width="24%" height="27"> </td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
>
>
Murray *TMM* Guest
-
Need help with Drop Down Menu and it getting hiddenbehind other content on page.
I inserted some interactive Fireworks html containing drop down menus into a page and whenever I add others things like images or flash media that... -
Drop Down Menu for Pay Pal
I just signed up for Pay Pal to use on my order page on my web site for selling merch. In Dreamweaver, I have made a table with columns for each... -
drop-down menu in update record page
Hi, I have created an update record page using the standard tools provided by dreamweaver. The page updates a record in an access database. All the... -
Drop Down Menu in DW
I have made this page and now I am wondering if i can make my hovers work in my navigation that is in the middle left of the page. It seems that the... -
How do I build Drop Down menu using Menu magic with Database result
Hi Every One. I resently purched Menu Magic Dropdown System. I would like to list my database content like news( few sentense with link ), Authers...



Reply With Quote

