Posted July 19, 200618 yr I'm trying to condense all the various text/page links on my Ohio index page (www.roadfan.com/ohsigns.html) And in doing so I would like to put in some pull-down menus for the various pages one could go to from that page. The catch, I can't seem to get any of the selections on any of the menus "active." IOW, when you click on any of the choices of pages, nothing happens (no new page, no error screen, nothing). So, how do I go about creating pull-down menus that you can click on a selection and go to that particular webpage (from the selection given)? Do I need to abandon HTML and use some other programming language? :?
July 19, 200618 yr Javascript You can also use CSS scripting. There is a way to do this that doesn't require a button but I don't know how to do that. In the head for each pull down: <script language="javascript"> function GenPag(form){ window.open(form.general.options[form.general.selectedIndex].value, target='_self') } </script> in the body for each pull down The line with "selected" in it will be the item that shows. You can leave it blank if you want or put in a title without a link. <form> <select name="general"> <option value="http://www.adobe.com" selected>Adobe <option value="http://www.microsoft.com">Microsoft </select> <p> <input type="button" value="Go" onClick="GenPag(this.form)"> </p> </form>
Create an account or sign in to comment