Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2005, 02:34 PM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default drop down menu close code ?

ok. I have been trying to make a drop down menu with nothing but images. (I cannot use text - because it needs to be "unsearable" in Ebay's search)

I found some code and it seems to work well. I click on the "button" and my image drops down (which I have mapped to various links). If you mouse out the image stays down. Good. However, I need it to close by clicking on the button....and I can't seem to figure that out.
This is in my header:
<style type="text/css">
#menu1 { display : none }
#menu2 { display : none }
#menu3 { display : none }
</style>
Here's my code:
<SPAN onClick="document.all.menu2.style.display = 'block'" oonmouseout="document.all.menu2.style.display = 'block'">
<b><IMG SRC="file:///C:/Documents%20and%20Settings/Doug%20&%20Erin%20Cannon/Desktop/menu/b2.jpg" width="174" height="26"> </b></SPAN><BR>
<SPAN ID="menu2" onClick="document.all.menu2.style.display = 'none'">

(then i have my mapped image) </span>

Any ideas on this would be great....also if I've done anything wrong above...it was just a copy/paste and figure it out from there. (The images are all still on my harddrive while I test.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down menu antoneath Beginning PHP 1 January 27th, 2006 08:45 AM
drop-down menu crmpicco Javascript How-To 1 March 22nd, 2005 01:23 PM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
drop down menu scrowler Javascript 1 January 27th, 2005 05:44 AM
drop down menu junemo Beginning PHP 2 May 7th, 2004 10:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.