Table width and html and php?

evachick156

New member
<table class="train" width="100%" style="table-layout: fixed;">
<td class="train" style='width: 200px'>
<?
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'>");

So the table is fixed which I want it doesnt move. But i need to expand my list box and when i call the JS functions it doesnt do anything?
Ive posted similiar question ages ago...i beg anyone for their help i am so stuck!!!
 
Let's start with working on your select box.

Take it out of the echo so you can see it, even when PHP is not running.

<?php $id = $rows['id']; ?>

<select size="3" multiple style="width:235px; font-size:9px;' onmouseover='changeWidth("<?php echo $id; ?>")
onmouseout='changeWidthBack("<?php echo $id; ?>")
onchange="getMedia("<?php echo $id; ?>")
name="<?php echo $id; ?>_t[]"
id="<?php echo $id; ?>_t"
>
</select>

Now check if it's working.

Just a note, the table can block the growth of your select box.
 
Back
Top