HTML Combo Box

Your name:

    Your Vote for : .... but remember ... choose wisely (Write-ins allowed).

Simply include these javascript files (include each file only once even though you may have more than one Combobox one the page) :
<script language="javascript" src="/dhtml/m-x.js"></script>
<script language="javascript" src="/DComboBox/DcomboBox.js"></script>
and then with one line of code, you can create your own DHTML ComboBox
(create one of these for each Combobox that you would like on the page; making sure the Combobox name is a unique element name within the page) :
						<script language="JavaScript">
WriteDCBox("FavoriteNumber","NaN", "0,1,2,3,4,5,6,7,8,9" , 60, "");
(This must be placed inside of     <form>         </form>         tags.)

WriteDCBox ( Name , StartingValue, Options, PixelWidth , Other );

It is that simple!
This script should work in all Mozilla based browsers (Netscape 5+, KHTML, Safari, Firefox) and IE4+. It "gracefully downgrades" for NS4.
Favorite Digit: Favorite fruit:


Please contact me if you have a great idea for a project and need technical expertise in designing, developing, or integrating a custom software solution.

Recent Comments

Comment RSS