HTML - Simple Dropdown, Each Option Links To Different Page
Hi,
I need a dropdown menu where I can assign a different link to each option (and when the option is chosen that link is opened in the same window), it should be as simple as possible so it works on the majority of browsers and doesn't get blocked by various utilities that block java/scripting and all that stuff... I don't mind if the user has to press a 'submit' button or whatever. What's the best way to do this? Thanks. Similar Tutorialshow to do? i want a link that go to one site and show another text like - Lemon Smash <a href="http://www.jogos10.com/jugar.php?id=4918">Click to play =)</a> . but in option box. <script type="text/javascript"> window.onload=function() { document.getElementById('menu').onchange=function(){ goThere(this.value); } } function goThere(url){ location.href=url; } </script> </head> <body> <div> <select id="menu"> <option value="www.benfica.com" selected="selected">go to benfica</option> </select> </div> ?? is that? it is not working, is the last time that i call for your help, i promess, but plzzzzzzzzzz =D 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. Hey guys, I have a page here I'm testing out HTML dropdown links on: http://www.bluemasklover.co.uk/diary22.html and for some reason all 4 "site" buttons work in Firefox but not in IE. Could someone please tell me what I have to do to get them to work in both? Thanks BML. So lets say there's a site called TheEthnicsOfCreamCheese.com At TheEthnicsOfCreamCheese.com's home page, there are three links. One says "About", the next says "Contact", and the last says "Images." The first link leads to TheEthnicsOfCreamCheese.com/about, the second leads to TheEthnicsOfCreamCheese.com/contact, and the last leads to TheEthnicsOfCreamCheese.com/images. How do they create these separate pages? I use 000webhost if that matters. I tend to use the file manager provided on it, because I have no idea how to forward ports and all that. I'm sorry if this is an over-asked or overly-simple question, or if I asked it in the wrong forum because I really don't know, but I didn't want to look like an idiot and ask my friend who knows a ton about HTML. So I decided to ask it rather anonymously on the first result when I Googled HTML Help forum So yeah thanks sorry bye Dear All, While browsing I encountered with some of html pages which are not saved on PC, How its happening, any example is appreciable... Thanks all ... for an example... I would like to create a link or have a button called dropdown on a page, and once clicked, I would like it to drop down and give a description or show a paragraph or something... I don't want it to show up in another page once I click the link, just show up on the same page, but droped down directly under the link... Does anyone have an Idea what I mean? and how to do this... an easy way to accomplish this? or some nice tutorials? Thanks a lot... I 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> Hi all... I hope i can get some help here. I am working with html and a little css. On every page i want such buttons as "Home", "About"... Lets say i have 20 pages and want to add a new button called "Contact" on top of every page. How can i do that in a smart way? Because i dont like to change all twenty pages every time i want to add or delate one of these buttons. I hope you can help I have a folder which contains over 1000 songs on my server Artist-Song.mp3 format. I want to create a links page with my own template and such, but not have to sit and copy/paste the urls 1000 times. I need a program or script that would just recognize all the files in that folder so I can make a page to display all the songs. See what I'm saying? hi I have a website that created with frontpage and I want to make linkbar like marquee links in left side of page I could make marquee link bar but I want to know if I can make marquee to read links from another page that I could update that page and all marquee in every page automatically updat? Sorry for bad language Thanks for help Nima Hi all New to this forum and pretty basic in html But how to i create links at the top of the page to move down the page to certain sections. Regards, Alan Able to handle html sample code Dont know if it is the right forum place I have html links on my web site. These links are to files. Recently when i clicked the link, the file "open / Save" dialogue appears, but now i receieve a page can not be displayed. Right click save as works i.E 7, What could be causing this Regards, Alan Here it is now: http://acidtripmediaproductions.com/lmi/links.html What can I do to it so that it doesnt look so plain? I was going to take banners/logos of the few companies & make them a image with a link to the website, but not all of the websites had a really good image or logo that would work. What other tricks can I try? I am using <a href> classes in a css to change the colors of different types of links in my document. The default a:link is white. I defined another class a.bottomlink:link that is blue. If I use the bottomlink class with a link to a website that looks like this "http://website/subname/" I get a white link. If I use it with a link to a website that looks like "http://website/subname/pagename.asp" I get a blue link. I don't know the pagenames for all the websites I link to. Why is this happening? What can I do? Thanks. Hi, I am trying to figure out how to make my links stay on the left side page while scrolling down or up. Not sure if this is the right place to post. Any help, codes, and/or examples would be great. Thanks not sure if i need a js for this but I have a web page using page jump links to navigate a FAQ page. However, I would rather have a drop down menu/form with the links instead of a list of text links. Anybody have a clue? thanks in advance. This is what I have so far as an example... <form name="jump"><select id="select" name="select"> <option value="" selected="selected">Select</option> <option value="#1">Category 1</option> </select></form> <a id="1" name="1"></a> Category 1 Hey guys, I was wondering if anyone could help me? I wish to produce a website which works in the following way: The header and footer remain the same, and do not reload on page refresh. Then, links on a menu bar stimulate loading a new page, however only the content below the header changes. An example of this, is the CushyCMS website (http://www.cushycms.com). When you click the menu links, the header doesn't reload, only the page content does. How would I do this? My reason for wanting this method, is because I wish to have an image slider present within the header of all of my pages, and I don't wish to have to update every page each time I wish to add an image. Please help? Many thanks, Luke I think there is a simple fix for this...but I can't think of it. My client has an existing site (not very well designed and no templates) with hundreds of static pages. She wants me to create a new home (index.htm) page that is just a simple landing page where people can choose to enter her website OR visit the store to purchase products. Simple enough...but, now all of the 100's of static pages have the link Home=index.htm on them. I want people to type in the URL: www.mysite.com (for example) and land on the new page to choose to go to the site to learn about her and her music OR go to the store to shop. Once they are in the site, however, and hit the home link, I don't want them to go 'all the way back out' to the new landing page. I want them to go back to the 'old' index.htm page (or her current home page), without having to change the index.htm links on those 100's of pages. Is there an easy fix for this, using a naming convention for the home page? Any help would be greatly appreciated. I am a bit stumped on this one. Hi guys, Is there a way I can have a page of links sat in a directory which I can call from via other pages on the server? I think I'm thinking of something that can be done with PHP, but the idea is: On main page, for example, links: 1 2 3 All call to 'links.html' Which has a list of page URL's, each with their own ID. So the links on the main page call to the ID's, which extracts the link listed at that moment in time. So if I later want to change the link, I have only to change the link.html and not every related link on the site. I know I could maybe use inline frames, but the layout I have makes that not possible, and it's still not a great solution. I'm sure someone must know what I'm talking about. Sorry if it sounds confusing! Cheers! |