HTML DIV 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/DivComboBox.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 (DEFAULT = 200) ] , [Other] ,[OtherStyle] , [Values] );

It is that simple!
This script should work in all Mozilla based browsers (Netscape 5+, KHTML, Safari, Firefox), IE4+, as well as Opera 7+.
Favorite Digit:

Favorite fruit:

Welcome

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