Conversión a Javascript
¿Cómo sería esto en javascript?
Gracias
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<?php
if ($_POST){
//Incrementamos el valor
$conta = $_POST["conta"] + 10;
}
else{
//Valor inicial
$conta = 0;
}
?>
</head>
<body>
<form name="f1" action="<?=$_SERVER["PHP_SELF"]?>" method="post">
<input type="hidden" name="conta" value="<?=$conta?>">
<input type="submit" value="Incrementar">
</form>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="enlace externo"
width=<?=$conta?> height=<?=$conta?>>
<param name="movie" value="archivo.swf" />
<param name="quality" value="high" />
<embed src="archivo.swf" quality="high" pluginspage="enlace externo"
type="application/x-shockwave-flash" width=<?=$conta?> height=<?=$conta?>></embed>
</object>
</div></td>
</tr>
</table>
<?php
print "$conta"
?>
</body>
</html>
Gracias
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<?php
if ($_POST){
//Incrementamos el valor
$conta = $_POST["conta"] + 10;
}
else{
//Valor inicial
$conta = 0;
}
?>
</head>
<body>
<form name="f1" action="<?=$_SERVER["PHP_SELF"]?>" method="post">
<input type="hidden" name="conta" value="<?=$conta?>">
<input type="submit" value="Incrementar">
</form>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="enlace externo"
width=<?=$conta?> height=<?=$conta?>>
<param name="movie" value="archivo.swf" />
<param name="quality" value="high" />
<embed src="archivo.swf" quality="high" pluginspage="enlace externo"
type="application/x-shockwave-flash" width=<?=$conta?> height=<?=$conta?>></embed>
</object>
</div></td>
</tr>
</table>
<?php
print "$conta"
?>
</body>
</html>
1 respuesta
Respuesta de Francisco Castán
1