Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/02/2003, 07:14
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 5 meses
Puntos: 381
También podrías hacer algo así:


Código PHP:
<script language="javascript">
var 
valores=new Array()
valores[0] =null
valores
[1]="Archivo tipo A"
valores[2]="Archivo tipo b"
valores[3]="Archivo tipo c"
function ver(val)
{
if(
val==0){return false}
else{
document.getElementById('mostrar').innerHTML=valores[val]}
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="18%"> 
      <select name="stipo" id="stipo" onChange="ver(this.selectedIndex)">
        <option value="0">Seleccione un tipo</option>
        <option value="A">1</option>
        <option value="B">2</option>
        <option value="C">3</option>
      </select>
    </td>
    <td width="82%" id="mostrar">&nbsp;</td>
  </tr>
</table> 
Ya me contarás