| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 17831 | 2002-04-12 10:02:00 | HTML Dropdown Boxs | Guest (0) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 43461 | 2002-04-12 10:02:00 | I am a newbie to html coding so I got a javascript code for a link drop down box but when I coded it into a page there was a 6-7cm gap between the words and the drop down box. How can I change this so that there is not a large gap? | Guest (0) | ||
| 43462 | 2002-04-12 10:14:00 | We would need to see the code to help (!) | Guest (0) | ||
| 43463 | 2002-04-12 23:32:00 | <SCRIPT LANGUAGE='JavaScript'> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT> </HEAD> <BODY> <center> <form name='form'> <select name='site' size=1> <option value=''>Go to.... <option value=''>My Favourite Links on the Net <option value='www.nzpages.net'>NZPAGES-<br><I> A web hosting service < <option value='www.xtra.co.nz'>Xtra-<br><I> A great ISP < <option value='www.redalert2.com'>C&C Red Alert 2-<br><I> A great war game < <option value='www.westwood.com'>Westwood-<br><I> A Game Studio < <option value='www.ea.com'>Electronic Arts-<br><I> A Game Studio < <option value=' An upcoming Linux OS <br> Gaming system </I>" target="_blank">www.tuxboxproject.com'>Tux Box Project-<br><I> An upcoming Linux OS <br> Gaming system < <option value='www.ghostrecon.com'>Ghost Recon-<br><I> A great war game < <option value='www.ubisoft.com'>Ubisoft-<br><I> A Game Studio < <option value='www.cnn.com'>CNN-<br><I> A News Service < <option value='www.intel.com'>Intel-<br><I> Pentium Range of CPU Maker </I> <option value='www.netguide.co.nz'>Netguide-<br><I> A great Internet Magazine < <option value='www.pcworld.co.nz'>PC WORLD-<br><I> A great PC magazine < <option value='http://www.javascript.com'>Javascript.com </select> <input type=button value='Go!' onClick='javascript:formHandler(this)'> </form> Here is the code |
Guest (0) | ||
| 1 | |||||