Drop Down Menu in Dreamweaver CS3
Is it possible to add a Drop Down Menu in Dreamweaver CS3 in an already existing navigation bar?
Ok, I made one a link. See below...
<div id="nav">
<ul>
<li class="style1"><a href="index.html">Home</a></li>
<li class="style1"><a href="Vinyard/vinyard.html">Vineyard</a></li>
<li class="style1"><a href="http://millnerheritage.com/Wines/winesTest.html">Winery</a><a href="Winery/winery.html"></a></li>
<li class="style1"><a href="Wines/winesTest.html">Wines</a></li>
<li class="style1"><a href="Wines/winesTest.html">Events</a></li>
<li class="style1"><a href="Heritage/heritage.html">Heritage</a></li>
<li class="style1"><a href="Classes/classes.html">Classes</a></li>
<li class="style1"><a href="photos.html">Gallery</a></li>
<li class="style1"><a href="Links/links.html">Links</a></li>
<li class="style1"><a href="Order Online/order.html">Order Online</a></li>
<li class="style1"><a href="Contact/contact.php">Contact<br />
</a> </li>
</ul>
Similar Messages
-
Dependent Drop-Down Menu in Dreamweaver CS3 and ADDT
Hi All,
I have been trying to create a dependent drop--down menu so that when I select an item the corresponding information would populate the other field or fields. So far I have tried to use the tutorial posted on the link below by Waleed Barakat but I have had no sucess.
http://www.tutorials-expert.com/tutorial/20354/-How-To-Create-Dependent-Dropdown -ListMenu-Forms.html
I wanted to know if anyone has something else that I can review to help me in this process.
ThanksPlease refer to this article (http://forums.adobe.com/message/1069624#1069624) for information on how your tables should be set up.
Date: Wed, 10 Jun 2009 00:49:28 -0600
From: [email protected]
To: [email protected]
Subject: Re: Dependent Drop-Down Menu in Dreamweaver CS3 and ADDT
Hi Georgev63,
I followed the instructions to the link you sent me and it did not produce the results I had hope for.
The directions are pretty straight forward and I attempted the steps several times with the same results.
Basically the field that supposed to be the detail field is blank rather than having the ID of the master field.
Any further suggestions would be much appreciated.
Thanks
E.
> -
Wanting to make a Drop Down Menu in Flash CS3
I'd like to build a drop down menu in Flash CS3. The web is awash in terrible tutorials. Would anyone have a decent tutorial they could refer me to?
Thank you-I'd like to build a drop down menu in Flash CS3. The web is awash in terrible tutorials. Would anyone have a decent tutorial they could refer me to?
Thank you- -
Drop-down menu in Dreamweaver CS5.5 not displaying
Thanks for anyone's help. I'm a first time user of the forum so please excuse any protocol errors.
I can't get my drop-down menu to display on my web page (http://www.cglcontracting.com/) on a Windows platform using Dreamweaver CS5.5.
Thanks very much for any advice/help.Hi again -
My previous suggestion did not seem to make any difference, the CSS still did not validate.
I seems to be choking on your Browser Hack section.
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.cglcontracting.com%2FSpr yAssets%2FSpryMenuBarHorizontal.css&profile=css3&usermedium=all&warning=1&vextwarning=&lan g=en
I re-wrote the bottom Browser Hack section and it now validates.
I'll paste the whole CSS file here, Save it as "SpryMenuBarHorizontal.css" and give it a try.
@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 90%;
cursor: default;
width: auto;
color: rgb(153,153,153);
text-transform: uppercase;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
text-align: center;
background-color: rgb(255,255,255);
vertical-align: middle;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
color: rgb(153,153,153);
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 8em;
float: left;
color: rgb(0,255,0);
overflow: hidden;
visibility: inherit;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 8.2em;
color: rgb(204,204,204);
top: 0px;
overflow: auto;
visibility: inherit;
margin-top: -5%;
margin-left: 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
color: rgb(204,204,204);
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-variant: small-caps;
text-transform: uppercase;
background-color: rgb(255,0,0);
left: auto;
width: auto;
z-index: auto;
visibility: inherit;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
text-align: left;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
background-color: rgb(204,204,204);
margin-top: -5%;
margin-right: 0;
margin-bottom: 0;
margin-left: 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: 100px;
background-color: rgb(204,204,204);
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 0px none #CCC;
margin-top: 0%;
margin-right: 0%;
margin-bottom: 0%;
margin-left: 0%;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #F00;
color: #003;
text-decoration: none;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
padding-top: 1.2ex;
font-weight: bold;
vertical-align: middle;
padding-bottom: 0.53em;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
background-color: #000;
color: rgb(255,255,255);
text-align: center;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #900;
color: #066;
text-align: center;
vertical-align: middle;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 98% 50%;
background-color: rgb(255,0,0);
color: rgb(0,0,51);
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 98% 50%;
background-color: rgb(204,204,204);
visibility: inherit;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarDownHover.gif);
background-repeat: no-repeat;
background-position: 98% 50%;
background-color: rgb(153,0,0);
visibility: visible;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 98% 50%;
background-color: rgb(153,153,153);
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
position: absolute;
z-index: 1010;
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarVertical li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF; -
Drop-down menu in Dreamweaver; template on top of template issue
Hello.
I've managed to create a drop-down menu in a dreamweaver
template by saving the .dwt file as an .html file, building the
menu, then resaving the file as the original .dwt. However, I have
another template that is based on this original template, and while
the drop-down menu appears when I preview the second template in my
browser, it refuses to apply to the pages upon which the second
template is based.
Is there a solution to this?You are completely hosed now.
When you save a template as HTML, you leave the Template
markup in the page.
When you then resave it as a template you duplicate that
markup. You will
never be able to use this properly now. And that is
especially true with
the AWFUL DW pop-up menus in it. You just must not use these
menus with
templates. Especially since there are much better ways that
don't have any
such restrictions -
Check the uberlink and McFly tutorials at PVII
http://www.projectseven.com/)
and the Navbar tutorial at Thierry's place (
http://www.tjkdesign.com)
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"xpanda" <[email protected]> wrote in
message
news:e9q2gf$oq4$[email protected]..
> Hello.
>
> I've managed to create a drop-down menu in a dreamweaver
template by
> saving
> the .dwt file as an .html file, building the menu, then
resaving the file
> as
> the original .dwt. However, I have another template that
is based on this
> original template, and while the drop-down menu appears
when I preview the
> second template in my browser, it refuses to apply to
the pages upon which
> the
> second template is based.
>
> Is there a solution to this?
> -
Fireworks drop down menu in Dreamweaver not working..
I have created a drop down menu in fireworks uploaded it to dreamweaver and tested it in the preview in firefox option and it worked fine. But when i uploaded the page to my website it did not work how can i make it work?
Heres the code
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
@import url("navbar.css");
#Layer1 {
position:absolute;
left:50%;
top:50%;
width:200px;
height:52px;
z-index:1;
left: 258px;
top: 100px;
body {
background-image: url(Chicken%20background.png);
#Layer2 {
position:absolute;
left:300px;
top:-1px;
width:200px;
height:73px;
z-index:2;
left: 302px;
top: 26px;
#Layer3 {
position:absolute;
width:200px;
height:115px;
z-index:3;
left: 373px;
top: 208px;
</style>
<script language="JavaScript1.2" type="text/javascript" src="mm_css_menu.js"></script>
</head>
<body>
<div id="Layer1">
<div id="FWTableContainer2076544957">
<table border="0" cellpadding="0" cellspacing="0" width="850">
<!-- fwtable fwsrc="Untitled" fwbase="navbar.jpg" fwstyle="Dreamweaver" fwdocid = "2076544957" fwnested="0" -->
<tr>
<td><img src="spacer.gif" width="9" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="11" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="12" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="10" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="4" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="4" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="11"><img name="navbar_r1_c1" src="navbar_r1_c1.jpg" width="850" height="2" border="0" id="navbar_r1_c1" alt="" /></td>
<td><img src="spacer.gif" width="1" height="2" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="9"><img name="navbar_r2_c1" src="navbar_r2_c1.jpg" width="686" height="1" border="0" id="navbar_r2_c1" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164902_0', 'MMMenu0915164902_0',5,42,'navbar_r2_c10');"><img name="navbar_r2_c10" src="navbar_r2_c10.jpg" width="160" height="41" border="0" id="navbar_r2_c10" alt="" /></a></td>
<td rowspan="6"><img name="navbar_r2_c11" src="navbar_r2_c11.jpg" width="4" height="48" border="0" id="navbar_r2_c11" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="3"><img name="navbar_r3_c1" src="navbar_r3_c1.jpg" width="180" height="1" border="0" id="navbar_r3_c1" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164218_1', 'MMMenu0915164218_1',11,42,'navbar_r3_c4');"><img name="navbar_r3_c4" src="navbar_r3_c4.jpg" width="160" height="41" border="0" id="navbar_r3_c4" alt="" /></a></td>
<td rowspan="5"><img name="navbar_r3_c5" src="navbar_r3_c5.jpg" width="12" height="47" border="0" id="navbar_r3_c5" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164502_2', 'MMMenu0915164502_2',1,42,'navbar_r3_c6');"><img name="navbar_r3_c6" src="navbar_r3_c6.jpg" width="160" height="41" border="0" id="navbar_r3_c6" alt="" /></a></td>
<td colspan="3"><img name="navbar_r3_c7" src="navbar_r3_c7.jpg" width="174" height="1" border="0" id="navbar_r3_c7" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="4"><img name="navbar_r4_c1" src="navbar_r4_c1.jpg" width="9" height="46" border="0" id="navbar_r4_c1" alt="" /></td>
<td rowspan="3"><a href="homepage.html"><img name="navbar_r4_c2" src="navbar_r4_c2.jpg" width="160" height="41" border="0" id="navbar_r4_c2" alt="" /></a></td>
<td rowspan="4"><img name="navbar_r4_c3" src="navbar_r4_c3.jpg" width="11" height="46" border="0" id="navbar_r4_c3" alt="" /></td>
<td rowspan="4"><img name="navbar_r4_c7" src="navbar_r4_c7.jpg" width="10" height="46" border="0" id="navbar_r4_c7" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164633_3', 'MMMenu0915164633_3',0,41,'navbar_r4_c8');"><img name="navbar_r4_c8" src="navbar_r4_c8.jpg" width="160" height="41" border="0" id="navbar_r4_c8" alt="" /></a></td>
<td rowspan="4"><img name="navbar_r4_c9" src="navbar_r4_c9.jpg" width="4" height="46" border="0" id="navbar_r4_c9" alt="" /></td>
<td><img src="spacer.gif" width="1" height="39" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="3"><img name="navbar_r5_c10" src="navbar_r5_c10.jpg" width="160" height="7" border="0" id="navbar_r5_c10" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2"><img name="navbar_r6_c4" src="navbar_r6_c4.jpg" width="160" height="6" border="0" id="navbar_r6_c4" alt="" /></td>
<td rowspan="2"><img name="navbar_r6_c6" src="navbar_r6_c6.jpg" width="160" height="6" border="0" id="navbar_r6_c6" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td><img name="navbar_r7_c2" src="navbar_r7_c2.jpg" width="160" height="5" border="0" id="navbar_r7_c2" alt="" /></td>
<td><img name="navbar_r7_c8" src="navbar_r7_c8.jpg" width="160" height="5" border="0" id="navbar_r7_c8" alt="" /></td>
<td><img src="spacer.gif" width="1" height="5" border="0" alt="" /></td>
</tr>
</table>
<div id="MMMenuContainer0915164902_0">
<div id="MMMenu0915164902_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="cats.html" target="_self" id="MMMenu0915164902_0_Item_0" class="MMMIFVStyleMMMenu0915164902_0" onmouseover="MM_menuOverMenuItem('MMMenu0915164902_0');"> Cats </a> <a href="other.html" target="_self" id="MMMenu0915164902_0_Item_1" class="MMMIVStyleMMMenu0915164902_0" onmouseover="MM_menuOverMenuItem('MMMenu0915164902_0');"> Other stuff </a> </div>
</div>
<div id="MMMenuContainer0915164218_1">
<div id="MMMenu0915164218_1" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="stationery.html" target="_self" id="MMMenu0915164218_1_Item_0" class="MMMIFVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Stationery </a> <a href="art.html" target="_self" id="MMMenu0915164218_1_Item_1" class="MMMIVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Art </a> <a href="gifts.html" target="_self" id="MMMenu0915164218_1_Item_2" class="MMMIVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Great Gifts </a> </div>
</div>
<div id="MMMenuContainer0915164502_2">
<div id="MMMenu0915164502_2" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="contactemail.html" target="_self" id="MMMenu0915164502_2_Item_0" class="MMMIFVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Email </a> <a href="contactmap.html" target="_self" id="MMMenu0915164502_2_Item_1" class="MMMIVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Map </a> <a href="contactnumbers.html" target="_self" id="MMMenu0915164502_2_Item_2" class="MMMIVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Phone Numbers </a> </div>
</div>
<div id="MMMenuContainer0915164633_3">
<div id="MMMenu0915164633_3" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="suppliers.html" target="_self" id="MMMenu0915164633_3_Item_0" class="MMMIFVStyleMMMenu0915164633_3" onmouseover="MM_menuOverMenuItem('MMMenu0915164633_3');"> Suppliers </a> <a href="topics.html" id="MMMenu0915164633_3_Item_1" class="MMMIVStyleMMMenu0915164633_3" onmouseover="MM_menuOverMenuItem('MMMenu0915164633_3');"> Related topics </a> </div>
</div>
</div>
</div>
<div id="Layer2">
<img src="title.png" alt="title" width="750" height="70" /></div>
</body>
</html>I have created a drop down menu in fireworks uploaded it to dreamweaver and tested it in the preview in firefox option and it worked fine. But when i uploaded the page to my website it did not work how can i make it work?
Heres the code
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
@import url("navbar.css");
#Layer1 {
position:absolute;
left:50%;
top:50%;
width:200px;
height:52px;
z-index:1;
left: 258px;
top: 100px;
body {
background-image: url(Chicken%20background.png);
#Layer2 {
position:absolute;
left:300px;
top:-1px;
width:200px;
height:73px;
z-index:2;
left: 302px;
top: 26px;
#Layer3 {
position:absolute;
width:200px;
height:115px;
z-index:3;
left: 373px;
top: 208px;
</style>
<script language="JavaScript1.2" type="text/javascript" src="mm_css_menu.js"></script>
</head>
<body>
<div id="Layer1">
<div id="FWTableContainer2076544957">
<table border="0" cellpadding="0" cellspacing="0" width="850">
<!-- fwtable fwsrc="Untitled" fwbase="navbar.jpg" fwstyle="Dreamweaver" fwdocid = "2076544957" fwnested="0" -->
<tr>
<td><img src="spacer.gif" width="9" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="11" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="12" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="10" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="4" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="160" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="4" height="1" border="0" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="11"><img name="navbar_r1_c1" src="navbar_r1_c1.jpg" width="850" height="2" border="0" id="navbar_r1_c1" alt="" /></td>
<td><img src="spacer.gif" width="1" height="2" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="9"><img name="navbar_r2_c1" src="navbar_r2_c1.jpg" width="686" height="1" border="0" id="navbar_r2_c1" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164902_0', 'MMMenu0915164902_0',5,42,'navbar_r2_c10');"><img name="navbar_r2_c10" src="navbar_r2_c10.jpg" width="160" height="41" border="0" id="navbar_r2_c10" alt="" /></a></td>
<td rowspan="6"><img name="navbar_r2_c11" src="navbar_r2_c11.jpg" width="4" height="48" border="0" id="navbar_r2_c11" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="3"><img name="navbar_r3_c1" src="navbar_r3_c1.jpg" width="180" height="1" border="0" id="navbar_r3_c1" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164218_1', 'MMMenu0915164218_1',11,42,'navbar_r3_c4');"><img name="navbar_r3_c4" src="navbar_r3_c4.jpg" width="160" height="41" border="0" id="navbar_r3_c4" alt="" /></a></td>
<td rowspan="5"><img name="navbar_r3_c5" src="navbar_r3_c5.jpg" width="12" height="47" border="0" id="navbar_r3_c5" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164502_2', 'MMMenu0915164502_2',1,42,'navbar_r3_c6');"><img name="navbar_r3_c6" src="navbar_r3_c6.jpg" width="160" height="41" border="0" id="navbar_r3_c6" alt="" /></a></td>
<td colspan="3"><img name="navbar_r3_c7" src="navbar_r3_c7.jpg" width="174" height="1" border="0" id="navbar_r3_c7" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="4"><img name="navbar_r4_c1" src="navbar_r4_c1.jpg" width="9" height="46" border="0" id="navbar_r4_c1" alt="" /></td>
<td rowspan="3"><a href="homepage.html"><img name="navbar_r4_c2" src="navbar_r4_c2.jpg" width="160" height="41" border="0" id="navbar_r4_c2" alt="" /></a></td>
<td rowspan="4"><img name="navbar_r4_c3" src="navbar_r4_c3.jpg" width="11" height="46" border="0" id="navbar_r4_c3" alt="" /></td>
<td rowspan="4"><img name="navbar_r4_c7" src="navbar_r4_c7.jpg" width="10" height="46" border="0" id="navbar_r4_c7" alt="" /></td>
<td rowspan="3"><a href="javascript:;" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer0915164633_3', 'MMMenu0915164633_3',0,41,'navbar_r4_c8');"><img name="navbar_r4_c8" src="navbar_r4_c8.jpg" width="160" height="41" border="0" id="navbar_r4_c8" alt="" /></a></td>
<td rowspan="4"><img name="navbar_r4_c9" src="navbar_r4_c9.jpg" width="4" height="46" border="0" id="navbar_r4_c9" alt="" /></td>
<td><img src="spacer.gif" width="1" height="39" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="3"><img name="navbar_r5_c10" src="navbar_r5_c10.jpg" width="160" height="7" border="0" id="navbar_r5_c10" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2"><img name="navbar_r6_c4" src="navbar_r6_c4.jpg" width="160" height="6" border="0" id="navbar_r6_c4" alt="" /></td>
<td rowspan="2"><img name="navbar_r6_c6" src="navbar_r6_c6.jpg" width="160" height="6" border="0" id="navbar_r6_c6" alt="" /></td>
<td><img src="spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td><img name="navbar_r7_c2" src="navbar_r7_c2.jpg" width="160" height="5" border="0" id="navbar_r7_c2" alt="" /></td>
<td><img name="navbar_r7_c8" src="navbar_r7_c8.jpg" width="160" height="5" border="0" id="navbar_r7_c8" alt="" /></td>
<td><img src="spacer.gif" width="1" height="5" border="0" alt="" /></td>
</tr>
</table>
<div id="MMMenuContainer0915164902_0">
<div id="MMMenu0915164902_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="cats.html" target="_self" id="MMMenu0915164902_0_Item_0" class="MMMIFVStyleMMMenu0915164902_0" onmouseover="MM_menuOverMenuItem('MMMenu0915164902_0');"> Cats </a> <a href="other.html" target="_self" id="MMMenu0915164902_0_Item_1" class="MMMIVStyleMMMenu0915164902_0" onmouseover="MM_menuOverMenuItem('MMMenu0915164902_0');"> Other stuff </a> </div>
</div>
<div id="MMMenuContainer0915164218_1">
<div id="MMMenu0915164218_1" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="stationery.html" target="_self" id="MMMenu0915164218_1_Item_0" class="MMMIFVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Stationery </a> <a href="art.html" target="_self" id="MMMenu0915164218_1_Item_1" class="MMMIVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Art </a> <a href="gifts.html" target="_self" id="MMMenu0915164218_1_Item_2" class="MMMIVStyleMMMenu0915164218_1" onmouseover="MM_menuOverMenuItem('MMMenu0915164218_1');"> Great Gifts </a> </div>
</div>
<div id="MMMenuContainer0915164502_2">
<div id="MMMenu0915164502_2" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="contactemail.html" target="_self" id="MMMenu0915164502_2_Item_0" class="MMMIFVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Email </a> <a href="contactmap.html" target="_self" id="MMMenu0915164502_2_Item_1" class="MMMIVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Map </a> <a href="contactnumbers.html" target="_self" id="MMMenu0915164502_2_Item_2" class="MMMIVStyleMMMenu0915164502_2" onmouseover="MM_menuOverMenuItem('MMMenu0915164502_2');"> Phone Numbers </a> </div>
</div>
<div id="MMMenuContainer0915164633_3">
<div id="MMMenu0915164633_3" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="suppliers.html" target="_self" id="MMMenu0915164633_3_Item_0" class="MMMIFVStyleMMMenu0915164633_3" onmouseover="MM_menuOverMenuItem('MMMenu0915164633_3');"> Suppliers </a> <a href="topics.html" id="MMMenu0915164633_3_Item_1" class="MMMIVStyleMMMenu0915164633_3" onmouseover="MM_menuOverMenuItem('MMMenu0915164633_3');"> Related topics </a> </div>
</div>
</div>
</div>
<div id="Layer2">
<img src="title.png" alt="title" width="750" height="70" /></div>
</body>
</html> -
My drop down menu, when I hover to it show underneath the slide show image.
how to bring it upTry positioning it relative and give it a higher z-index (stacking order) than your slideshow.
Nancy O. -
Dynamic drop down list crash dreamweaver CS3
Hi,
I'm having a problem with Dreamweaver CS3.I'm running it with
Vista SP1
I try to create a mysql dynamic dropdown list in AJAX with
this
Tutorial
Once the form is created and when I try to insert the php
code and change the name of the variable , Dreamweaver crash
everytime and close.
I tried also with other tutorial and codes but it crashes
everytime I insert some dynamic dropdown list.
If someone ever encountered this probleme or have any idea
... thanks !!The Preview function is a development feature to demonstrate the results of merging data (the .xml specificed in Form Properties > Preview > Data File) with the .xdp or .pdf. When you open in the form in Reader or Acrobat the same .xml file is not merged with the form automatically.
To get data into a PDF you have a number of options including:
1) use LiveCycle Forms ES server-side solution to do data merge
2) use a data connection to a database or a Web Service
3) use JavaScript importData() or FormCalc get()
To use options 2) and 3) the form has to be rights-enabled for the respective function to work in Reader.
If you use option 3), you can attach the JavaScript 'xfa.host.importData()' to a button or some other event. When importData() fires it will prompt the user with a file browser to pick the .xml. The importData() method will work if the PDF is rights-enabled, only. Open the PDF in Acrobat Professional, from the toolbar, select 'Advanced > Extend Features in Adobe Reader' and save the PDF.
Note, if you specify the .xml file name in importData(), the PDF must be certified. This is for security purposes.
Steve -
Navigation Bar Drop Down Menu for Dreamweaver CS5
Does anybody know how to make a navigation bar with drop down menus in CS5 flash?
-HarleyDoes anybody know how to make a navigation bar with drop down menus in CS5 flash?
-Harley -
Help with finishing drop-down menu in dreamweaver?
I am trying to make a menu that I want to look like this:
http://www.ivoog.com/link2
I want it to look exactly like that but with a few more of
the same menus next to the first one. The reason I am not using the
menu I made above is because I used a builder and it produced about
10 pages of really weird and complicated code.
Here is what I have so far:
http://www.ivoog.com/link4
I just used random words because the menu is kindof private.
Here's the CSS for the menu:
http://www.ivoog.com/link4/dropdowntabfiles/bluetabs.css
Here's the javascript:
http://ivoog.com/link4/dropdowntabfiles/dropdowntabs.js
Can anyone help me finish and make it exactly like the menu I
showed? I am stuck on many things?!!Isn't this the same question that has been asked and answered
more than once
here?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"hahahaadobeman" <[email protected]> wrote
in message
news:foi5bb$pr1$[email protected]..
>I am trying to make a menu that I want to look like this:
>
>
http://www.ivoog.com/link2
>
> I want it to look exactly like that but with a few more
of the same menus
> next
> to the first one. The reason I am not using the menu I
made above is
> because I
> used a builder and it produced about 10 pages of really
weird and
> complicated
> code.
>
> Here is what I have so far:
>
>
http://www.ivoog.com/link4
>
> I just used random words because the menu is kindof
private.
>
> Here's the CSS for the menu:
>
>
http://www.ivoog.com/link4/dropdowntabfiles/bluetabs.css
>
> Here's the javascript:
>
>
http://ivoog.com/link4/dropdowntabfiles/dropdowntabs.js
>
> Can anyone help me finish and make it exactly like the
menu I showed? I am
> stuck on many things?!!
> -
Seeking: Drop Down Menu Tutorial for DreamWeaver CC (Pure CSS)
Hey all.
I'm relatively new to Dreamweaver, and web design in general. I took on a project to create a small-business website for my buddy.
I'll start by saying that I've googled, and have found several copy / paste solutions, as well as several plugin-style solutions. For various reasons, I'm not interested in other methods of creating a menu (jQuery). Project 7, before you post (like you seem to do in EVERY thread I've read about this topic...), I may purchase your tool later, but I want to learn the process first.
I'd like to know if anyone knows of a video or a walkthrough of how to create a CSS-only drop down menu for DreamWeaver CC. An in-depth tutorial will help me better understand CSS and HTML in general, as well as help me navigate the changes in DreamWeaver (namely, the CSS designer).
Any ideas?http://www.w3schools.com/css/css_navbar.asp
http://cssmenumaker.com/blog/tutorials
http://www.siteground.com/tutorials/menu/css.htm
http://ntt.cc/2010/11/24/30-pure-css-menu-tutorials-for-web-developers.html
Try one of these sites, should have what your are looking for. -
DW CS4 Horizontal Spry drop down menu not displaying correctly in Internet Explorer 8
Hi,
I have created a horizontal Spry drop down menu in Dreamweaver CS4 with my own background images. I have done various modifications to the CSS script to accommodate the style and feel needed; including making the main buttons' height twice the size of the sub menu buttons and some alignments. It seems to work different depending which browser is used.
It works well in Google Chrome.
It works well in Firefox with the exception that if any of the buttons are clicked, thereafter a thin black line is diplayed horizontally across center of the top main buttons when the mouse rolls over them. I would like to correct this but is not nearly as bad as the problem I'm having in Internet Explorer 8.
Here is my biggest concern and I would greatly appreciate if anyone can shed some light on this matter.
Once opened in Internet Explorer 8 the main navigation buttons appear as they should. IE8 prompts me the following: "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..". Once I allow IE8 to run scripts or ActiveX controls, the background image disappears and only shows on any menu or submenu button when the mouse rolls over that particular button. Can someone please help.
The menu can be seen at work by clicking on this link:
www.bargainxchange.com/BXC Main Navigation Spry Drop Menu.html
Below are all the scrips involved.
Here is the CSS script named "SpryMenuBarHorizontal4.css" in use :
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 10;
padding: 0;
list-style-type: none;
font-size: 80%;
cursor: default;
width: auto;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-align: center;
/*whole menu moves*/
margin-left: 100px;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* My Note --Top buttons' background, height and font size adjust-- */
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
/* My note --I added the height and background-image as Main-Buttons.jpg-- */
height: 55px;
background-image: url(../Main-Buttons.jpg);
margin: -2;
padding: 0;
list-style-type: none;
font-size: 100%;
position: center;
/*text-align: left;*/
cursor: pointer;
width: 99px;
float: left;
/* My note --Submenu font size adjust-- */
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
/*height:38px;*/
margin: 0;
padding: 0;
list-style-type: none;
font-size: 87%;
z-index: 1020;
cursor: default;
width: 160px;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
/* My note --this margin alligns the drop buttons up and down-- */
margin-top: 24px;
height: 25px;
left: auto;
/* My note --drop menu size adjustments-- */
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
height: 25px;
width: 160px;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position:absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
/*border: 1px solid #CCC;*/
/* My note --Text Allignment global-- */
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
/*height: 40px;*/
text-align: center;
/*vertical-align: center;*/
display: block;
cursor: pointer;
padding: 0.5em 0.75em;
text-decoration: none;
/*zzzzzzzz Text Color*/
color: #333; /*background-color: #CCC;*/
letter-spacing: -0.00px;
margin-left: 1px;
margin-right: 0px;
/*alligns text up or down globally*/
margin-top: 1px;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
/*background-color: #33C;
color: #FFF;*/
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-image: url(../Main-Buttons-mouse-over.jpg); /*background-color: #33C;
color: #FFF;*/
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
/* My note --mouse over-- */
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF;
Here is the JavaScrip file named "SpryMenuBar.js" that has not been modified in any way:
// SpryMenuBar.js - version 0.12 - Spry Pre-Release 1.6.1
// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of Adobe Systems Incorporated nor the names of its
// contributors may be used to endorse or promote products derived from this
// software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
SpryMenuBar.js
This file handles the JavaScript for Spry Menu Bar. You should have no need
to edit this file. Some highlights of the MenuBar object is that timers are
used to keep submenus from showing up until the user has hovered over the parent
menu item for some time, as well as a timer for when they leave a submenu to keep
showing that submenu until the timer fires.
var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget = {};
Spry.BrowserSniff = function()
var b = navigator.appName.toString();
var up = navigator.platform.toString();
var ua = navigator.userAgent.toString();
this.mozilla = this.ie = this.opera = this.safari = false;
var re_opera = /Opera.([0-9\.]*)/i;
var re_msie = /MSIE.([0-9\.]*)/i;
var re_gecko = /gecko/i;
var re_safari = /(applewebkit|safari)\/([\d\.]*)/i;
var r = false;
if ( (r = ua.match(re_opera))) {
this.opera = true;
this.version = parseFloat(r[1]);
} else if ( (r = ua.match(re_msie))) {
this.ie = true;
this.version = parseFloat(r[1]);
} else if ( (r = ua.match(re_safari))) {
this.safari = true;
this.version = parseFloat(r[2]);
} else if (ua.match(re_gecko)) {
var re_gecko_version = /rv:\s*([0-9\.]+)/i;
r = ua.match(re_gecko_version);
this.mozilla = true;
this.version = parseFloat(r[1]);
this.windows = this.mac = this.linux = false;
this.Platform = ua.match(/windows/i) ? "windows" :
(ua.match(/linux/i) ? "linux" :
(ua.match(/mac/i) ? "mac" :
ua.match(/unix/i)? "unix" : "unknown"));
this[this.Platform] = true;
this.v = this.version;
if (this.safari && this.mac && this.mozilla) {
this.mozilla = false;
Spry.is = new Spry.BrowserSniff();
// Constructor for Menu Bar
// element should be an ID of an unordered list (<ul> tag)
// preloadImage1 and preloadImage2 are images for the rollover state of a menu
Spry.Widget.MenuBar = function(element, opts)
this.init(element, opts);
Spry.Widget.MenuBar.prototype.init = function(element, opts)
this.element = this.getElement(element);
// represents the current (sub)menu we are operating on
this.currMenu = null;
this.showDelay = 250;
this.hideDelay = 600;
if(typeof document.getElementById == 'undefined' || (navigator.vendor == 'Apple Computer, Inc.' && typeof window.XMLHttpRequest == 'undefined') || (Spry.is.ie && typeof document.uniqueID == 'undefined'))
// bail on older unsupported browsers
return;
// Fix IE6 CSS images flicker
if (Spry.is.ie && Spry.is.version < 7){
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
this.upKeyCode = Spry.Widget.MenuBar.KEY_UP;
this.downKeyCode = Spry.Widget.MenuBar.KEY_DOWN;
this.leftKeyCode = Spry.Widget.MenuBar.KEY_LEFT;
this.rightKeyCode = Spry.Widget.MenuBar.KEY_RIGHT;
this.escKeyCode = Spry.Widget.MenuBar.KEY_ESC;
this.hoverClass = 'MenuBarItemHover';
this.subHoverClass = 'MenuBarItemSubmenuHover';
this.subVisibleClass ='MenuBarSubmenuVisible';
this.hasSubClass = 'MenuBarItemSubmenu';
this.activeClass = 'MenuBarActive';
this.isieClass = 'MenuBarItemIE';
this.verticalClass = 'MenuBarVertical';
this.horizontalClass = 'MenuBarHorizontal';
this.enableKeyboardNavigation = true;
this.hasFocus = false;
// load hover images now
if(opts)
for(var k in opts)
if (typeof this[k] == 'undefined')
var rollover = new Image;
rollover.src = opts[k];
Spry.Widget.MenuBar.setOptions(this, opts);
// safari doesn't support tabindex
if (Spry.is.safari)
this.enableKeyboardNavigation = false;
if(this.element)
this.currMenu = this.element;
var items = this.element.getElementsByTagName('li');
for(var i=0; i<items.length; i++)
if (i > 0 && this.enableKeyboardNavigation)
items[i].getElementsByTagName('a')[0].tabIndex='-1';
this.initialize(items[i], element);
if(Spry.is.ie)
this.addClassName(items[i], this.isieClass);
items[i].style.position = "static";
if (this.enableKeyboardNavigation)
var self = this;
this.addEventListener(document, 'keydown', function(e){self.keyDown(e); }, false);
if(Spry.is.ie)
if(this.hasClassName(this.element, this.verticalClass))
this.element.style.position = "relative";
var linkitems = this.element.getElementsByTagName('a');
for(var i=0; i<linkitems.length; i++)
linkitems[i].style.position = "relative";
Spry.Widget.MenuBar.KEY_ESC = 27;
Spry.Widget.MenuBar.KEY_UP = 38;
Spry.Widget.MenuBar.KEY_DOWN = 40;
Spry.Widget.MenuBar.KEY_LEFT = 37;
Spry.Widget.MenuBar.KEY_RIGHT = 39;
Spry.Widget.MenuBar.prototype.getElement = function(ele)
if (ele && typeof ele == "string")
return document.getElementById(ele);
return ele;
Spry.Widget.MenuBar.prototype.hasClassName = function(ele, className)
if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
return false;
return true;
Spry.Widget.MenuBar.prototype.addClassName = function(ele, className)
if (!ele || !className || this.hasClassName(ele, className))
return;
ele.className += (ele.className ? " " : "") + className;
Spry.Widget.MenuBar.prototype.removeClassName = function(ele, className)
if (!ele || !className || !this.hasClassName(ele, className))
return;
ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
// addEventListener for Menu Bar
// attach an event to a tag without creating obtrusive HTML code
Spry.Widget.MenuBar.prototype.addEventListener = function(element, eventType, handler, capture)
try
if (element.addEventListener)
element.addEventListener(eventType, handler, capture);
else if (element.attachEvent)
element.attachEvent('on' + eventType, handler);
catch (e) {}
// createIframeLayer for Menu Bar
// creates an IFRAME underneath a menu so that it will show above form controls and ActiveX
Spry.Widget.MenuBar.prototype.createIframeLayer = function(menu)
var layer = document.createElement('iframe');
layer.tabIndex = '-1';
layer.src = 'javascript:""';
layer.frameBorder = '0';
layer.scrolling = 'no';
menu.parentNode.appendChild(layer);
layer.style.left = menu.offsetLeft + 'px';
layer.style.top = menu.offsetTop + 'px';
layer.style.width = menu.offsetWidth + 'px';
layer.style.height = menu.offsetHeight + 'px';
// removeIframeLayer for Menu Bar
// removes an IFRAME underneath a menu to reveal any form controls and ActiveX
Spry.Widget.MenuBar.prototype.removeIframeLayer = function(menu)
var layers = ((menu == this.element) ? menu : menu.parentNode).getElementsByTagName('iframe');
while(layers.length > 0)
layers[0].parentNode.removeChild(layers[0]);
// clearMenus for Menu Bar
// root is the top level unordered list (<ul> tag)
Spry.Widget.MenuBar.prototype.clearMenus = function(root)
var menus = root.getElementsByTagName('ul');
for(var i=0; i<menus.length; i++)
this.hideSubmenu(menus[i]);
this.removeClassName(this.element, this.activeClass);
// bubbledTextEvent for Menu Bar
// identify bubbled up text events in Safari so we can ignore them
Spry.Widget.MenuBar.prototype.bubbledTextEvent = function()
return Spry.is.safari && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget));
// showSubmenu for Menu Bar
// set the proper CSS class on this menu to show it
Spry.Widget.MenuBar.prototype.showSubmenu = function(menu)
if(this.currMenu)
this.clearMenus(this.currMenu);
this.currMenu = null;
if(menu)
this.addClassName(menu, this.subVisibleClass);
if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
if(!this.hasClassName(this.element, this.horizontalClass) || menu.parentNode.parentNode != this.element)
menu.style.top = menu.parentNode.offsetTop + 'px';
if(Spry.is.ie && Spry.is.version < 7)
this.createIframeLayer(menu);
this.addClassName(this.element, this.activeClass);
// hideSubmenu for Menu Bar
// remove the proper CSS class on this menu to hide it
Spry.Widget.MenuBar.prototype.hideSubmenu = function(menu)
if(menu)
this.removeClassName(menu, this.subVisibleClass);
if(typeof document.all != 'undefined' && !Spry.is.opera && navigator.vendor != 'KDE')
menu.style.top = '';
menu.style.left = '';
if(Spry.is.ie && Spry.is.version < 7)
this.removeIframeLayer(menu);
// initialize for Menu Bar
// create event listeners for the Menu Bar widget so we can properly
// show and hide submenus
Spry.Widget.MenuBar.prototype.initialize = function(listitem, element)
var opentime, closetime;
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
if(menu)
this.addClassName(link, this.hasSubClass);
if(!Spry.is.ie)
// define a simple function that comes standard in IE to determine
// if a node is within another node
listitem.contains = function(testNode)
// this refers to the list item
if(testNode == null)
return false;
if(testNode == this)
return true;
else
return this.contains(testNode.parentNode);
// need to save this for scope further down
var self = this;
this.addEventListener(listitem, 'mouseover', function(e){self.mouseOver(listitem, e);}, false);
this.addEventListener(listitem, 'mouseout', function(e){if (self.enableKeyboardNavigation) self.clearSelection(); self.mouseOut(listitem, e);}, false);
if (this.enableKeyboardNavigation)
this.addEventListener(link, 'blur', function(e){self.onBlur(listitem);}, false);
this.addEventListener(link, 'focus', function(e){self.keyFocus(listitem, e);}, false);
Spry.Widget.MenuBar.prototype.keyFocus = function (listitem, e)
this.lastOpen = listitem.getElementsByTagName('a')[0];
this.addClassName(this.lastOpen, listitem.getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
this.hasFocus = true;
Spry.Widget.MenuBar.prototype.onBlur = function (listitem)
this.clearSelection(listitem);
Spry.Widget.MenuBar.prototype.clearSelection = function(el){
//search any intersection with the current open element
if (!this.lastOpen)
return;
if (el)
el = el.getElementsByTagName('a')[0];
// check children
var item = this.lastOpen;
while (item != this.element)
var tmp = el;
while (tmp != this.element)
if (tmp == item)
return;
try{
tmp = tmp.parentNode;
}catch(err){break;}
item = item.parentNode;
var item = this.lastOpen;
while (item != this.element)
this.hideSubmenu(item.parentNode);
var link = item.getElementsByTagName('a')[0];
this.removeClassName(link, this.hoverClass);
this.removeClassName(link, this.subHoverClass);
item = item.parentNode;
this.lastOpen = false;
Spry.Widget.MenuBar.prototype.keyDown = function (e)
if (!this.hasFocus)
return;
if (!this.lastOpen)
this.hasFocus = false;
return;
var e = e|| event;
var listitem = this.lastOpen.parentNode;
var link = this.lastOpen;
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
var opts = [listitem, menu, null, this.getSibling(listitem, 'previousSibling'), this.getSibling(listitem, 'nextSibling')];
if (!opts[3])
opts[2] = (listitem.parentNode.parentNode.nodeName.toLowerCase() == 'li')?listitem.parentNode.parentNode:null;
var found = 0;
switch (e.keyCode){
case this.upKeyCode:
found = this.getElementForKey(opts, 'y', 1);
break;
case this.downKeyCode:
found = this.getElementForKey(opts, 'y', -1);
break;
case this.leftKeyCode:
found = this.getElementForKey(opts, 'x', 1);
break;
case this.rightKeyCode:
found = this.getElementForKey(opts, 'x', -1);
break;
case this.escKeyCode:
case 9:
this.clearSelection();
this.hasFocus = false;
default: return;
switch (found)
case 0: return;
case 1:
//subopts
this.mouseOver(listitem, e);
break;
case 2:
//parent
this.mouseOut(opts[2], e);
break;
case 3:
case 4:
// left - right
this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
break;
var link = opts[found].getElementsByTagName('a')[0];
if (opts[found].nodeName.toLowerCase() == 'ul')
opts[found] = opts[found].getElementsByTagName('li')[0];
this.addClassName(link, opts[found].getElementsByTagName('ul').length > 0 ? this.subHoverClass : this.hoverClass);
this.lastOpen = link;
opts[found].getElementsByTagName('a')[0].focus();
//stop further event handling by the browser
return Spry.Widget.MenuBar.stopPropagation(e);
Spry.Widget.MenuBar.prototype.mouseOver = function (listitem, e)
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
if (this.enableKeyboardNavigation)
this.clearSelection(listitem);
if(this.bubbledTextEvent())
// ignore bubbled text events
return;
if (listitem.closetime)
clearTimeout(listitem.closetime);
if(this.currMenu == listitem)
this.currMenu = null;
// move the focus too
if (this.hasFocus)
link.focus();
// show menu highlighting
this.addClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
this.lastOpen = link;
if(menu && !this.hasClassName(menu, this.subHoverClass))
var self = this;
listitem.opentime = window.setTimeout(function(){self.showSubmenu(menu);}, this.showDelay);
Spry.Widget.MenuBar.prototype.mouseOut = function (listitem, e)
var link = listitem.getElementsByTagName('a')[0];
var submenus = listitem.getElementsByTagName('ul');
var menu = (submenus.length > 0 ? submenus[0] : null);
var hasSubMenu = (menu) ? true : false;
if(this.bubbledTextEvent())
// ignore bubbled text events
return;
var related = (typeof e.relatedTarget != 'undefined' ? e.relatedTarget : e.toElement);
if(!listitem.contains(related))
if (listitem.opentime)
clearTimeout(listitem.opentime);
this.currMenu = listitem;
// remove menu highlighting
this.removeClassName(link, hasSubMenu ? this.subHoverClass : this.hoverClass);
if(menu)
var self = this;
listitem.closetime = window.setTimeout(function(){self.hideSubmenu(menu);}, this.hideDelay);
if (this.hasFocus)
link.blur();
Spry.Widget.MenuBar.prototype.getSibling = function(element, sibling)
var child = element[sibling];
while (child && child.nodeName.toLowerCase() !='li')
child = child[sibling];
return child;
Spry.Widget.MenuBar.prototype.getElementForKey = function(els, prop, dir)
var found = 0;
var rect = Spry.Widget.MenuBar.getPosition;
var ref = rect(els[found]);
var hideSubmenu = false;
//make the subelement visible to compute the position
if (els[1] && !this.hasClassName(els[1], this.MenuBarSubmenuVisible))
els[1].style.visibility = 'hidden';
this.showSubmenu(els[1]);
hideSubmenu = true;
var isVert = this.hasClassName(this.element, this.verticalClass);
var hasParent = els[0].parentNode.parentNode.nodeName.toLowerCase() == 'li' ? true : false;
for (var i = 1; i < els.length; i++){
//when navigating on the y axis in vertical menus, ignore children and parents
if(prop=='y' && isVert && (i==1 || i==2))
continue;
//when navigationg on the x axis in the FIRST LEVEL of horizontal menus, ignore children and parents
if(prop=='x' && !isVert && !hasParent && (i==1 || i==2))
continue;
if (els[i])
var tmp = rect(els[i]);
if ( (dir * tmp[prop]) < (dir * ref[prop]))
ref = tmp;
found = i;
// hide back the submenu
if (els[1] && hideSubmenu){
this.hideSubmenu(els[1]);
els[1].style.visibility = '';
return found;
Spry.Widget.MenuBar.camelize = function(str)
if (str.indexOf('-') == -1){
return str;
var oStringList = str.split('-');
var isFirstEntry = true;
var camelizedString = '';
for(var i=0; i < oStringList.length; i++)
if(oStringList[i].length>0)
if(isFirstEntry)
camelizedString = oStringList[i];
isFirstEntry = false;
else
var s = oStringList[i];
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
return camelizedString;
Spry.Widget.MenuBar.getStyleProp = function(element, prop)
var value;
try
if (element.style)
value = element.style[Spry.Widget.MenuBar.camelize(prop)];
if (!value)
if (document.defaultView && document.defaultView.getComputedStyle)
var css = document.defaultView.getComputedStyle(element, null);
value = css ? css.getPropertyValue(prop) : null;
else if (element.currentStyle)
value = element.currentStyle[Spry.Widget.MenuBar.camelize(prop)];
catch (e) {}
return value == 'auto' ? null : value;
Spry.Widget.MenuBar.getIntProp = function(element, prop)
var a = parseInt(Spry.Widget.MenuBar.getStyleProp(element, prop),10);
if (isNaN(a))
return 0;
return a;
Spry.Widget.MenuBar.getPosition = function(el, doc)
doc = doc || document;
if (typeof(el) == 'string') {
el = doc.getElementById(el);
if (!el) {
return false;
if (el.parentNode === null || Spry.Widget.MenuBar.getStyleProp(el, 'display') == 'none') {
//element must be visible to have a box
return false;
var ret = {x:0, y:0};
var parent = null;
var box;
if (el.getBoundingClientRect) { // IE
box = el.getBoundingClientRect();
var scrollTop = doc.documentElement.scrollTop || doc.body.scrollTop;
var scrollLeft = doc.documentElement.scrollLeft || doc.body.scrollLeft;
ret.x = box.left + scrollLeft;
ret.y = box.top + scrollTop;
} else if (doc.getBoxObjectFor) { // gecko
box = doc.getBoxObjectFor(el);
ret.x = box.x;
ret.y = box.y;
} else { // safari/opera
ret.x = el.offsetLeft;
ret.y = el.offsetTop;
parent = el.offsetParent;
if (parent != el) {
while (parent) {
ret.x += parent.offsetLeft;
ret.y += parent.offsetTop;
parent = parent.offsetParent;
// opera & (safari absolute) incorrectly account for body offsetTop
if (Spry.is.opera || Spry.is.safari && Spry.Widget.MenuBar.getStyleProp(el, 'position') == 'absolute')
ret.y -= doc.body.offsetTop;
if (el.parentNode)
parent = el.parentNode;
else
parent = null;
if (parent.nodeName){
var cas = parent.nodeName.toUpperCase();
while (parent && cas != 'BODY' && cas != 'HTML') {
cas = parent.nodeName.toUpperCase();
ret.x -= parent.scrollLeft;
ret.y -= parent.scrollTop;
if (parent.parentNode)
parent = parent.parentNode;
else
parent = null;
return ret;
Spry.Widget.MenuBar.stopPropagation = function(ev)
if (ev.stopPropagation)
ev.stopPropagation();
else
ev.cancelBubble = true;
if (ev.preventDefault)
ev.preventDefault();
else
ev.returnValue = false;
Spry.Widget.MenuBar.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
if (!optionsObj)
return;
for (var optionName in optionsObj)
if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
continue;
obj[optionName] = optionsObj[optionName];
And last, here is the HTML code that has also not been modified in any way:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="../BXC Main Navigation Spry Drop Menu/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../BXC Main Navigation Spry Drop Menu/SpryAssets/SpryMenuBarHorizontal4.css" rel="stylesheet" type="text/css" />
</head>
<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">Buy</a>
<ul>
<li><a href="#">Shop from Private Owner</a></li>
<li><a href="#">Shop Direct from Stores</a></li>
<li><a href="#">Help Buying</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Bid</a>
<ul>
<li><a href="#">Shop from Auction</a></li>
<li><a href="#">Help Bidding</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Trade</a>
<ul>
<li><a href="#">Shop for Trades</a></li>
<li><a href="#">Help Trading</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu" href="#">List Items</a>
<ul>
<li><a href="#">List Items in Auction</a></li>
<li><a href="#">List Items for Sale</a></li>
<li><a href="#">List Items for Trade</a></li>
<li><a href="#">Help Listing Items</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Intro</a>
<ul>
<li><a href="#">Flash Site &amp; Intro</a></li>
<li><a href="#">About Us</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">My Xchange</a>
<ul>
<li><a href="#">Activity</a></li>
<li><a href="#">Account</a></li>
<li><a href="#">Mail</a></li>
</ul>
</li>
<li><a href="#">Contact Us</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Help</a>
<ul>
<li><a href="#">Main Help</a></li>
<li><a href="#">Site Map</a></li>
</ul>
</li>
</ul>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
Thanks in advance for any of your help.
Jose H.Hello Nancy,
I was troubleshooting For the next 8 hours after my post here and eventually I got it right, I uploaded the files to the test server and at the time did not have the chance to post the solution here. This is why, as you saw, it is working correctly now. Both the CSS and HTML files needed modifications. While working on the code I had to run IE8, Chrome and Firefox simultaneously and refresh all three after every change in the code because what would fix the problem in one would cause a problem for the other.
In addition to the problems listed in my original post, there were also other graphical issues in IE8, such as; the main menu buttons without sub-menus would only display at half their size vertically. The border around the buttons would not display despite that the background images were rendered in Photoshop as flattened JPEGs with boarders as part of the background image. Being so, I removed all borders from the CSS script.
By the way.. the IE8 security measure did pop up while working from the server.
Anyhow for those of you who are experiencing similar problems you can take a look at the working code bellow and compare it to the initial code. I've included detail comments on every line I have changed, modified or added.
Good luck.. as I know it can become a complicated task when creating custom Spry menus.
<b>Here is the finished CSS script</b>
<code>@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 10;
padding: 0;
list-style-type: none;
/* font size for top menu*/
font-size: 80%;
cursor: default;
width: auto;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-align: center;
/*whole menu moves*/
margin-left: 100px;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* My Note --Top buttons' background, height and font size adjust-- */
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
/* My note --I added the height and background-image as Main-Buttons.jpg-- */
height: 55px;
background-image: url(../Main-Buttons.jpg);
margin: -2;
padding: 0;
list-style-type: none;
font-size: 100%;
position: center;
/*text-align: left;*/
cursor: pointer;
width: 99px;
float: left;
/* My note --Submenu font size adjust-- */
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 87%;
z-index: 1020;
cursor: default;
width: 160px;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
/* My note --this margin alligns the drop buttons up and down-- */
margin-top: 0px;
height: 25px;
left: auto;
/* My note --drop menu size adjustments-- */
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
height: 25px;
width: 162px;
/* New addition */
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position:absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
/*border: 1px solid #CCC;*/
/* My note --Text Allignment global-- */
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
/*My note -- took out borders & changed text color to #333(black)& added my own mouse not over image-- */
/*border: 0px solid #333332;*/
background-image: url(../Main-Buttons.jpg);
/*height: 40px;*/
text-align: center;
display: block;
cursor: pointer;
padding: 0.5em 0.75em;
text-decoration: none;
/*My note --Text Color-- */
color: #333; /*background-color: was #CCC;*/
letter-spacing: -0.00px;
margin-left: 1px;
margin-right: 0px;
/*alligns text up or down globally*/
margin-top: 1px;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
/* My note --took out all backgound & text color for mouse over-- */
/*background-color: #33C;
color: #FFF;*/
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
/*My note -- took out background & text & added my own mouse over image-- */
background-image: url(../Main-Buttons-mouse-over.jpg);
/*background-color: #33C;
color: #FFF;*/
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
/* My note --!!!!!This height setting adjusts the main buttons' background height in IE8!!!!-- */
height: 40px;
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
/* My note --mouse over-- */
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
/* My note --The backgound color below was changed here to the same color #3e6487 as the darkest tone in the background image graphic to mimic the original image borders; dark blue, since IE8 for some reason would cut them out. This change allows this dark blue background to display around the main top buttons in IE8 giving the appearance of borders*/
background: #3e6487;
</code>
<b>Here is the modified HTML script</b>
<code><!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="/SpryAssets/SpryMenuBarHorizontal4.css" rel="stylesheet" type="text/css" />
</head>
<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">Buy</a>
<ul>
<li><a href="#">Shop from Private Owner</a></li>
<li><a href="#">Shop Direct from Stores</a></li>
<li><a href="#">Help Buying</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Bid</a>
<ul>
<li><a href="#">Shop from Auction</a></li>
<li><a href="#">Help Bidding</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Trade</a>
<ul>
<li><a href="#">Shop for Trades</a></li>
<li><a href="#">Help Trading</a></li>
</ul>
</li>
<li><a class="MenuBarItemSubmenu" href="#">List Items</a>
<ul>
<li><a href="#">List Items in Auction</a></li>
<li><a href="#">List Items for Sale</a></li>
<li><a href="#">List Items for Trade</a></li>
<li><a href="#">Help Listing Items</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Intro</a>
<ul>
<li><a href="#">Flash Site &amp; Intro</a></li>
<li><a href="#">About Us</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">My Xchange</a>
<ul>
<li><a href="#">Activity</a></li>
<li><a href="#">Account</a></li>
<li><a href="#">Mail</a></li>
</ul>
</li>
<!-- My note --the bellow line was: <li><a href="#">Contact Us</a></li> --- changing it to: <li><a href="#" class="MenuBarItemSubmenu">Contact Us</a> corrected the height of the Contact us button wich did not have sub menus and because of this only diplayed at half size vertically in IE8 //-->
<li><a href="#" class="MenuBarItemSubmenu">Contact Us</a>
<li><a href="#" class="MenuBarItemSubmenu">Help</a>
<ul>
<li><a href="#">Main Help</a></li>
<li><a href="#">Site Map</a></li>
</ul>
</li>
</ul>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
</code>
And Richard.. Thanks again for the time and your help, truly appreciated.
Jose H. -
Spry Drop Down Menu not appearing in I.E.8
I have created a spry drop down menu in Dreamweaver CS5, brought it to my webpage in Macromedia Dreamweaver, uploaded it and when I view the website in I.E. 8 only the top tabs of the menu appear. When I scroll over it, no drop down menu shows. Please help.
Below is the coding i have for my menu...and the site address is www.setonyouthshelters.org
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="/public_html/javascript/tableHeight.js"></script>
<script src="file:///C|/Documents%20and%20Settings/Mother%20Seton%20House/My%20Documents/Seton_Youth_Sh elters/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Seton Youth Shelters</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link href="/css/seaton.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#MenuBar1 li strong {
font-family: Georgia, "Times New Roman", Times, serif;
text-align: right;
#MenuBar1 li strong {
font-size: 10px;
#MenuBar1 li strong {
font-size: 18px;
.email {
text-align: center;
font-size: 9px;
font-weight: bold;
</style>
<script type="text/javascript">
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_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_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>
<link href="file:///C|/Documents%20and%20Settings/Mother%20Seton%20House/My%20Documents/Seton_Youth_Sh elters/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('/images/home_button1.gif','/images/about_usbutton1.gif','/image s/programs_button1.gif','/images/events_button1.gif','/images/contribute_button1.gif','/im ages/contact_usbutton1.gif','/images/bigchillbutton1.gif','/images/derbybutton1.gif','/ima ges/sponsorshipinfobutton1.gif','/images/fashionbutton1.gif','/images/footballbutton1.gif' ,'/images/golfoutingbutton1.gif','/images/kingswalkbutton1.gif','/images/monsterbutton1.gi f','/images/supperbutton1.gif','/images/summerbutton1.gif','/images/winebutton1.gif','/ima ges/boardofdirectors1.gif','/images/funding1.gif','/images/missionprograms1.gif','/images/ newsletter1.gif','/images/support1.gif','/images/counseling1.gif','/images/inschool1.gif', '/images/mentoring1.gif','/images/parentservices1.gif','/images/safeplace.gif','/images/sh elter.gif','/images/streetoutreach1.gif','/images/volunteer1.gif','/images/youthambassador s.gif','/images/donationsbutton1.gif','/images/thriftstorebutton1.gif')">
<!-- DO NOT MOVE! The following AllWebMenus code must always be placed right AFTER the BODY tag-->
<!-- ******** BEGIN ALLWEBMENUS CODE FOR setonhouseRevII ******** -->
<span id='xawmMenuPathImg-setonhouseRevII' style='position:absolute;top:-50px'><img name='awmMenuPathImg-setonhouseRevII' id='awmMenuPathImg-setonhouseRevII' src='/public_html/awmmenupath.gif' alt='' /></span>
<script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='DW'; awmAltUrl='';</script>
<script src='/public_html/setonhouseRevII.js' language='JavaScript1.2' type='text/javascript'></script>
<script type='text/javascript'>awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR setonhouseRevII ******** -->
<!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag-->
<style type="text/css">
.awmAnchor {position:relative;z-index:0}
</style>
<table width="790" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#C81F36"><table width="790" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td align="right" bgcolor="#1C1D4D"><p><img src="/images/headerimg.gif" alt="header" width="800" height="150" hspace="5" align="middle" /></p>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','/images/home_button1.gif',1)"><img src="/images/home_button.gif" alt="HOME" name="home" width="110" height="35" border="0" id="home" /></a></li>
<li><a href="/about/aboutus.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('aboutus','','/images/about_usbutton1.gif',1)"><img src="/images/about_usbutton.gif" alt="ABOUT US" name="aboutus" width="110" height="35" border="0" id="aboutus" /></a>
<ul>
<li><a href="/about/board_of_directors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('boardofdirectors','','/images/boardofdirectors1.gif',1)"><img src="/images/boardofdirectors.gif" alt="BOARD OF DIRECTORS" name="boardofdirectors" width="110" height="18" border="0" id="boardofdirectors" /></a></li>
<li><a href="/about/funding.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('funding','','/images/funding1.gif',1)"><img src="/images/funding.gif" alt="FUNDING" name="funding" width="110" height="18" border="0" id="funding" /></a></li>
<li><a href="/about/mission_programs.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('missionprograms','','/images/missionprograms1.gif',1)"><img src="/images/missionprograms.gif" alt="MISSION PROGRAMS" name="missionprograms" width="110" height="18" border="0" id="missionprograms" /></a></li>
<li><a href="/about/newsletter_archives.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('newsletter','','/images/newsletter1.gif',1)"><img src="/images/newsletter.gif" alt="NEWSLETTER" name="newsletter" width="110" height="18" border="0" id="newsletter" /></a></li>
<li><a href="/about/support.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('support','','/images/support1.gif',1)"><img src="/images/support.gif" alt="SUPPORT" name="support" width="110" height="18" border="0" id="support" /></a></li>
</ul>
</li>
<li><a href="/programs/board_of_directors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('programs','','/images/programs_button1.gif',1)"><img src="/images/programs_button.gif" alt="PROGRAMS" name="programs" width="110" height="35" border="0" id="programs" /></a>
<ul>
<li><a href="/programs/counseling.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('counseling','','/images/counseling1.gif',1)"><img src="/images/counseling.gif" alt="COUNSELING" name="counseling" width="110" height="18" border="0" id="counseling" /></a></li>
<li><a href="/programs/in_school.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('inschool','','/images/inschool1.gif',1)"><img src="/images/inschool.gif" alt="IN SCHOOL" name="inschool" width="110" height="18" border="0" id="inschool" /></a></li>
<li><a href="/programs/mentoring.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mentoring','','/images/mentoring1.gif',1)"><img src="/images/mentoring.gif" alt="MENTORING" name="mentoring" width="110" height="18" border="0" id="mentoring" /></a></li>
<li><a href="/programs/parent_services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('parentservices','','/images/parentservices1.gif',1)"><img src="/images/parent_services.gif" alt="PARENT SERVICES" name="parentservices" width="110" height="18" border="0" id="parentservices" /></a></li>
<li><a href="/programs/safe_place.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('safeplace','','/images/safeplace.gif',1)"><img src="/images/safeplace1.gif" alt="SAFE PLACE" name="safeplace" width="110" height="18" border="0" id="safeplace" /></a></li>
<li><a href="/programs/shelter.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('shelter','','/images/shelter.gif',1)"><img src="/images/shelter1.gif" alt="SHELTER" name="shelter" width="110" height="18" border="0" id="shelter" /></a></li>
<li><a href="/programs/street_outreach.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('streetoutreach','','/images/streetoutreach1.gif',1)"><img src="/images/streetoutreach.gif" alt="STREET OUTREACH" name="streetoutreach" width="110" height="18" border="0" id="streetoutreach" /></a></li>
<li><a href="/programs/volunteer.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('volunteer','','/images/volunteer1.gif',1)"><img src="/images/volunteer.gif" alt="VOLUNTEER" name="volunteer" width="110" height="18" border="0" id="volunteer" /></a></li>
<li><a href="/programs/youth_ambassadors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('youthambassadors','','/images/youthambassadors.gif',1)"><img src="/images/youthambassadors1.gif" alt="YOUTH AMBASSADORS" name="youthambassadors" width="110" height="18" border="0" id="youthambassadors" /></a></li>
</ul>
</li>
<li><a href="/events/annualfundcampaign/annual_fund.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('events','','/images/events_button1.gif',1)"><img src="/images/events_button.gif" alt="EVENTS" name="events" width="110" height="35" border="0" id="events" /></a>
<ul>
<li><a href="/events/big_chill/big_chill.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('bigchill','','/images/bigchillbutton1.gif',1)"><img src="/images/bigchillbutton.gif" alt="BIG CHILL" name="bigchill" width="115" height="36" border="0" id="bigchill" /></a></li>
<li><a href="/events/derby/derby_party.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('kentuckyderby','','/images/derbybutton1.gif',1)"><img src="/images/derbybutton.gif" alt="KENTUCKY DERBY" name="kentuckyderby" width="115" height="36" border="0" id="kentuckyderby" /></a></li>
<li><a href="/events/fashion/fashion_show.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('fashionshow','','/images/fashionbutton1.gif',1)"><img src="/images/fashionbutton.gif" alt="FASHION SHOW" name="fashionshow" width="115" height="36" border="0" id="fashionshow" /></a></li>
<li><a href="/events/golf/golf_outing.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('golfouting','','/images/golfoutingbutton1.gif',1)"><img src="/images/golfoutingbutton.gif" alt="GOLF OUTING" name="golfouting" width="115" height="36" border="0" id="golfouting" /></a></li>
<li><a href="/events/seton_supper_club/seton_supper_club.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('setonsupperclub','','/images/supperbutton1.gif',1)"><img src="/images/supperbutton.gif" alt="SETON SUPPER CLUB" name="setonsupperclub" width="115" height="36" border="0" id="setonsupperclub" /></a></li>
<li><a href="/events/summercel.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('summercelebration','','/images/summerbutton1.gif',1)"><img src="/images/summerbutton.gif" alt="SUMMER CELEBRATION" name="summercelebration" width="115" height="36" border="0" id="summercelebration" /></a></li>
<li><a href="/events/wine_tasting/wine_tasting.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('winetasting','','/images/winebutton1.gif',1)"><img src="/images/winebutton.gif" alt="WINE TASTING" name="winetasting" width="115" height="36" border="0" id="winetasting" /></a></li>
</ul>
</li>
<li><a href="/contribute/contribute_first_page.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contribute','','/images/contribute_button1.gif',1)"><img src="/images/contribute_button.gif" alt="CONTRIBUTE" name="contribute" width="110" height="35" border="0" id="contribute" /></a>
<ul>
<li><a href="/contribute/donations.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('donations','','/images/donationsbutton1.gif',1)"><img src="/images/donationsbutton.gif" alt="DONATIONS" name="donations" width="110" height="35" border="0" id="donations" /></a></li>
<li><a href="/contribute/sponsors.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('sponsors','','/images/sponsorbutton1.gif',1)"><img src="/images/sponsorbutton.gif" alt="SPONSORS" name="sponsors" width="110" height="15" border="0" id="sponsors" /></a></li>
<li><a href="/contribute/thrift_store_USA.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('thriftstore','','/images/thriftstorebutton1.gif',1)"><img src="/images/thriftstorebutton.gif" alt="THRIFT STORE" name="thriftstore" width="110" height="35" border="0" id="thriftstore" /></a></li>
</ul>
</li>
<li><a href="/contact/contactus.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contactus','','/images/contact_usbutton1.gif',1)"><img src="/images/contact_usbutton.gif" alt="CONTACT US" name="contactus" width="110" height="35" border="0" id="contactus" /></a></li>
</ul></td> -
Drop down menu to left instead of below
HI, I have created a drop down menu in Dreamweaver 8 (since I can't install my CS4).
Anyways everything looks fine and works fine on IE, FireFox and safari when I look at the site but when I sent the link to my client to review the site the drop down for one of the headings pops up to the left on the screen.
I cannot see the problem when looking at the code and I have 2 computers and a laptop and I don't see the problem. But apparently all of their employees see the drop down to the left for the "Education" heading.
Can someone have a look or let me know why this is happening?
http://csrt.com/New/en/index.asp
Thank youThe dropdown works for me correctly in FFs and IE7. However, when I put the page through the validator you get quite a few errors:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fcsrt.com%2FNew%2Fen%2Findex.asp
On looking at the code however, I see the javascript for the MM menus right at the top of the document, which is why the validator is throwing the first error..... this is throwing the page into quirks mode and very likely causing the problem with your clients viewing the page.
That js code should be in the head of the document, not above the doctype line.... did you move the js into the document at any time?
You do realise that those menus are not highly regarded and should not be used - read why:
http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
http://apptools.com/rants/jsmenu.php
http://apptools.com/rants/menus.php -
I need to create a drop down menu in dreamweaver using my own button, I do not seem to be able to to this using spry. I have tried fireworks but the buttons do not work properly. Can any one help
Have a look here http://foundationphp.com/tutorials/sprymenu/customize1.php
Gramps
Maybe you are looking for
-
Hi!. Using Windows Vista Home Basic and to try to install the update to AReader 8.1.1 could not be completed the installation. Reporting System Error 1402: Error 1402. Could not open key: HKEY_LOCAL_MACHINE\Software\Classes\CLSID\ D38406DA-E8AA-484b-
-
Silhouettes in "Shared" folder
I can't figure out how to use the Silhouettes found in the "Shared" folder. I'd like to use this shape as an object in a project, but can't get rid of the "number in a movie frame" icon. Is this simply meant to be a "place holder" like the other "Rep
-
Hi! I just read this article: http://searchsecurity.techtarget.com.au/articles/30021-Researcher-finds-flaws-in -Mac-OS-X-memory And I want to know... Is this totally true?? How we can protect our systems?? Is Mac OS X 10.6 the only solution? I want t
-
Duplicate Submit with one click / IndexOutOfBoundsException
Hello all, When I submit a form to insert data to the database with one button click, the form has been submitted twice. I can see the behavoirs from my debug statements. Sometimes, two records are inserted to database. Sometimes, the "IndexOutOfBoun
-
Firefox running slow or not loading sites before and after security update
Firefox was slow or would time out loading websites and I got a notice of security update. I'm running Mac OS 10.5.8 and Firefox 10.0.1. I've tried saving a new profile in Terminal and it keeps telling me "firefox-bin quit unexpectedly). I've tried t