php and list boxes and width?

evachick156

New member
I have the following list box:
echo("<Select size=3 MULTIPLE style='width: 235px; font-size: 9pt;' onMouseover='changeWidth(" . $rows['id'] . ")' onMouseout='changeWidthBack(" . $rows['id'] . ")' onchange='getMedia(" . $rows['id'] . ")' name='" . $rows['id'] . "_t[]' id='" . $rows['id'] . "_t'>");

And the following JS functions:
function changeWidth(x)
{
document.getElementById(x + '_t').style.width = 400 + 'px';
}
function changeWidthBack(x)
{
document.getElementById(x + '_t').style.width = 235 + 'px';
}

But the problem is it wrecks my design big time. Is there a way i can expand my listbox so that users can see full setence on mouseout without making my table so much larger?
 
Back
Top