HTML - My Webpage Has 4 Dropdown Menu Forms.
Greetings;
Can someone spot my error he My webpage has 4 dropDown Menu FORMs. DropDown Menu FORMs 1,3 and 4, work fine. But clicking on FORM/Menu #2 does nothing. Very troubling. Can someone spot my error below? Thanks...vmars : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Your Title Here </title> <meta name="Generator" content="AlleyCode HTML Editor"> <meta name="Description" content="Your description here..."> <meta name="Description" content="...Created by ddMenu % HotBasic..."> <meta name="Keywords" content="Your keywords here..."> </head> <body> <div align="center"> <table> <tr> <td align="center"> <form name="HotBasic"> <select style="font-size:16px;color:#006699;font-family:tahoma;background-color:#ffffff;" name="menu" onChange="location=document.HotBasic.menu.options[document.HotBasic.menu.selectedIndex].value;"> <option value="">HotBasic</option> <option value="http://tech.groups.yahoo.com/group/hotbasic/">HotBasic Group @ Yahoo</option> <option value="http://mypages.cwdom.dm/keenej/hotbasic.html">HotBasic Home Page</option> </select></form> </td> <td align="center"> <form name="YouTube Related"> <select style="font-size:16px;color:#006699;font-family:tahoma;background-color:#ffffff;" name="menu" onChange="location=document.YouTube Related.menu.options[document.YouTube Related.menu.selectedIndex].value;"> <option value="">YouTube Related</option> <option value="http://www.youtube.com/">YouTube.com</option> <option value="http://www.downloader9.com/">Save YouTube videos to AVI</option> <option value="http://www.getaudiofromvideo.com/">YouTube to Mp3</option> </select></form> </td> </tr> <tr> <td align="center"> <form name="Euphoria"> <select style="font-size:16px;color:#006699;font-family:tahoma;background-color:#ffffff;" name="menu" onChange="location=document.Euphoria.menu.options[document.Euphoria.menu.selectedIndex].value;"> <option value="">Euphoria</option> <option value="http://openeuphoria.org/EUforum/index.cgi">OpenEuphoria.org</option> <option value="http://docs.wxwidgets.org/stable/wx_wxboxsizer.html">wxWidgets wxBoxSizer</option> <option value="http://docs.wxwidgets.org/stable/wx_wxscrolledwindow.html">wxWidgets Docs wxScrolledWindow</option> <option value="http://docs.wxwidgets.org/stable/wx_sizeroverview.html">wxWidgets Programming with wxBoxSizer</option> </select></form> </td> <td align="center"> <form name="AutoIt3"> <select style="font-size:16px;color:#006699;font-family:tahoma;background-color:#ffffff;" name="menu" onChange="location=document.AutoIt3.menu.options[document.AutoIt3.menu.selectedIndex].value;"> <option value="">AutoIt3</option> <option value="http://www.autoitscript.com/forum/index.php?showforum=2">AutoIt3 General Help and Support</option> <option value="http://www.autoitscript.com/forum/index.php?showforum=10">GUI Help and Support Forum</option> <option value="http://www.autoitscript.com/forum/index.php?showforum=9">Example Scripts</option> </select></form> </td></tr> </table> </div> </body> </html> Similar TutorialsHi, we're trying to put together a form on our club website for an upcoming event. People must register for this event. For some reason, when we click on submit during the trial run, we're sent to a "problem loading" page. It's supposed to go to a confirmation page so people can pay via paypal. I've compared the form code against the club registration page and another event registration page and everything looks the same. Where is our mistake? I can't find it. Here is the URL: http://www.houstonparrotheadclub.com...gistration.htm Thanks Hi, I am using css to create a dropdown menu. It works fine in all browsers except IE6. In IE6 a dropdown list covers the dropdown menu. please see the atachment/screenshot. Here is the html/css code I am using. HTML Code: { position: relative; z-index: 1;}*/ ul.dropdown, ul.dropdown li, ul.dropdown ul { list-style: none; margin: 0; padding: 0; } ul.dropdown { position: relative; z-index: 597; float: left; } ul.dropdown li { float: left; line-height: 1.3em; vertical-align: middle; zoom: 1; z-index: 599; } ul.dropdown li.hover, ul.dropdown li:hover { position: relative; z-index: 599; cursor: default; } ul.dropdown ul { visibility: hidden; position: absolute; top: 100%; left: 0; z-index: 598; width: 100%; } ul.dropdown ul li { float: none; z-index: 598; } ul.dropdown ul ul { top: 1px; left: 99%; z-index: 598; } ul.dropdown li:hover > ul { visibility: visible; z-index: 598; } HTML Code: <div id="header" class="header" style="background-image: url(./images/blue-curve.jpg); background-position: top;"> <h1> Finance and Risk </h1> <ul class="dropdown dropdown-horizontal noPrint"> <li><a href="#" class="dir">Data Management</a> <ul> <?php echo '<li><a href="main.php?PageName=import3' . SID . '">Upload Data</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=list' . SID . '">Download Data</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=delete' . SID . '">Delete Data</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=assetupdate' . SID . '">Update Data</a></li>'; ?> </ul> </li> <li><a href="#" class="dir">Reports</a> <ul> <?php echo '<li><a href="main.php?PageName=reports' . SID . '">BS Overview</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=CDO' . SID . '">CDOs</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=impairment' . SID . '">Impairments</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=fvecapreport' . SID . '">FairValue and Risk</a></li>';?> <?php echo '<li><a href="main.php?PageName=creditrisk' . SID . '">Credit Default Risk</a></li>';?> <?php echo '<li><a href="main.php?PageName=securitydata' . SID . '">MarketData</a></li>';?> </ul> </li> <li><a href="#" class="dir">Files & Manuals</a> <ul> <?php echo '<li><a href="magnitude.pdf" target="_blank">Product Codes</a></li>';?> <?php echo '<li><a href="uploadmanual.pdf" target="_blank">Upload Manual</a></li>';?> <?php echo '<li><a href="main.php?PageName=osmdocs' . SID . '">OSM Files</a></li>'; ?> </ul> </li> <li><a href="#" class="dir">Miscellaneous</a> <ul> <?php echo '<li><a href="main.php?PageName=creditcrises' . SID . '">Credit Crises</a></li>'; ?> </ul> </li> <?php if ($_SESSION['Admin'] == "Yes") { ?> <li><a href="#" class="dir">Admin </a> <ul> <?php echo '<li><a href="main.php?PageName=message' . SID . '">Flash Alerts</a></li>'; ?> <?php echo '<li><a href="testmarcel1.php?' . SID . '">Test Marcel1</a></li>'; ?> <?php echo '<li><a href="testmarcel2.php?' . SID . '">Test Marcel2</a></li>'; ?> <?php echo '<li><a href="testmarcel3.php?' . SID . '">Test Marcel3</a></li>'; ?> <?php echo '<li><a href="main.php?PageName=testajay1' . SID . '">Test Ajay1</a></li>'; ?> <?php echo '<li><a href="testajay2.php?' . SID . '">Test Ajay2</a></li>'; ?> <?php echo '<li><a href="testajay3.php?' . SID . '">Test Ajay3</a></li>'; ?> </ul> </li> <?php } ?> <li><a class="dir" href="main.php?PageName=menu">Menu</a> <ul> <?php echo '<li><a href="logout.php">Logout</a></li>'; ?> <?php echo '<li><a href="#">Change password</a> </li>'; ?> </ul> </li> <li><a class="dir" href="javascript:window.print()" color="green">Print</a> </li> </ul> </div> Any one has an idea how to get the css menu on top of the dropdown list? Thanks in advance Hello all, I have created a dropdown list in a form using the <select> tag. My question is, is there any way to have that dropdown list display a different <option> as the default option when the page loads? The default option right now is always whatever option is the first one in my code. EX. <select> <option value="1">1</option> //by default this first option shows up on page load <option value="2">2</option> <option value="3">3</option> //can I have this option show up instead by default? </select> Thanks in advance. Hello, I'm new to this forum, so first, hello! Actually, I'm new to web design in general but have taken on the role at the church I work at because our old site was a mess. I downloaded some nice looking templates and have been using them as a foundation. The site is www.miamibc.com. If you go there and look at the header menu (home, about us, etc), I want to consolidate that menu some and add a drop down menu with more choices. Is there a way I can do this while keeping it looking the way it does now? If you need any more info from me, let me know. Thanks for your help! Ben can anybody give me a hand identifying why my content will not correctly align alongside my vertical website menu http://americanotaku.awardspace.com/index.htm Hi, I have a menu that lets me select from multiple options, and I want that any option that I choose will lead me to another website, after that I click the submit button. How I do this? Code: <form action="" method="post"> <select name="Dropdown Menu" id="menu"> <option selected>Select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <input type="submit" value="" id="button"> </form> Thanks, Steve hey I'm new at the forum here and kinda need some help with a multi level drop down menu for my website. there shall be 2 boxes where in the first one you can choose your Zipcode and then a box below to choose the city you are living in. first time working with html and I'm not sure if it can be made be that, and i was thinking i could get some help with that for some one in here. let me know if it's not understandable^^ ^^thanks for the help^^ Any assistance that can be provided is greatly appreciated. I am unable to get my dropdown menu to drop in front of my left column. I have copied the css and the html below. I am not sure if there is something wrong with the HTML or the css so please let me know if I need to post this to a CSS thread. Thank you for any help provided. #navigation { margin: 0; padding: 0; width: 100%; background-color: #f5f5f5; height: 1.3em; float: left; clear: both; } #navigation li { list-style: none; float: left; } #navigation li a { display: block; padding: 0 6px; background-color: #f5f5f5; color: #0000ff; text-decoration: none; border-right: 2px solid #fff; font-size: 12px;} #navigation li ul { display: none; width: 10em; background-color: #0000ff; } #navigation li:hover ul, #navigation li.hover ul { display: block; position: absolute; margin:0; padding:0; } #navigation li:hover li, #navigation li.hover li { float: none; } #navigation li:hover li a, #navigation li.hover li a{ background-color: #0000ff; border-bottom: 1px solid #fff; color: #ffffff; } #navigation li li a:hover{ background-color: #0000ff;} /* column container */ .colmask { position:relative; clear:both; float:left; width: 100%; } /* common column settings */ .colright, .colmid, .colleft { float:left; width:100%; position:relative; } .col1, .col2, .col3 { float:left; position:relative; padding:0 0 1em 0; } /* 3 Column settings */ .threecol { background-image: url('DCIMAGE3.jpg'); } .threecol .colmid { right:25%; background-image: url('DCIMAGE3.jpg'); } .threecol .colleft { right:50%; background-color: #ffffff; } .threecol .col1 { width:46%; text-align: center; } .threecol .col2 { width:21%; left:31%; } .threecol .col3 { width:21%; left:85%; } ul id="navigation"> <li><a href="www.zphibeasternregion.org">Home</a></li> <li><a href="#">National Links</a><ul> <li><a href="www.zphib1920.org">Zeta Phi Beta Sorority, Inc.</a></li> <li><a href="http://www.zphib1920.org/antihazing.html"> Sorority's Statement on Hazing</a></li></ul> </li> <li><a href="#">States</a><ul> <li><a href="DistrictofColumbia.htm">District of Columbia</a></li> <li><a href="NorthCarolina.htm">North Carolina</a></li> <li><a href="Virginia.htm">Virginia</a></li> <li><a href="WestVirginia.htm">West Virginia</a></li></ul></li> <li><a href="#">Contact us</a><ul> <li><a href="regionalleadership.htm">Regional Leadership</a></li></ul> </li> </ul> *****html <div class="colmask threecol"> <div class="colmid"> <div class="colleft"> <div class="col1"> <!-- Column 1 start --> <p>fajdflajslrejlaje;jerjekkj</p> <!-- Column 1 end --> </div> <div class="col2"> <!-- Column 2 start --> <p>fajdflajslrejlaje;jerjekkj</p> <!-- Column 2 end --> </div> <div class="col3"> <!-- Column 3 start --> <p>fajdflajslrejlaje;jerjekkj</p> <!-- Column 3 end --> </div> </div> </div> I recently changed my navigation links from js to html and css based links but have a few problems with the layout, I wonder if you anyone can help? http://www.for-rent-nerja.co.uk/ If you rollover the 'For Rent' dropdown do you notice how the dropdown is appearing under my sidebar! Is there any way to repair that? It is running from http://www.for-rent-nerja.co.uk/nav_menu/style.css I am also having problems stretching the width of the links to fit my 950px width, they seem to break apart after about 140px individually! I'm aware that the menu in my site can get too-big to display properly at low to medium resolutions and/or browser windows that aren't maximized, so after considering a couple of possible solutions i figured i'd fix it by putting everything into five general categories, two of which would have subcategories (and some of the subcategories would have subsubcategories, and that's as far as it goes). So... ...I'm looking for a code to turn my menu into a dropdown one. Now, as far as i'm concerned there are three types of dropdown menus, two of which i don't like and thus don't want. Google only returns results for one type, which, true to Murphy's law, is one of the two i don't want. Example of the one i want: the one on the top menu on this site ("HOME", "TUTORIAL", "FORUM", "QUICK LIST") (with possibility of images and that kind of stuff) Example of the one i don't want that Google returns: the kind on this site (default computer type) Example of the one i don't want that Google doesn't return: the kind that appears when you click on "Search", "KotV Roster" or any of those links on this site (forum type) I tried to copy the relevant code on the first page i linked to, but either i didn't copy all that's relevant or i'm doing something wrong with it. I considered both possibilities and tried to fix things, but all failed. So how do i do it? Here's a rough picture of exactly what i want: click. I hope the notes and pictures are enough, but if something is unclear please ask away. Sorry for the weird font, but i didn't pay much attention to how the whole thing looked; it's just a quick sketch i made in two minutes. Thanks in advance. I've been working on a dropdown menu using html tables, css and javascript, but it seems to fail in Firefox. When I hover the button the first time it's like it should be, however, when I hover it the second time the dropdown menu actually comes next to the button instead of below it. It's hard to explain, so I've uploaded it to http://darkool.nl/table.php This picture also explains what happens in Firefox: It works fine in other browsers (IE, Opera and Safari) Code: <script> function showMenu(num) { for (var count = 1; id = document.getElementById("show"+num+"."+count); ++count) { id.style.display = "block"; } } function hideMenu(num) { for (var count = 1; id = document.getElementById("show"+num+"."+count); ++count) { id.style.display = "none"; } } </script> <style> * { margin: none; padding: none; } tr { vertical-align: top; } td.menu0 { border: 1px solid black; display: none; } td.menu1 { border: 1px solid black; display: block; } </style> <table onMouseOver='showMenu(0)' onMouseOut='hideMenu(0)' id='menu0' class='menu' cellpadding='0' cellspacing='0'> <tr><td id='show' class='menu1'>Over ons</td></tr> <tr><td id='show0.1' class='menu0'>Informatie</td></tr> <tr><td id='show0.2' class='menu0'>Biografie</td></tr> </table> So for a while a have been trying very hard to create a dropdown menu for my navigation bar. I have searched the web long and hard for this and found little valuable information. I have a four link graphical navigation bar made from image sprites (see this tutorial) and have been trying to make a dropdown bar for just the second link. I know a bit of html/css but very little javascript which if I understand what I read from google, thats what I will need. Can anyone help please? So here's hoping you fine people will be able to help me I've found similar things, but not like this. I have a HTML Form, just a normal simple form, the data is sent using POST method to PHP, PHP has a thank you page, I get the E-Mail easy! >> Boring Part Start << This website is a online booking form for holidays in Cornwall, UK. People enter there info, then the party info. The thing is people in the party could be 1, could be 5, could be 8, or even just 2. >> Boring Part End << I Want A Drop Down Menu that will be able to hide forms or show forms So, it goes like this Title First Name Last Name Date Of Birth [field] [field] [field] [field] [field] [field] [field] [field] [field] [field] [field] [field] But I want it so, if someone picks the number 1 from this drop down list, only the first row of forms, or if someone picks 5, it shows 5 rows and if someone clicks 2, it only shows 2. I was wondering if I could use the Drop Down to hide DIV's or something and put each row in a DIV. Oh and btw, the fields are in tables at the moment. I made that more complicated then I should off ... lol. My HTML skill isn't that good, but I'll get my hands dirty if I must. Jme Code: #menu { background: #3f8cc5; float: left; list-style: none; margin: 0; padding: 0; width: 100%; } #menu li { float: left; font: 100% "Arial"; font-weight: bold; margin: 0; padding: 0; } #menu li.right { margin-top:3px; float: right; } #menu a { background: #3f8cc5; color: #ffffff; display: block; float: left; margin: 0; padding: 8px 12px; text-decoration: none; } #menu a:hover { background: #cdc8b2 url("...") bottom center no-repeat; color: #0066CC; padding-bottom: 8px; <ul id='menu'> <li><a href='#' title='Home'>Home</a></li> <li><a href='#' title='Season 1'>Season 1</a></li> <li><a href='#' title='Season 2'>Season 2</a></li> <li><a href='#' title='Season 3'>Season 3</a></li> <li class='right'> ..... </li> ****** Drown Down Tab here ****** </ul> I'd like to be able to transform this menu into a drop down menu. I tried different things and read guides but I cant seem to understand. I'll be really happy if someone could tell me what I need into the css part Reference: http://www.skinquotient.com This is a shopping cart using OSCommerce. In the left hand column, you will notice that the second item from the top is a drop down menu titled "Shop by Concern". The length of some of the value in the shop by concern drop down menu are wider than the width of the left column. In firefox, when you open the menu, the menu itself expands wider then the width of the column so life is good. Of course, IE likes to make your life difficult, so in IE the menu values are truncated to fit the column width. I don't want to make that left column wider - I want to leave as much room as possible in the main body for content. My preferred solution would be to somehow make that menu expand in IE like it does in firefox, however I don't know if this is possible. Ideas are welcome! I had a program automatically generate code for me for a dropdown menu, but whenever I place the code into iWeb the HTML snippet just makes a blank box. Can anyone give me a hand? Here's the code: Code: <script src="psnavjs.js" type="text/javascript"></script><noscript><OBJECT id="psnavobj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=950 HEIGHT=53> <PARAM NAME=movie VALUE="psnav.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="psnav.swf" menu=false quality=high bgcolor=#000000 WIDTH=950 HEIGHT=53 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></noscript> Is there anything wrong with this li tag? <li><a href="uc.html" class="underline">Item 1</a></li> uc.html is located in the same directory. The menu is disabled and doesn't work. I can't find out what the problem is. Hi all I have made a dropdown menu where the user is to select one of the options but I just cannot for the life of me workout which cose I need to use for that option to show up on the following page where all the writen details (which all work )exept for the chosen dropdown menu choice. I hope I have made sence here. Can anyone please help me. I can copy and paste what I have if that will help.Just let me know please, I am trying to implement a CSS dropdown menu into my site. I have it put in and positioned properly but when I hover over the links the menu doesn't drop. I have checked z-index's but other than that I am lost. I attached just the menu and the menu in the site. Menu Only (This Works): Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <style media="all" type="text/css">@import "menu/menu_style.css";</style> <div> <ul class="menu"> <li class="top"><a href="www.collegecovers.com" target="_self" class="top_link"><span>Home</span></a> </li> <li class="top"><a href="www.collegecovers.com/schools.html" target="_self" class="top_link"><span>Shop By School</span></a> <ul class="sub"> <li><a href="www.collegecovers.com/alabama.html" target="_self">Alabama</a></li> <li><a href="www.collegecovers.com/arkansas.html" target="_self">Arkansas</a></li> <li><a href="www.collegecovers.com/auburn.html" target="_self">Auburn</a></li> <li><a href="www.collegecovers.com/clemson.html" target="_self">Clemson</a></li> <li><a href="www.collegecovers.com/duke.html" target="_self">Duke</a></li> <li><a href="www.collegecovers.com/florida.html" target="_self">Florida</a></li> <li><a href="www.collegecovers.com/floridastate.html" target="_self">Florida State</a></li> <li><a href="www.collegecovers.com/georgia.html" target="_self">Georgia</a></li> <li><a href="www.collegecovers.com/gonzaga.html" target="_self">Gonzaga</a></li> <li><a href="www.collegecovers.com/georgetown.html" target="_self">Georgetown</a></li> <li><a href="www.collegecovers.com/iowa.html" target="_self">Iowa</a></li> <li><a href="www.collegecovers.com/iowastate.html" target="_self">Iowa State</a></li> <li><a href="www.collegecovers.com/kansas.html" target="_self">Kansas</a></li> <li><a href="www.collegecovers.com/kansasstate.html" target="_self">Kansas State</a></li> <li><a href="www.collegecovers.com/kentucky.html" target="_self">Kentucky</a></li> <li><a href="www.collegecovers.com/louisianastate.html" target="_self">Louisiana State</a></li> <li><a href="www.collegecovers.com/michigan.html" target="_self">Michigan</a></li> <li><a href="www.collegecovers.com/michiganstate.html" target="_self">Michigan State</a></li> <li><a href="www.collegecovers.com/northcarolina.html" target="_self">North Carolina</a></li> <li><a href="www.collegecovers.com/northcarolinastate.html" target="_self">North Carolina State</a></li> <li><a href="www.collegecovers.com/nebraska.html" target="_self">Nebraska</a></li> <li><a href="www.collegecovers.com/ohiostate.html" target="_self">Ohio State</a></li> <li><a href="www.collegecovers.com/oklahoma.html" target="_self">Oklahoma</a></li> <li><a href="www.collegecovers.com/oklahomastate.html" target="_self">Oklahoma State</a></li> <li><a href="www.collegecovers.com/oregon.html" target="_self">Oregon</a></li> <li><a href="www.collegecovers.com/oregonstate.html" target="_self">Oregon State</a></li> <li><a href="www.collegecovers.com/penn.html" target="_self">Penn State</a></li> <li><a href="www.collegecovers.com/southcarolina.html" target="_self">Oregon</a></li> <li><a href="www.collegecovers.com/texas.html" target="_self">Texas</a></li> <li><a href="www.collegecovers.com/texasam.html" target="_self">Texas A&M</a></li> <li><a href="www.collegecovers.com/texastech.html" target="_self">Texas Tech</a></li> <li><a href="www.collegecovers.com/vanderbilt.html" target="_self">Vanderbilt</a></li> <li><a href="www.collegecovers.com/wakeforest.html" target="_self">Wake Forest</a></li> <li><a href="www.collegecovers.com/westvirginia.html" target="_self">West Virginia</a></li> </ul> </li> <li class="top"><a href="www.collegecovers.com/category.html" target="_self" class="top_link"><span>Shop By Category</span></a> <ul class="sub"> <li><a href="www.collegecovers.com/bib.html" target="_self">Bed in a Bag</a></li> <li><a href="www.collegecovers.com/comforter.html" target="_self">Comforters</a></li> <li><a href="www.collegecovers.com/sheets.html" target="_self">Sheets</a></li> <li><a href="www.collegecovers.com/futon.html" target="_self">Futon Covers</a></li> <li><a href="www.collegecovers.com/crib.html" target="_self">Crib Covers </a></li> <li><a href="www.collegecovers.com/etc.html" target="_self">Accessories</a></li> </ul> </li> <li class="top"><a href="www.collegecovers.com/register.html" target="_self" class="top_link"><span>Register</span></a> </li> <li class="top"><a href="www.collegecovers.com/contactus.html" target="_self" class="top_link"><span>Contact Us</span></a> </li> </ul> </div> </body> </html> Menu on site (Not working): Code: .bg {background: url(images/button4.gif);} .menu { padding:0 0 0 32px; margin:0; list-style:none; height:40px; background:#fff url(images/button1a.gif) repeat-x; position:relative; font-family:arial, verdana, sans-serif; z-index: 100; visibility: visible; } .menu li.top {display:block; float:left; position:relative;} .menu li a.top_link {display:block; float:left; height:40px; line-height:33px; color:#bbb; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;} .menu li a.top_link span {float:left; font-weight:bold; display:block; padding:0 24px 0 12px; height:40px;} .menu li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:40px; background:url(images/down.gif) no-repeat right top;} .menu li a.top_link:hover {color:#000; background: url(images/button4.gif) no-repeat;} .menu li a.top_link:hover span {background:url(images/button4.gif) no-repeat right top;} .menu li a.top_link:hover span.down {background:url(images/button4a.gif) no-repeat right top;} .menu li:hover > a.top_link {color:#000; background: url(images/button4.gif) no-repeat;} .menu li:hover > a.top_link span {background:url(images/button4.gif) no-repeat right top;} .menu li:hover > a.top_link span.down {background:url(images/button4a.gif) no-repeat right top;} .menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;} .menu a:hover {visibility:visible;} .menu li:hover {position:relative; z-index:100;} .menu ul, .menu :hover ul ul, .menu :hover ul :hover ul ul, .menu :hover ul :hover ul :hover ul ul, .menu :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;} .menu :hover ul.sub {left:2px; top:40px; right:2px; background: #fff; padding:3px 0; border:1px solid #999999; white-space:nowrap; width:200px; height:auto;} .menu :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:250px;} .menu :hover ul.sub li a {font-weight:normal;display:block; font-size:11px; height:20px; width:192px; line-height:20px; text-indent:5px; color:#000; text-decoration:none; border:3px solid #fff; border-width:0 0 0 3px;} .menu :hover ul.sub li a.fly {background:#fff url(images/arrow.gif) 80px 7px no-repeat;} .menu :hover ul.sub li a:hover {background:#999999; color:#fff;} .menu :hover ul.sub li a.fly:hover {background:#999999 url(images/arrow_over.gif) 80px 7px no-repeat; color:#fff;} .menu :hover ul li:hover > a.fly {background:#999999 url(images/arrow_over.gif) 80px 7px no-repeat; color:#fff;} .menu :hover ul :hover ul, .menu :hover ul :hover ul :hover ul, .menu :hover ul :hover ul :hover ul :hover ul, .menu :hover ul :hover ul :hover ul :hover ul :hover ul {left:90px; top:-4px; background: #fff; padding:3px 0; border:1px solid 999999; white-space:nowrap; width:93px; z-index:200; height:auto;} Thank you for the help! im having trouble with a drop-down menu. when i highlight the <li>'s that drop down, i can't do anything that will make them dissapear. here's my java: Code: <script type="text/javascript"><!--//--><![CDATA[//><!-- sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); //--><!]]></script> heres my html: Code: <li><a href="#">About us</a> <ul> <li><a href="#">Our company</a></li> <li><a href="#">Services we offer</a></li> <li><a href="#">Meet our people</a></li> </ul> </li> heres my css: Code: /* drop down navigation */ #nav, #nav ul { float: left; width: 100%; list-style: none; line-height: 0.6em; background: #333; font-weight: normal; padding: 0; border: solid thin #000; margin: 15px 0 30px 0; color:#fff; } #nav a { display: block; width: 124px; color: #fff; text-decoration: none; font-size:0.7em; padding:7px; border-left: solid 4px #000; } #nav li { float: left; padding: 0; width: 20%; } #nav li ul { position: absolute; left: -999em; height: auto; width: 10%; width: 13.9em; font-weight: normal; border-width: 1px; margin: 0; padding:0; } #nav li li { margin-left:-1px; width: 13em; } #nav li ul a { width: 205px; } #nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { left: auto; } #nav a:hover{ background: #444; } /* end of drop down navigation*/ any ideas??? |