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, "");
</script>
(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: