HTML - Html Dropdown Question
I am trying to build a simple, compliant HTML dropdown menu that allows users to click a "go" button which will act as a link to a new page. In my site a user rolls down to the correct state and then hits the go button. This sends the user to a web page for that state.
Maybe what I'm trying to do is so easy that nobody ever thought to explain it. But I can't find an answer anywhere. Here is a basic version of my code. Thanks in advance for any help!!!!! Code: <form action=""> <select name="states"> <option value="alabama.html">Alabama</option> <option value="Alaska.html">Alaska</option> <option value="Arizona.html" selected="selected">Arizona</option> </select> <input type="submit" value="Go"> </form> Similar TutorialsHi I'm not sure if this is the right place to ask but I want to know if it possible to make a drop down menu and then when you click on the content inside it adds it to a plain text field. This is for a form I'm making for my website...I just don't know how to do this. Oh and a button to remove the content again. Any help is appreciated. Thank you I have created a drop down selection list using PHP that will allow users to create the elements of the selection list and organize them them under user defined catagories, by typing the names of the catagory and entry into fields and clicking a button to add them to the list. By clicking on the entries on the list the user will be able to cause user defined actions to be performed. Just as an example, the user could create the following drop down selection list: Car manufacturers Ford Mercedes Honda Motorcycle manufacturers Harley Davidson Suzuki Honda The problem comes when I try to allow the user to delete an entry by clicking on it and then clicking a delete button.] As you can see from the example above, the word "Honda" appears under two optgroup catagories. If the user clicks on the second one, there is currently no way for the PHP script to distinguish which "Honda" entry they mean. In fact the script would go through the list and delete the fist one it comes across, which is the wrong one. How can I send the value of the optgroup that an entry is listed under along with the entry itself, so that they script can identify which entry the user is clicking on? I tried some tags in the optgroups but they don't seem to get sent to the server. I have a drop down box of a fixed width. That drop down box needs to contain some values that are longer than the desired width. I'm happy for those values to be truncated, but I would like to display the full text in a tooltip (one that I could format to be a multi-lined one) as the option is hovered over (not after you select an option). Does anyone know if there's an event that's generated when scrolling through the options of a drop down box? 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. I am just getting back into html and im already having a few problems. I am making this website for my parents to help promote their new college and so far its look excellent except for the fact that I cant get this pesky search and dropdown list to align right. www.xgenservers.com/CFC/2/index.htm The site works perfectly in Mozilla Firefox, but I cannot get it to shape out right in Internet Explorer. I could really use a helping hand on this one, thanks a ton . Hey guys Was hoping someone could help me with a little HTML problem. I have two pages - lets call them home and page1. On page1 i have a dropdown list with products in it and on the home page i have a list of "popular products" (which are included in the dropdown list). I am trying to make it so that when a customer clicks one of the "popular products" from the homepage, it links them to page1 and automatically selects the product from the dropdown. The name of the dropdown menu is "products" so i tried using the link "page1.html#products#product1" but this just links to page one and nothing else. Yet if the link is "page1.html#products" then it links to page1 and highlights the products dropdown menu - but does not select anything. I would really appreciate any help with this. thanks mckeegan375. 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 All, I'm having some serious issues using a tag to a website for one of my clients. I'm using the Code: <sarcasm></sarcasm> tag in some of my code, but it does not appear to be displaying properly in certain web browsers. Firefox and Opera seem to work OK, but IE and Safari ignore the tag completely. I have over 5 years of coding in experience in HTML5, CSS, and HTML, but none in MSHTML, which is what I currently must use. Has anyone else run into this problem in the past? Regards, -Dave Lawrence Microsoft A+ Certification Dell Certifiied Systems Expert Citrix Certified Administrator hello guys! i have a question for you. i use this code to my blog (this is a media player made by photobucket) Code: <embed width="448" src="http://i171.photobucket.com/player.swf?file=http://vid171.photobucket.com/albums/u285/VBMAN/videaki.flv" height="361" wmode="transparent" type="application/x-shockwave-flash"></embed> and i want make this autoplay when i enter to my blog. Is there any code to help thank u Hi, there I have a strange question about html site https://www.molten-wow.com/ I have created an account for you to try : Username - daozealot Password - gogogo so... the question. When you log in, you have "Vote Points : 13" when you go to "vote for molten wow" there are 5 Triggers (links to visit) which increment the Vote Points. Isn't there a way to make an html, which can connect to the site... and connect to the account... and increment the points ? Or I should find a way to make it with javascript ? Hello, I run a videogame server along with a website for content management. Right now im trying to find a way to display a page with a box inside it that transitions pdf files located in a file on the server. The file would follow as so http://www.voidcraft.net/other/rand/...3681823623.pdf It would also have 4 buttons at the bottom one with a arrow pointing right that would transition to the next. one the the left which would make it go back to the one before. There would also be a approve and decline. The approve would email the email on the pdf or have a box pop up that asks for the email and then send the pdf to a approved folder. The decline would do the same except send a different email and send to a different folder. I have no idea what so ever how to do this. I am only partially experienced in Html and this just goes over my head. Is there a chance that anyone could help me out here? Code: <hx:outputLinkEx styleClass="outputLinkEx" id="formPdfLink" onclick="return openPDFWord(this, '#{varsearchResults.targetURLForPDF}');" value="#{varsearchResults.pdfURL}"> <h:outputText style="color:red;" styleClass="outputText"styleClass="outputText" id="text7" value="#{varsearchResults.formIdAndEditionDate}" escape="false"> </h:outputText> </hx:outputLinkEx> Here i threw in the tag style = "color:red;" into my dynamic print code in my jsp file. I'm trying to get just these links to change color when clicked. Is there a way to use vlink? I tried style = "vlink:red" which didn't work. Any help on how to make that happen would be greatly appriciated. Regards, Will I would like to prompt for name & email address without using php. Possible and if so, how? Hi , how to add thick border for html table only for one side of the cell? Please let me know . Thanks Hey new to this thread a lot of useful help.. but i have a problem.. I am wondering if i can get some kind of code lets say from youtube of there top music vids... and make it post automatically into my website each time its the top? some kind of rss feed.but a link or video that updates with it? thanks in advance Hello! I have the following table of navigation links with a small image; here is the html: <table><tr><td bgcolor="#FFCCFF" width="830" height="15" align="center"><font face="Arial, Helvetica, sans-serif"><a href="index.html">Home</a> <a href="oneofakind.html">One of a Kind</a> <a href="gallery.html">Gallery</a> <a href="custom.html">Custom</a> <a href="about.html">About</a> <a href="customerservice.html">Customer Service</a> <a href="contact.html">Contact</a> <img border="0" src="images/pheart1.jpg" alt="pink heart"/>Shopping Bag</font></td></tr></table> My question is: I need to know how to incorporate the paypal button in the above image (the pheart1.jpg image). Here is the paypal button code: <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIG1QYJKoZIhvcNAQcEoIIGxjCCBsICAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBEVoAjxOL7Qpe6cNfHcycFT0oF w5abj/RnfE98m0l3DvH9qEmLc9i6v1ez9I9F7tFgmCJRmISr5FiMuO53cmuf7/O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YwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYD VQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJl QHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDA SBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARY NcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDk xMDA1MDEwMjI4WjAjBgkqhkiG9w0BCQQxFgQUAJ9ZFCB53DedpaDRYEiJ3TNsQ4AwDQYJKoZIhvcNAQEBBQAEgYBwQclIMhWJ52J eRMCJLY0hm5WrnZDaaUqQun6ouTzkuHu+PZj/Bw+sVbp1EpD6uMCkSWlRdGE9h9k1HZzBycHFDgHo4XE+vF+5SYg7480Nc3kwl3DcABZS0i9WxslLT+vB+KdLsH/MKYrGFAFZoAXcvheO61a98zmuar/U08YFBQ==-----END PKCS7----- "> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_viewcart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> If anyone can offer any suggestions, I would be eternally grateful!!!!! I have a small question about putting an image on my page, when i use the code
HTML Code: <img src ="ad1.jpg"> the image doesn't work, it just makes a weird icon with three colours. can sombody please help me? Hi Gang. I'm new to html programing and have what will more than likely be seen as a couple of dumb questions but here goes. What do I have to do to eliminate the need to include .html on links to new pages. What I am finding is that http://mydomain/list.html for example will not work if I type http://mydomain/list Also the links to html pages that I create will only work if I use lower case letters. What do I have to do to make this work with either upper or lower case. Thanks a bunch for any help you can supply. Just wondering if anyone knows of a way to do this, i'm thinking may with <span> or something but not sure. With a link tag like this <a href="home.html" target="frame"> I can open another web page into an iframe but what I want to do is also change some text that's not in the frame. It's kinda like a title for the frame that will be above it. I have played around with giving a <span id="test"> tag an id and trying to update it through the link <a href="home.html" target="frame" test="Title"> but nothing I have tried will work. In short i'm trying to change text on my website when someone clicks a link. Anyone know how I would go about this? Many thanks in advance. |