En este mensaje pongo el código html resultado de un cgi.
Lo pongo para que tengan un ejemplo de como resolvi el problema de gestionar un select multiple con javascript en un formulario.
Lo cierto es que lo pongo en el foro de HTML porque necesito que alguien me diga como hacer que esta pagina tenga un tamaño mas pequeño.
con una resolucion de 1024x768 me ocupa practicamente toda la ventana de ancho.
He jugado con el css y el tamaño de letra pero no consigo ningun resultado
me siguen saliendo unas letras demasiado grandes
Alguien me puede hechar una mano?
Gracias.
- Código: Seleccionar todo
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> HYBRIDIZATION </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../forms.css">
<script type="text/javascript" src="../cookie.js"></script>
<script type="text/JavaScript">
<!--
function sesion()
{
var id_session=GetCookie("session");
if (id_session!=null)
{
document.formulario.id_login.value=id_session;
}
else
{
alert("Your entry is expired. Please login again.");
window.location.href="http://mi.server.es/cgi-bin/login.cgi";
}
}
// -->
</script>
<script type="text/JavaScript">
<!--
function add_values(objetoSelect)
{
var opt_selected = new Array();
var index = 0;
for (var i=0;i < objetoSelect.options.length;i++)
{
if (objetoSelect.options[i].selected)
{
opt_selected[index] = objetoSelect.options[i].value;
index++;
}
}
return opt_selected;
}
-->
</script>
</HEAD>
<body onLoad="sesion()">
<CENTER>
<BR>
<FORM name="formulario" id="formulario" action="http://mi.server.es/cgi-bin/DB_read_hibrid.cgi" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id_login" value= "0">
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#D9D9D9" style ="text-align:center; color:#3131FF; border-color:#C9C9C9; border-style:ridge;">
<TR><TD>
<TABLE BORDER="0" style="text-align:center;color:#3131FF;">
<TR>
<th nowrap style="color:#000000;background-color:#B9B9B9">Exp. Reference</th>
<th nowrap style="color:#000000;background-color:#B9B9B9">Slide</th>
<th nowrap style="color:#000000;background-color:#B9B9B9">Array Type</th>
<th nowrap style="color:#000000;background-color:#B9B9B9">Data Owner</th>
<th nowrap style="color:#000000;background-color:#B9B9B9">Note Book H.</th>
<th> </th>
<th>Users</th>
<th> </th>
<th>New Users</th>
<th> </th>
<th rowspan="11" valign="top">
<TABLE border="0">
<TR><TH nowrap style="color:#000000;background-color:#B9B9B9">Select Users</TH></TR>
<TR><TD><IMG alt="" WIDTH="1" HEIGHT="50" BORDER="0" src="../img/spacer.gif"/></TD></TR>
<TR><TD>
<SELECT name="SELECT_USER" id="SELECT_USER" size="10" multiple>
<option value="121">121.- AALCARAZ</option><option value="105">105.- ABIGAS</option><option value="141">141.- ANAVARRO</option><option value="129">129.- ASKOUDY</option><option value="139">139.- CBENDOV</option><option value="107">107.- CFILLAT</option><option value="120">120.- CLOPEZ</option><option value="133">133.- CPUIGDOMEN</option><option value="102">102.- CPUJADES</option><option value="101">101.- FPOSAS</option><option value="135">135.- FSOLE</option><option value="110">110.- JARAN</option><option value="132">132.- JBAULIDA</option><option value="124">124.- JFERRER</option><option value="134">134.- JGARCIA</option><option value="138">138.- JGOMEZ</option><option value="137">137.- JMARTINEZ</option><option value="118">118.- JVALCARCEL</option><option value="103">103.- LAROLA</option><option value="127">127.- LFLORENSA</option><option value="131">131.- LPEREZ</option><option value="111">111.- LSEVILLA</option><option value="100">100.- MALDEA</option><option value="117">117.- MARBONES</option><option value="125">125.- MBACH</option><option value="116">116.- MBEATO</option><option value="115">115.- MCOROMINAS</option><option value="119">119.- MDIERSSEN</option><option value="114">114.- MFIGUERAS</option><option value="106">106.- MGUITART</option><option value="112">112.- MMARTELL</option><option value="136">136.- MMILA</option><option value="144">144.- MVILARDELL</option><option value="113">113.- MVIVES</option><option value="108">108.- NNOGUES</option><option value="122">122.- PPUIG</option><option value="128">128.- PREAL</option><option value="142">142.- PSARAGUETA</option><option value="109">109.- RMENDEZ</option><option value="126">126.- RTORRE</option><option value="143">143.- TDELRIO</option><option value="123">123.- TTHOMSON</option><option value="130">130.- TWAES</option><option value="140">140.- VCAMPUZANO</option><option value="104">104.- XESTIVILL</option>
</SELECT>
</TD></TR>
</TABLE>
</th>
</TR>
<TR>
<TD>28-OCT-04</TD>
<TD>251239118111_DS</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_485" id="hid_485" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_485.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>20-OCT-04</TD>
<TD>251239118110_DS</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_483" id="hid_483" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_483.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>20-OCT-04</TD>
<TD>251239118108</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_482" id="hid_482" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_482.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>20-OCT-04</TD>
<TD>251239118107_DS</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_481" id="hid_481" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_481.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>20-OCT-04</TD>
<TD>251239118106</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_480" id="hid_480" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_480.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>19-OCT-04</TD>
<TD>251239118518</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_479" id="hid_479" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_479.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>19-OCT-04</TD>
<TD>251239118517</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_478" id="hid_478" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_478.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>19-OCT-04</TD>
<TD>251239118516</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_477" id="hid_477" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_477.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>19-OCT-04</TD>
<TD>251239118515</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_476" id="hid_476" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_476.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
<TR>
<TD>19-OCT-04</TD>
<TD>251239118514</TD>
<TD>Agilent 44K</TD>
<TD>PREAL</TD>
<TD>DOTERO</TD>
<TD> </TD>
<TD><Input type="textarea" value="" disabled="true" size="20"></TD>
<TD> </TD>
<TD><Input type="textarea" name="hid_475" id="hid_475" size="18"></TD>
<TD><button type="button" name="add_1" id="add_1" onclick="javascript:document.formulario.hid_475.value=add_values(document.formulario.SELECT_USER);"> <IMG src="../img/add.png"/> </button></TD>
</TR>
</TABLE>
</TD></TR>
</TABLE>
</CENTER>
</BODY>
</HTML>