HTML - Drop Down With Tick Box, Possible?
is it possible to get a drop down menu which then has tick boxs next to each category for multiple selection?
Similar TutorialsHi guys, When you first launch Livestream's websites (http://www.livestream.com/), a drop down slides down from the top of the window which you can then close. Is this some sort of dynamic HTML? Does anyone know where I can find a tutorial on this?? A I have two pages both have drop down. On the 1st page the user selects an option on the drop down, after the user choose an option it will go to the next page and I want the option showing on drop down on the 2nd page to be the option the user choose on the 1st page example: 1st page option:blue,orange,red so when I pick orange on the 2nd page the drop down will have initial value of orange I hope this is clear I am trying to make a form that submits info to Paypal. This is a drop box form that selects one of two things. Depending on the item selected, I want paypal to charge a different amount. Here is code that I thought should work, but apparently I don't know the ins and outs of drop boxes. Could I get some help? <select name="type of service" id="type of service"> <option selected>Select One... <option> I will format the Pix myself <input type="hidden" name="item_name_1" value="format myself"> <input type="hidden" name="amount_1" value="1.00"> </option> <option> You can format the pix for me <input type="hidden" name="item_name_2" value="you format"> <input type="hidden" name="amount_2" value="3.00"> </option> </select> Thanks! I want a drop down with about 10 items. The 10th being "other", if people select "other" a text box appears and people can then write in what "other" means. Any suggestions on the best code for this? Here is the code I have so far: HTML Code: <form id="form1" name="form1" method="post" action=""> <label>How did you hear about us? <select name="select"> <option selected="selected">Please Select</option> <option>Search Engine</option> <option>Friends & Family</option> <option>Word of Mouth</option> <option>Newsletter</option> <option>TV</option> <option>Newspaper</option> <option>Magazine</option> <option>Blog</option> <option>Other</option> </select> </label> </form> Ok, I've managed to get my drop down menu relatively sorted. The final version will have significantly more options, but for editing purposes each only has 2 options right now. With my limited HTML knowledge, I've managed to get all the boxes lined up left, and in the right order and the such, but there are still a few things I would like this menu to do before it is finished, and I have no idea how to do them. Hopefully someone can help This is what I have at the moment: Quote: <html> <body> <div align="left"> <select name="QB"> <option value="QB">Player A - 80</option> <option value="QB">Player B - 65</option> </select> <select name="RB1"> <option value="RB1">Player C - 64</option> <option value="RB1">Player D - 42</option> </select> <select name="RB2"> <option value="RB2">Player C - 64</option> <option value="RB2">Player D - 42</option> </select> <select name="WR1"> <option value="WR1">Player E - 35</option> <option value="WR1">Player F - 32</option> </select> <select name="WR2"> <option value="WR2">Player E - 35</option> <option value="WR2">Player F - 32</option> </select> <select name="TE"> <option value="TE">Player G - 37</option> <option value="TE">Player H - 29</option> </select> <select name="K"> <option value="K">Player I - 20</option> <option value="K">Player J - 18</option> </select> <select name="DST"> <option value="DST">Team A - 35</option> <option value="DST">Team B - 33</option> </select> </div> </body> </html> That does what I want, could be hideously wordy and untidy in the code, idk, but it works lol What I would like instruction on are the folloing steps if possible: 1) I would like a small box to the left of each drop down menu that remains the same. For example, I'd like a box that says "QB" then to the right of it immediately is the QB drop down menu. A bit like <TH> function works on a table I believe? I just have no idea how to put it into the code so it doesn't throw it all over the place 2) Some positions, like the RB and WR, have 2 positions. However, both drop down box player lists will be the same. Is there any way to stop WR1 and WR2 from being the same player? A player can't be used more than once, so is there a way to make sure the player in each box is never the same? 3) As you can see, each player has a value. At the moment, the player and the value are one constant line of text "Player A - 80". What I'd really like is for this to be split, so that a running team unit total can be kept at the bottom. That way a user will be able to see the total unit value of their team, and it will alter as they alter their line up. I'm sure the player value somehow needs to be its own specific bit of code for this to happen, it can't be coupled with a players name, but I've no idea how to do this either. I really hope someone can help me out here, would be of great use to me. All I need are some pointers and I'll try and work my way through it as best I can. Thanks, you guys are great I have the following drop down menu. HTML Code: <form> <select name="menu" style="font-family:'Arial';color:#FFFFFF;background-color:#000000;font-size:10pt;"> <option value="no link no action">title of menu</option> <option value="url 1">link 1</option> <option value="url 2">link 2</option> <option value="url 3">link 3</option> <option value="url 4">link 4</option> </select> <input type="button" onClick="location=this.form.menu.options[this.form.menu.selectedIndex].value;" value="GO" style="font-family:'Arial';color:#FFFFFF;background-color:#000000;font-size:10pt;"> </form> Here is a screen capture of what the menu looks like. It's at this point I want no action to take place when "go" is clicked. As it is now (above code) it refreshes current page. My question is how do I change this so that the first "option" has no action when chosen and then "go" is clicked. As is is right now it refreshes the current page being that between the quotes <option value=" HERE ">title of menu</option> there isn't a link because I don't want this option to do anything. Basically when the drop down menu shows "title of menu" and I click on "go" I want nothing to happen instead of a refresh. I am working on a contact form but I am having difficulty putting in a drop down menu to input text. Can someone give me a hand. http://coloradorestaurantlist.com/?a...aurants_Submit Thanks Jamie Dear HTML Experts, I need your help, I would love to have a dropdown menu. Which drop out of a image? Like when your mouse is at the image, the menu shows up vertically? Thanks Greetings All - I've been here before and plan on being around a lot more as I've bitten off a little bit more than I can chew with overhauling my school district's website. Thanks for all the help you offer! I've got the page at http://joomla.ridgway.k12.co.us looking pretty good but for some reason the sub level navigation for About Us and Secondary disappear before I can get to a link. I believe this is a focus problem, but in my efforts I can't fix it. Can someone point me in the direction where I could fix this? Thanks for your time. I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Welcome to my Home Page</title> <script language="JavaScript" type="text/javascript"> ////The source for this script came from http://allwebco-templates.com/support/S_menus_dropdown.htm//// ///For the Game,I changed the back ground picture. I realize it's not JS/// <!-- function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") {window.location=loc;} else {if (lowtarget=="_top") {top.location=loc;} else {if (lowtarget=="_blank") {window.open(loc);} else {if (lowtarget=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; }}} } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target=""; if (splitc!=-1) {loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000);} else {loc=ref; target="_self";}; if (ref != "") {land(loc,target);} } //--> <!-- /// The JS below is for the date and time. and i got the sorce from http://www.re-es.org/ /// var day_names = new Array(7) day_names[0] = "Sunday" day_names[1] = "Monday" day_names[2] = "Tuesday" day_names[3] = "Wednesday" day_names[4] = "Thursday" day_names[5] = "Friday" day_names[6] = "Saturday" var month_names = new Array(12) month_names[0] = "January" month_names[1] = "February" month_names[2] = "March" month_names[3] = "April" month_names[4] = "May" month_names[5] = "June" month_names[6] = "July" month_names[7] = "August" month_names[8] = "September" month_names[9] = "October" month_names[10] = "November" month_names[11] = "December" date_now = new Date() day_value = date_now.getDay() date_text = day_names[day_value] month_value = date_now.getMonth() date_text += " " + month_names[month_value] date_text += " " + date_now.getDate() date_text += ", " + date_now.getFullYear() minute_value = date_now.getMinutes() if (minute_value < 10) { minute_value = "0" + minute_value } hour_value = date_now.getHours() if (hour_value == 0) { greeting = "Good Morning " time_text = " at " + (hour_value + 12) + ":" + minute_value + " AM" } else if (hour_value < 12) { greeting = "Good Morning " time_text = " at " + hour_value + ":" + minute_value + " AM" } else if (hour_value == 12) { greeting = "Good Afternoon " time_text = " at " + hour_value + ":" + minute_value + " PM" } else if (hour_value < 17) { greeting = "Good Afternoon " time_text = " at " + (hour_value - 12) + ":" + minute_value + " PM" } else { greeting = "Good Evening" time_text = " at " + (hour_value - 12) + ":" + minute_value + " PM" } document.write(greeting + " Today is " + date_text + time_text) //--> </script> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <div id="container"> <p><img id="banner" src="images/banner.gif" alt="banner"></p><hr color="#FF0000"></p> <ul id="nav"> <li><form action="#" method="post"> <select name="choice" size="1" onChange="jump(this.form)" class="dropdown"> <option value="index.html" selected>Home</option> <option value="scripts_developed.html">Scripts Developed</option> <option value="best_practices.html">Best practices for JavaScript coding</option> <option value="ajax.html">AJAX</option> <option value="JavaScript_frustrations.html">JavaScript frustrations & Javascript Game</option> </select> </form> </li> </ul> <div id="content"></div> </div> <table width="1050" border="0" align="center"> <tr> <td align="center"><p><img src="images/logo1.gif" width="300" height="300" hspace="30"><img src="images/logo3.gif" width="300" height="300"><img src="images/logo2.gif" width="300" height="300"></p> <p><img src="images/logo4.gif" width="300" height="300" hspace="30"><img src="images/logo5.gif" width="300" height="300"><img src="images/logo6.gif" width="300" height="300"></p></td> </tr> </table> <p> </p> <p> </p> </body> </html> Hi all, I can't for the life of me get the submenus to work. Here is my basic code and style sheet. How and where do I get a sub menu working on the navigation to display when you hover over it. I.E. hovering over 'News' displays sub menu of 'today', 'tomorrow'... Hi, i have a drop down box in a table with a bunch of project names, but some of them are pretty long. The drop down is taking up all the screen space. Is there a way to shorten the box, so you click on the drop down, look at the full names, and when you've selected one it shows only part of it, say the first 10 letters? Thanks! Hi guys, i have a drop down code below Quote: <select class="input" name="mod[cpu]"> <option value=""> </option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> the output are like this Quote: $html .= ($content[cpu] ? '<div class="' . $this->switch_bg() . '"><strong>CPU:</strong> ' . @htmlspecialchars($content[cpu]) . '</div>' : ''); i want after the drop down choosed by user, it will add SELECTED next time they opening the drop down again i am still dont know how to put the SELECTED there, please help what is the code to add SELECTED, i only have variable mod[cpu] and $content[cpu] i already tried in bold below, but still not working Quote: <select class="input" name="mod[cpu]" selected="$content[cpu]"> <option value=""> </option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> please share your knowledge Hey, Kinda new to this so bare with me. Im using Trellian web page to do some updating on our companies' website and they just asked me to make up a sort of parts catalog for our inventory we have here. I thought the best way for the person visiting the website to find the parts they need is to have drop down menus.Ive been trying so hard to make this but i just keep failing. This is what i want to do. The first one would ask "Make..." they would click that and scroll down the list to find the Make of their machine. Once they click their machine, another drop down menu would appear underneath of that asking the model and the menu would contain all the models associated with the make of the machine. And i want to have another one appear under that once they click on the model. Is there anything or any place where i can find a nice tutorial on how to make this dream come true.....? something like this http://www.wengers.com/Parts/TractorParts.aspx I have a database setup however I have about 7 filters to give users easy access to. The filters i generate are in this format PHP Code: <form method='post' action='http://www.piggywig.co.uk/demo/property_list.php'> <input type='hidden' name='FilterAnd[]' value=''> <input type='hidden' name='FilterField[]' value='property_status'> <input type='hidden' name='FilterOperator[]' value='<=>'> <input type='hidden' name='FilterValue[]' value='Tenanted'> <input type='hidden' name='FilterAnd[]' value='or'> <input type='hidden' name='FilterField[]' value='property_status'> <input type='hidden' name='FilterOperator[]' value='<=>'> <input type='hidden' name='FilterValue[]' value='Available'> <input type='hidden' name='FilterAnd[]' value='or'> <input type='hidden' name='FilterField[]' value='property_status'> <input type='hidden' name='FilterOperator[]' value='<=>'> <input type='hidden' name='FilterValue[]' value='Notice Given'> <input type='hidden' name='FilterAnd[]' value='and'> <input type='hidden' name='FilterField[]' value='utils_pat_testing_expires'> <input type='hidden' name='FilterOperator[]' value='<='> <input type='hidden' name='FilterValue[]' value='08/03/2010'> </center><input type='submit' name='submit' value='Show Result'></center> </form> How would I get this and multiple other filters to show on my page just as a drop down , when selected a drop down it will run the filter. Thanks Hello, I have started working for a company, and with little experiance i am gradually tecaching myself how to HTML in ordwer to update our website. I've got to the point where i need some help. So please if you could help me in the most basic language that would be great. How can i create a drop down menu or navagation bar. vertically The website in question is www.hyspeedbroadband.com I would also like it to stay in the same style as it already is. As a little side question also. I changed the navagation bars position, now when you click on different pages the navagation bar does not underline which page you are on. If I could have some assisstance on how that can be corrected that would be great to. Thank you for any help and replys Hi all I am completely stuck as to what to do here. I have a drop down list that I want a different html table to display depending on the option chosen on the drop down list. I know this doesn't make a lot of sense so hopefully this will help... http://www.penzancepokerleague.co.uk/playerstats.html Hi all Im having some serious problems with my drop down menu on the home page of a site... it hides behind the jquery slideshow?! http://www.silver-worldwide.com/dev/onvu/ Does anyone have any idea how i can fix this issue? It works on every other page!! Thanks in advance! Mat Hi, I have finally managed to create the drop down that I want and placed the code into my page after testing. However I have a table of 24 teams, and only 9 of them are showing. I have tried to add <tr> breaks and show 4 across but the mouseover box then appears at the bottom of the table even when I mouseover at the top. Ideallly I would like to place these links in the table I created here; http://www.freewebs.com/jonnibravo/l...forumsmain.htm Here is the test page where my code exsists; http://www.freewebs.com/jonnibravo/testpage.htm sorrted This is the code that works than I'm trying to use.. It is a horizontal css popup menu. Code: HTML <div id="menu"> <ul id="item1"> <li class="top">menu item</li> <li class="item"><a href="#">menu item 1</a></li> <li class="item"><a href="#">menu item 2</a></li> <li class="item"><a href="#">menu item 3</a></li> </ul> </div> CSS #menu ul .item{display:none;} #menu ul:hover .item{display:block;} #menu{position:absolute;} My listing categories/hierarchy is controlled by word press so I can't really control that. I would like to know if I can modify the css to get this working. I'm trying to get the 'children' Appearance category to pop up under Automotive. Here is my NON working code: Code: HTML <div id="dropmenu"> <ul> <li class="cat-item cat-item-3"><a href="http://www.diysrc.com/category/automotive/" title="View all posts filed under Automotive">Automotive</a> <ul class='children'> <li class="cat-item cat-item-7"><a href="http://www.diysrc.com/category/automotive/appearance/" title="View all posts filed under Appearance">Appearance</a> </li> </ul> </li> <li class="cat-item cat-item-14"><a href="http://www.diysrc.com/category/featured-articles/" title="View all posts filed under Featured Articles">Featured Articles</a> </li> <li class="cat-item cat-item-1"><a href="http://www.diysrc.com/category/uncategorized/" title="View all posts filed under Uncategorized">Uncategorized</a> </li> </ul> </div> CSS #dropmenu ul .children{display:none;} #dropmenu ul:hover .children{display:block;} #dropmenu{position:inline;} |