Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/02/2004, 07:55
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
prueba si te sirve así

<html>
<head>
<title> CONVERSOR </title>
<script LANGUAGE="JavaScript">
var euro=166.386;
function eur(cual){
cual.value=Math.round(parseInt(cual.value/euro));
}
function pelas(cual){
cual.value=Math.round(parseInt(cual.value*euro));
}
</script>

</head>

<body BGCOLOR="#FFBE9F">
<br><br>

<form NAME="conversor">
<table width="43%" border="0" align="center">
<tr>
<td colspan="2">Conversor Euros / Pesetas</td>
</tr>
<tr>
<td>Pesetas</td>
<td>Euros</td>
</tr>
<tr>
<td><input type="TEXT" name="pts" value="0" size="10">
<input type="BUTTON" name="a_euros" value="->" onClick="eur(this.form.pts)"></td>
<td><input type="TEXT" name="euros" value="0,00" size="10">
<input type="BUTTON" name="a_pts" value="<-" onClick="pelas(this.form.euros)"> </td>
</tr>
</table>
</form>


<p>&nbsp;</p>
</body>

</html>