Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-2008, 03:43 PM
brian@sowter.co.uk
 
Posts: n/a
SpryMenuBar.js

I have a problem with my site. I am trying to add a horizontal menu but I cant
make it display the submenu. To test the code supplied with Dreamweaver I made
a new blank page and inserted a Spry Menu bar (horizontal). When I test this
on my website the menu appears correctly but when I mouseover the Item 1 or
Item 4 which have drop downs I get the word "false" instead of "item1.1" etc.
The Vertical menu works fine. I use the latest Internet explorer.

Is there a fix for this problem please?

You can see the problem at www.sowter.co.uk/Menutest.html

Brian


<!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/SpryMenuBarHorizontal.css" rel="stylesheet"
type="text/css" />
</head>

<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
<ul>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
</ul>
</li>
<li><a href="#">Item 2</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
<ul>
<li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
<ul>
<li><a href="#">Item 3.1.1</a></li>
<li><a href="#">Item 3.1.2</a></li>
</ul>
</li>
<li><a href="#">Item 3.2</a></li>
<li><a href="#">Item 3.3</a></li>
</ul>
</li>
<li><a href="#">Item 4</a></li>
</ul>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>

Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 03:59 PM
Ken Ford
 
Posts: n/a
Re: SpryMenuBar.js

Brian,

You are using version 1.4 of Spry.

Get the new 1.6.1 version here:

http://www.macromedia.com/go/labs_spry_download

There is also an extension for DW there.

--
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"brian@sowter.co.uk" <webforumsuser@macromedia.com> wrote in message news:g4o19q$jua$1@forums.macromedia.com...
>I have a problem with my site. I am trying to add a horizontal menu but I cant
> make it display the submenu. To test the code supplied with Dreamweaver I made
> a new blank page and inserted a Spry Menu bar (horizontal). When I test this
> on my website the menu appears correctly but when I mouseover the Item 1 or
> Item 4 which have drop downs I get the word "false" instead of "item1.1" etc.
> The Vertical menu works fine. I use the latest Internet explorer.
>
> Is there a fix for this problem please?
>
> You can see the problem at www.sowter.co.uk/Menutest.html
>
> Brian
>
>
> <!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/SpryMenuBarHorizontal.css" rel="stylesheet"
> type="text/css" />
> </head>
>
> <body>
> <ul id="MenuBar1" class="MenuBarHorizontal">
> <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
> <ul>
> <li><a href="#">Item 1.1</a></li>
> <li><a href="#">Item 1.2</a></li>
> <li><a href="#">Item 1.3</a></li>
> </ul>
> </li>
> <li><a href="#">Item 2</a></li>
> <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
> <ul>
> <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
> <ul>
> <li><a href="#">Item 3.1.1</a></li>
> <li><a href="#">Item 3.1.2</a></li>
> </ul>
> </li>
> <li><a href="#">Item 3.2</a></li>
> <li><a href="#">Item 3.3</a></li>
> </ul>
> </li>
> <li><a href="#">Item 4</a></li>
> </ul>
> <script type="text/javascript">
> <!--
> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
> {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
> imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
> //-->
> </script>
> </body>
> </html>
>

Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 04:08 PM
brian@sowter.co.uk
 
Posts: n/a
Re: SpryMenuBar.js

Hi Ken Thnks for this. It now works perfectly! .......except....can you
please tell me how to modify the text colour and the alignment of the text in
the top menu. Also how could I make the menu into "buttons" eg by putting a
border round them the same as the background. Progress so far can be viewed at
www.sowter.co.uk/homebsf.html

Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 02:45 AM
Ken Ford
 
Posts: n/a
Re: SpryMenuBar.js

The first thing you need to do is clean up the page HTML.

You have this above the DOCTYPE:

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>

Delete that, it is throwing Internet Explorer into "quirks" mode.

Then you have template code on the page. Delete the following:

<!-- TemplateBeginEditable name="doctitle" -->

<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="EditRegion" -->

<!-- TemplateEndEditable -->

The template code belongs on the template page.

And then try this in your CSS:

ul.MenuBarHorizontal a
{
display: block;
cursor: pointer;
background-color: #CCC; /* Was #EEE */
padding: 0.5em 0.75em;
color: #333;
text-decoration: none;
border: 1px solid #000;
text-align: center;
}


--
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"brian@sowter.co.uk" <webforumsuser@macromedia.com> wrote in message news:g4tbgp$djd$1@forums.macromedia.com...
> Hi Ken Thnks for this. It now works perfectly! .......except....can you
> please tell me how to modify the text colour and the alignment of the text in
> the top menu. Also how could I make the menu into "buttons" eg by putting a
> border round them the same as the background. Progress so far can be viewed at
> www.sowter.co.uk/homebsf.html
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:59 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Image Hosting | Property in Spain | Personal Car Finance | Car Finance | Mortgage



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114