I have 7 images in my html page that need to link out of the site to more than 1 website (each).. so I need to have a drop down menu so that the visitor can choose what site they want to go to. There are seven images side by side and all will go out to, multiple, different sites. Example: a baseball is one of the images. The basebal has to go to mlb.com and to baseball canada.
How do I make a drop down menu when a mouse is hovered over it. It is ok if you suggest a menu maker software (third party)- but most of those are text driven. My page is already built. (made it in my cs3 photoshop/sliced) The dynamic drive ones are too confusing for me.
If you think I should do it a different way, please feel free to suggest - thanks. (If this ball only had to link to one site I would be fine..)
If you are using DW, try the Spry menu as follows
<!DOCTYPE HTML>
<html>
<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">
<style>
ul.MenuBarHorizontal a span {
visibility: hidden;
}
ul.MenuBarHorizontal a#basball {
background: url(images/Baseball_Ball.png) no-repeat;
height: 100px;
}
</style>
</head>
<body>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a id="basball" class="MenuBarItemSubmenu" href="#"><span>Baseball</span></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>
Gramps
PS To see it in action go to http://pleysier.com.au/jim
Message was edited by: altruistic gramps
Interesting. I have used a spry before but not in a while. I love how the menu shows up with the cursor over it and it drops down. I don't need the menu to the right of it however (and that shows on the page you have given me.) http://pleysier.com.au/jim
It would get in the way of the other balls actually.
I am going to have a look at the code and see if I can remove that menu to the right (might need your help on that). I really, really appreciate the help on this as I am growing in my skills.
Here is the page:
http://www.jimwww.com/rh/sports/index2.html (right now the baseball only goes to mlb.com)
Update - I am much closer with this page but the menu is not hidden.
http://www.jimwww.com/rh/sports/index2a.html# (not sure why there is a pound sign after the url now either. (sorry to be such trouble)
I gave you an example of how to give each menu item a unique graphic. The menu is a normal SpryMenuBar exactly as Dreamweaver will place in your document. Using the example, you can change the other menu items into images.
When you say that you are having a problem, I do not doubt that when I see that you have completely deviated from what Dreamweaver and I have given you. Have a look at your code
<ul id="MenuBar1" class="MenuBarVertical">
</ul>
</li>
<li><a href="http://www.mlb.com" target="_blank">Item 2</a></li>
<li><a href="http://www.baseball.ca" target="_blank">Item 4</a></li>
</ul>
and have a look at my equivalent
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a id="basball" class="MenuBarItemSubmenu" href="http://mlb.mlb.com/index.jsp"><span>Baseball</span></a>
<ul>
<li><a href="http://www.mlb.com">Item 2</a></li>
<li><a href="http://www.baseball.ca">Item 4</a></li>
</ul>
</li>
<ul>
or better still, have a look at the updated menubar here http://pleysier.com.au/jim/
Gramps
Yes I am looking at your code.. and learning. Getting it into my head of what it is achieving. I thought vertical was up down but clearly in this code it is horizontal. I did not need all the sublevels and that is why I took them out. I just needed drop down that leads out to a few links.
Thank you for being so generous with your time. I really need to know this and you are helping me learn.
North America
Europe, Middle East and Africa
Asia Pacific