Dreamweaver - una calculadora en macromedia???

 
Vista:

una calculadora en macromedia???

Publicado por la dama de hierro (1 intervención) el 22/05/2007 03:30:01
tengo una tarea mega dificil para mi.. se ke habra gente wena onda ke me ayudara! necesito pasar mi curso de macromedia!!!

necesito saber los pasos para realizar una calculadora en macromedia, que solo haga las 4 operacciones mas importantes que son la suma resta, division y multiplicacion, que el numero solo aparesca al teclearlo
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:una calculadora en macromedia???

Publicado por diana (1 intervención) el 10/12/2008 21:08:06
por favor necesito saber los pasos para relaizar una calculadora en este programa por favor es que es un examen plisssssssssss
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:una calculadora en macromedia???

Publicado por mari (1 intervención) el 23/05/2010 18:59:56
<html>
<head>
<script language="javascript">
function (suma,resta,producto,division)
{
return parseFloat(suma)parseFloat(resta)parseFloat(producto)parseFloat(divicion);
}
</script>
</head>
<body>
<form>
<br>
<h1>
calculadora elemental
</h1>
<br>
teclea un numero;
<input type="text" name="num1">
<br>
teclea otro numero;
<input type="text" name="num2">
<br>
<input type="button" value="suma">
<input type="button" value="resta">
<input type="button" value="producto">
<input type="button" value="division">
<br>
el resultado es:
<input type="text" name="resultado">
</form>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:una calculadora en macromedia???

Publicado por isis (1 intervención) el 03/02/2009 15:23:03
espero ke te sirva este código jeje

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<form id="form1" name="calc" method="post" action="">

<table border="4">
<tr>
<td><input type="text" name="input" size="16" />
<br>
</td>
</tr>
<td><p>
<input type="button" name="uno" value="1" onclick="calc.input.value+='1'" />
<input type="button" name="dos" value="2" onclick="calc.input.value+='2'" />
<input type="button" name="tres" value="3" onclick="calc.input.value+='3'" />
<input type="button" name="cuatro" value="4" onclick="calc.input.value+='4'" />
<input type="button" name="cinco" value="5" onclick="calc.input.value+='5'" />
<input type="button" name="seis" value="6" onclick="calc.input.value+='6'" />
</p>
<p>
<input type="button" name="siete" value="7" onclick="calc.input.value+='7'" />
<input type="button" name="ocho" value="8" onclick="calc.input.value+='8'" />
<input type="button" name="nueve" value="9" onclick="calc.input.value+='9'" />
<input type="button" name="cero" value="0" onclick="calc.input.value+='0'" />
<input type="button" name="multiplicacion" value="*" onclick="calc.input.value+='*'" />
<input type="button" name="igual" value="=" onclick="calc.input.value=eval(calc.input.value)" />
</p>
<p>
<input type="button" name="limpiar" value="C" onclick="calc.input.value=' '" />
<input type="button" name="punto" value="." onclick="calc.input.value+='.'" />
<input type="button" name="mas" value="+" onclick="calc.input.value+='+'" />
<input type="button" name="menos" value="-" onclick="calc.input.value+='-'" />
<input type="button" name="division" value="/" onclick="calc.input.value+='/'" />
</p>
<p> </p>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:una calculadora en macromedia???

Publicado por Brian (2 intervenciones) el 20/08/2010 05:24:28
Parce después de que copie esto tal cual en la parte de codigos de dreamweaver le aparecera una calculadora con las 4 operaciones basicas:

<?php
$numero1=$_POST['numero1'];
$numero2=$_POST['numero2'];
$sumar=$_POST['sumar'];
$restar=$_POST['restar'];
$multiplicar=$_POST['multiplicar'];
$dividir=$_POST['dividir'];


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
</head>

<body>
<form action="" method="post" name="datos" id="datos"><table width="400" border="0" align="center" cellpadding="8" cellspacing="0" bgcolor="#99FF66">
<tr align="center">
<td colspan="2"><strong>CALCULADORA BÁSICA </strong></td>
</tr>
<tr>
<td width="40%">Número 1 </td>
<td width="60%"><input name="numero1" type="text" id="numero1" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="40%">Numero 2 </td>
<td width="60%"><input name="numero2" type="text" id="numero2" size="10" maxlength="10"></td>
</tr>
<tr align="center">
<td colspan="2"><input name="sumar" type="submit" id="sumar" value="Sumar">
<input name="restar" type="submit" id="restar" value="Restar">
<input name="multiplicar" type="submit" id="multiplicar" value="Multiplicar">
<label>
<input name="dividir" type="submit" id="dividir" value="Dividir">
<input name="exponenciar" type="submit" id="exponenciar" value="Exponenciar">
<input name="residuo" type="submit" id="residuo" value="Residuo">
</label></td>
</tr>
</table>
</form>

<br>
<br>
<table width="400" border="0" align="center" cellpadding="8" cellspacing="0" bgcolor="#99FF66">
<tr>
<td width="40%">RESULTADO</td>
<td width="60%">



<?php
if (isset($sumar)){
echo ($numero1+$numero2);
}
if (isset($restar)){
echo ($numero1-$numero2);
}
if (isset($multiplicar)){
echo ($numero1*$numero2);
}
if (isset($dividir)){
echo ($numero1/$numero2);
}




?>
</td>
</tr>
</table>

</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:una calculadora en macromedia???

Publicado por Brian (2 intervenciones) el 20/08/2010 05:25:38
Parce después de que copie esto tal cual en la parte de codigos de dreamweaver le aparecera una calculadora con las 4 operaciones basicas:

<?php
$numero1=$_POST['numero1'];
$numero2=$_POST['numero2'];
$sumar=$_POST['sumar'];
$restar=$_POST['restar'];
$multiplicar=$_POST['multiplicar'];
$dividir=$_POST['dividir'];


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
</head>

<body>
<form action="" method="post" name="datos" id="datos"><table width="400" border="0" align="center" cellpadding="8" cellspacing="0" bgcolor="#99FF66">
<tr align="center">
<td colspan="2"><strong>CALCULADORA BÁSICA </strong></td>
</tr>
<tr>
<td width="40%">Número 1 </td>
<td width="60%"><input name="numero1" type="text" id="numero1" size="10" maxlength="10"></td>
</tr>
<tr>
<td width="40%">Numero 2 </td>
<td width="60%"><input name="numero2" type="text" id="numero2" size="10" maxlength="10"></td>
</tr>
<tr align="center">
<td colspan="2"><input name="sumar" type="submit" id="sumar" value="Sumar">
<input name="restar" type="submit" id="restar" value="Restar">
<input name="multiplicar" type="submit" id="multiplicar" value="Multiplicar">
<label>
<input name="dividir" type="submit" id="dividir" value="Dividir">
<input name="exponenciar" type="submit" id="exponenciar" value="Exponenciar">
<input name="residuo" type="submit" id="residuo" value="Residuo">
</label></td>
</tr>
</table>
</form>

<br>
<br>
<table width="400" border="0" align="center" cellpadding="8" cellspacing="0" bgcolor="#99FF66">
<tr>
<td width="40%">RESULTADO</td>
<td width="60%">



<?php
if (isset($sumar)){
echo ($numero1+$numero2);
}
if (isset($restar)){
echo ($numero1-$numero2);
}
if (isset($multiplicar)){
echo ($numero1*$numero2);
}
if (isset($dividir)){
echo ($numero1/$numero2);
}




?>
</td>
</tr>
</table>

</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar