HTML - Making Text Boxes Appear On Request From Dropdown Box - Need Help Bad!
Hello there. We are right at the finish line of being done with our site. We are one of the biggest Youtube Optimizers on the net. We are the ones that get your videos to the top We have just been building a whole new site.
Ok Basically it is set up to where there are multiple packages for the user to order. Each package they can pick how many videos they would like to have optimized. I have started with this script but i'm lost. I'm a software developer not real deep in html. All I am needing it to do is if you pick 1 for 1 video only 1 text box appears. If you pick 4 for 4 videos only 4 text boxes appears.(The text boxes are for the user to enter in there Youtube Video url) And of course if they enter in 9 text boxes 9 will appear. The problem right now is it doesn't matter which number you press all 9 text boxes appear. I'm sure this is something very simple I am just not experienced in javascript if statements. If you can help it will be so much of a blessing! Here is what I have: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <form action=""> <select onchange="if (this.selectedIndex==1){this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='hidden'} {this.form['box3'].style.visibility='hidden'} {this.form['box4'].style.visibility='hidden'} {this.form['box6'].style.visibility='hidden'} {this.form['box7'].style.visibility='hidden'} {this.form['box8'].style.visibility='hidden'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==2){this.form['box2'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} if (this.selectedIndex==3){this.form['box3'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box4'].style.visibility='hidden'} {this.form['box5'].style.visibility='hidden'} {this.form['box6'].style.visibility='hidden'} {this.form['box7'].style.visibility='hidden'} {this.form['box8'].style.visibility='hidden'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==4){this.form['box4'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box5'].style.visibility='hidden'} {this.form['box6'].style.visibility='hidden'} {this.form['box7'].style.visibility='hidden'} {this.form['box8'].style.visibility='hidden'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==5){this.form['box5'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box4'].style.visibility='visible'} {this.form['box6'].style.visibility='hidden'} {this.form['box7'].style.visibility='hidden'} {this.form['box8'].style.visibility='hidden'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==6){this.form['box6'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box4'].style.visibility='visible'} {this.form['box5'].style.visibility='visible'} {this.form['box7'].style.visibility='hidden'} {this.form['box8'].style.visibility='hidden'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==7){this.form['box7'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box4'].style.visibility='visible'} {this.form['box5'].style.visibility='visible'} {this.form['box6'].style.visibility='visible'} {this.form['box8'].style.visibility='hidden'} if (this.selectedIndex==8){this.form['box8'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box4'].style.visibility='visible'} {this.form['box5'].style.visibility='visible'} {this.form['box6'].style.visibility='visible'} {this.form['box7'].style.visibility='visible'} {this.form['box9'].style.visibility='hidden'} if (this.selectedIndex==9){this.form['box9'].style.visibility='visible'} {this.form['box'].style.visibility='visible'} {this.form['box2'].style.visibility='visible'} {this.form['box3'].style.visibility='visible'} {this.form['box4'].style.visibility='visible'} {this.form['box5'].style.visibility='visible'} {this.form['box6'].style.visibility='visible'} {this.form['box7'].style.visibility='visible'} {this.form['box8'].style.visibility='visible'};"> <option value="">0</option> <option value="">1</option> <option value="">2</option> <option value="">3</option> <option value="">4</option> <option value="">5</option> <option value="">6</option> <option value="">7</option> <option value="">8</option> <option value="">9</option> </select> <br /> <input style="visibility:hidden;" type="text" name="box"><br /> <input style="visibility:hidden;" type="text" name="box2"><br /> <input style="visibility:hidden;" type="text" name="box3"><br /> <input style="visibility:hidden;" type="text" name="box4"><br /> <input style="visibility:hidden;" type="text" name="box5"><br /> <input style="visibility:hidden;" type="text" name="box6"><br /> <input style="visibility:hidden;" type="text" name="box7"><br /> <input style="visibility:hidden;" type="text" name="box8"><br /> <input style="visibility:hidden;" type="text" name="box9"><br /> </form> <body> </body> </html> Similar TutorialsI am trying to make two drop down list boxes (each with a "Enter" button), but I can't get them both to work. The second list box works fine, but the "Enter" button from the first box uses the selection of the second box as its reference. Does anyone know why this is happening? Below is the code that I am using. Code: </ br> <h1 style="text-align: center;">View Routes</h1> <p style="text-align: center;">Browse By Location:</ br><script type="text/javascript"> function submitForm() { var list = document.navList.subMenu; var page = list.options[ list.selectedIndex ].value; if (page != "home") window.location = page; return false; } </script> <form style="text-align: center" name="navList" onsubmit="return submitForm();"> <select name="subMenu"> <option value="home"> </option> <option value="http://climb-utah.modern-graphix.com/bryce-national-park">Bryce National Park</option> <option value="http://climb-utah.modern-graphix.com/capitol-reef-national-park">Capitol Reef National Park</option> <option value="http://climb-utah.modern-graphix.com/cedar-mesa">Cedar Mesa</option> <option value="http://climb-utah.modern-graphix.com/escalante-grand-staircase">Escalante Grand Staircase</option> <option value="http://climb-utah.modern-graphix.com/lake-powell-area">Lake Powell Area</option> <option value="http://climb-utah.modern-graphix.com/miscellaneous">Miscellaneous</option> <option value="http://climb-utah.modern-graphix.com/moab-area">Moab Area</option> <option value="http://climb-utah.modern-graphix.com/robbers-roost">Robbers Roost</option> <option value="http://climb-utah.modern-graphix.com/san-rafael-swell">San Rafael Swell</option> <option value="http://climb-utah.modern-graphix.com/wasatch-mountains">Wasatch Mountains</option> <option value="http://climb-utah.modern-graphix.com/uinta-mountains">Uinta Mountains</option> <option value="http://climb-utah.modern-graphix.com/valley-of-fire">Valley Of Fire</option> <option value="http://climb-utah.modern-graphix.com/zion-national-park">Zion National Park</option> </select> </ br> <input type="submit" value="Enter" /> </form> <p style="text-align: center;">Browse By Category:</p><script type="text/javascript"> function submitForm() { var list = document.navCat.subMenuCat; var page = list.options[ list.selectedIndex ].value; if (page != "home") window.location = page; return false; } </script> <form style="text-align: center" name="navCat" onsubmit="return submitForm();"> <select name="subMenuCat"> <option value="home"> </option> <option value="http://climb-utah.modern-graphix.com/family-fun">Family Fun - Easy</option> <option value="http://climb-utah.modern-graphix.com/weekend-warrior">Weekend Warrior - Moderate</option> <option value="http://climb-utah.modern-graphix.com/hardcore">Hardcore - Difficult</option> <option value="http://climb-utah.modern-graphix.com/technical">Technical - Highly Skilled</option> <option value="http://climb-utah.modern-graphix.com/adventure-tales">Adventure Tales - Stories</option> <option value="http://climb-utah.modern-graphix.com/video-audio-clips">Video & Audio Clips</option> <option value="http://climb-utah.modern-graphix.com/other-stuff">Other Stuff</option> </select> </ br> <input type="submit" value="Enter" /> </form> Hello everybody I'm struggling with something, and was hoping somebody could point me in the right direction. I have a long list that I would prefer as a dropdown selection, but don't know how to do it. If you go to: http://pcbytes-inter.net/domain-needed Type in an imaginary domain that you will manage the DNS settings for then press continue. You will see the long list of hosting packages. I would like this to be 2 dropdown boxes, eg choose package type and choose billing cycle. It still needs to submit the same information it currently does though. It does not need to be dynamic, as every package will have monthly, quarterly and yearly billing cycles. The code for the current page is below, does anybody have any ideas? Many thanks Lee Code: <%= user_menu %> <div id='t-package-chooser'> <h2>Hosting Packages</h2> <form accept-charset='utf-8' method='post' action='basket'> <% if no_upsell? %><input type='hidden' name='no-upsell' value='1'/><% end %> <h3>Select a Domain Name</h3> <p>This will be the name of your web site.</p> <p>http://www.<select name='domain-'> <% domains.each do |domain| %> <option value="<%= domain.html %>"><%= domain.html %></option> <% end %> </select></p> <p>If the domain name you would like to use is not listed above, please <a href='domain-needed'>click here to search for new domains or transfer existing ones</a>.</p> <h3>Select a Web Hosting Package</h3> <p>Please pick the kind of hosting package you'd like to order.</p> <% i = 0 %> <% hosting_products.each do | product | %> <h4><%= product.name.html %></h4> <p><%= product.description %></p> <input type='hidden' name='base_renewal_period-<%= i %>' value="<%= product.base_renewal_period %>" /> <input type='hidden' name='quoted_unit_price-<%= i %>' value="<%= billing.price(product.unit_price) %>" /> <p><input type='radio' name='add-product' value='<%= product.specific_type.html %>:<%= i %>:base_renewal_period,quoted_unit_price,domain' /><%= billing.currency_symbol.html %><%= billing.price(product.unit_price, :use_tax_prefs) %> <% if product.base_renewal_period != 'never' %> every <%= product.unit_period.to_s_short.html %> <% end %> <% if product.setup_fee != 0 %> plus a one off fee of <%= billing.currency_symbol.html %><%= sprintf("%.2f", if billing.include_tax? then billing.price(product.setup_fee) else product.setup_fee end) %> <% end %> <% if product.has_free_products? %> <br /> includes free domains <% product.free_products_list.each do | free_product | %> <%= free_product["free_name"] %> <% end %> <% end %> * </p> <% i = i + 1 %> <% end %> <p><input type='submit' value='Add to Basket'/></p> </form> <% unless basket.nil? or basket.empty? or no_upsell? %> <p><a href='basket?add-no-product=package'>No thank you, please continue with my order ....</a></p> <% end %> <% if not billing.tax_applies? %> <% elsif billing.include_tax? %> <p>* Includes <%= billing.tax_name %></p> <% else %> <p>* Excluding <%= billing.tax_name %></p> <% end %> </div> 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 Hello! My name is David Hogberg, and I'm working with websites. I wounder if someone can help me with this since I dont know how to do that, I want an dropdown menu like facebooks button and when you click on it you can log out and so and the menu is still there when you have your mouse somewere else, and when you click somewere else on the page, dont need to be a link, it goes away. How can you do that? I already made images of the button, one when its normal, one when you have mouse over when its flashes and one who is white with black button. How can I do this? I have searched alot on youtube and google but cant find something similar.. Please help me! Hey if any of you guys could help me it would be very much appreciated. I need to go from this: http://www.geocities.com/guun_han/te...?1180579026625 To this: http://img.photobucket.com/albums/v3...han/Ideall.jpg ANd I have no idea how I would code that. Hi All, I have come across a scenario where user enters credit card number. So I need to display user typing text (card number) as "*" in the text box. So I went and coded as password field since password box always mask user inputs. <input type="password" name="f1" value=""> But on hitting submit button, Mozilla firefox browser shows a pop up if I need to remember the password or not. My client dont want to display this pop-up. Can anyone pls tell me how to create a text box (not password box) to show user input as "*" so that it looks like as password box. Thanks in advance. Ok, you know how you can drag the mouse over any amount of normal text and the text gets that blue border around it. Try doing the same with an input box and you can only highlight the text of one input box at a time. How can I highlight the text from multiple form input boxes at once? i have one blog www.andhratalkies.co.nr i want to put Register and login buttions with text boxes(signup and signin) and it should be work can any one give me the code and instruct me. plzzz it's urgent thanks MO Hello all, I'm a newb at html, just started some basic coding last week. I've made my first site, though as you can see, the images and text (even if it's a placeholder right now) aren't lined up, and I'm not sure how to tell it to do that. Anybody with more expertise understand my situation, and how to fix it? Thanks! http://elliottetzkorn.com I hope this is in the right spot. Well I'm really loosing it becasue I think I wasted 4 hours on a webpage that I'm going to have to do all over. The problem: I spread out a grid, then filled it with text boxes. Well it looks great until I upload it to the Internet, because all of a sudden I have huge gaps which spread it out, creating huge breaks within the document. I'm not sure what to do from he Here's what it looks like: http://www.wellnessandpreventionoffice.org/WPO_body/ Here's what it is suppose to look like (note, this is a capture in layout mode): http://www.wellnessandpreventionoffi...ody/sample.jpg Notice the big spaces that are coming in after the bottom bullet in each list. eventually every line will be a link similar to the word "Elementary" under Physical Education. I'm open to any suggestions. THANK YOU! Html code for Text Boxes that the user writes down his details and then click to a button and his details comes to an eimail... look an example ... http://www.arkadiko-meli.gr/form.asp?i=2 Hi everyone, I am working on a table for a future website and I need some help. I need to make the text at the top vertical, as in taking the word and turning it 90 degrees to the left. The best way for me to explain this is to show u the problem/test page. http://aquariachat.com/bigchangesare...chartfeb23.php I am making the chart/table in a simple html editor if that information is of any use. Thanks a lot, Drew On my forum we have made a member legend where if you roll the mouse over the box text pops out above saying what group it is. How do i make that text in color. Code: <script> <!-- //variables newtitle = "Member Legend" pretext = "Legend:" selected = "Selected:" mover = "Group:" howwide = "100%" numbergroup = 8 dropdown = "NO" dropdefault= "Groups- - -" //legend;Team Name,Color,Symbol Color,Symbol,iconimg var legend = [] legend[1]=["Administrator" , "blue" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013117.gif"] legend[2]=["Moderator" , "red" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013069.gif"] legend[3]=["Community Staff" , "green" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013104.gif"] legend[4]=["Review Staff" , "brown" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013176.gif"] legend[5]=["Graphics Staff" , "purple" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013202.gif"] legend[6]=["Advertising Staff" , "orange" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013145.gif"] legend[7]=["Elite Member" , "+" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://209.85.48.9/1867/132/upload/p6013069.gif"] legend[8]=["<s>Banned</s>" , "black" , "SYMBOL COLOR HEX" , "TEAM SYMBOL" , "http://i15.photobucket.com/albums/a399/Gamer3773/black3.jpg"] //icons newicon = "http://209.85.48.11/9339/63/upload/p3858342.gif" //options groups memgroup = [] memgroup[1] = [""] //end variables;start external document.write('<script src = "http://70.85.240.179/4035/102/upload/p370790.ibf"></script>') //--> </script> here is an example http://z11.invisionfree.com/asdlk/index.php? Reference: http://test5.waltonstreetwebdesign.com/contact.php So there are 3 text inputs there and 1 textarea, I need them to be the same width. The thing that I don't get is that each input has the same CSS class giving it a width. So why aren't my text inputs the same length as the textarea? I'm looking at this on a Mac, it's not the same width in both FF and safari. Thank you for the help! Is it possible to have some error text appear if a user is browsing your website with a certain browser using html/css or maybe java? An example being: If - The website is being browsed using Safari Then - SHOW error text = "This link won't work with the Safari browser." Else - DO NOT SHOW error text is that sort of thing viable or just a pipe dream at current? Thanks in advance. Regards, Stoney Hi 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 Hi, I am creating a form in which i have a dropdown menu. According to the selection(s) in drop down menu, that many text field(s) should be shown below that drop down menu. Have a look at this code... <html> <head> <title> Sample Application </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script> function callMe() { if(document.MyForm.dropDownValue.value != ""){ document.getElementById("txtBox").style.visibility = "visible"; } else{ document.getElementById("txtBox").style.visibility = "hidden"; } } </script> </head> <body> <form name="MyForm"> <table> <tr> <td> <select name="dropDownValue" onchange="callMe();"> <option value="">--None--</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> </tr> <tr id="txtBox" style="visibilty:visible"> <td> Enter Your Value He </td> <td> <input type="text" name="txtEntry" value=""> </td> </tr> </table> </body> </html> : the problem is: when I select 2, it suppose to show 2 text fileds and 3 when i select 3 accordingly. I am new to this stuff...so,can any one help me out ASAP pls?? thanks , i will be waiting for your reply... -S Hey guys, my first post here. I'm a normal web developer, and know my stuff pretty well. However, there i sone thing that I don't understand, and that is how to make fancy text boxes. I really like how Lockerz.com made their text boxes, and want to make mine like that. The entire rounded rectangle appears to be the box, and the font is large, a sans-serif font, and grey. How is that even possible? I looked into using backgrounds in the CSS, but that didn't work. If anyone knows anything, please post it here haha Thank you in advanced |