
24/01/2002, 07:23
|
| | Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 24 años, 1 mes Puntos: 0 | |
Re: Algo muy simple que no se hacer!!! Algo así te puede servir?
<pre>
<html>
<head>
<title> New Document </title>
<script language="JavaScript">
<!--
var contador = 3;
function suma(){
document.forms[0].cmpo1.value = eval(document.forms[0].cmpo1.value) + contador;
}
//-->
</script></head>
<body bgcolor="#FFFFFF">
<form method=post action="">
<input type="text" name="cmpo1" value=0>
<input type="button" onclick="suma();">
</form>
</body>
</html>
[/cont] </pre>
<hr noshade size=1 color="#000000"><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE] |