Just for general interest and in case anyone needs similar:
http://www.javascriptkit.com/script/script2/dhtmlcombo.shtml
This will do the trick.
Cheers guys.
"darrel" <notreal@nowhere.com> wrote in message
news:enukn3$f7u$1@forums.macromedia.com...
>> I want to locate a script (and I have seen this
before) that will create
>> a fixed-width drop down (ie select) menu (form
element type) that when
>> selected will expand the width to a greater size
than the un-expanded
>> fixed-width section, as wide as the largest select
item in the list.
>
> Ah! Gotcha.
>
> Well, again, why not just let it be as wide as it has to
be?
>
> Otherwise, you should be able to set the width of the
ddl via your CSS,
> then use an onClick event to change it:
>
> document.getElementById('yourDropDownList').style.width=
"200px";
>
> and then use an onChange event to swap it back:
>
> document.getElementById('yourDropDownList').style.width=
"100px";
>
> There's probably a more automated/elegant way to write
all that but that
> should get you started, hopefully.
>
> But, depending on your layout, that might cause other
parts of the page to
> jump around.
>
> -Darrel
>