Código PHP:
<form id="elemento" method=post action="elementos.php">
Introduce un nuevo elemento a la lista: <input type=text name=elemento width="600" height="200">
<input type=button value=Aceptar class="boton" onClick="myajax.Form('elemento', 'elementos_lista');">
</form><br><br><br>
<div id="elementos_lista">
<?php
include "conecta.php";
$elementos = mysql_query("SELECT cuerpo,votes,id FROM objeto where lista='1' ORDER BY votes DESC",$link);
echo "<br>";
while ($elemento = mysql_fetch_array($elementos))
{ ?>
<center><table width='631' border='0' class='bordepunteado1'>
<tr>
<td width='56'><b><?php echo "{$elemento['votes']}"; ?></b> </td>
<td width='515'><b><?php echo "{$elemento['cuerpo']}"; ?></b></td>
<td width='19'><form id="sube<?php echo "{$elemento['id']}"; ?>" method='post' action='sube.php'><input type='image'
src='ranking_sube.gif' onClick="myajax.Form('sube<?php echo "{$elemento['id']}"; ?>", 'elementos_lista');"
onSubmit="return false;">
<input type='hidden' value="<?php echo "{$elemento['id']}"; ?>" name='id' ></form></td>
<td width='19'><form id="baja<?php echo "{$elemento['id']}"; ?>" method='post' action='baja.php'><input type='image'
src='ranking_baja.gif' onClick="myajax.Form('baja<?php echo "{$elemento['id']}";?>",'elementos_lista');">
<input type='hidden' value="<?php echo "{$elemento['id']}"; ?>" name='id'></form></td>
</tr>
</table></center><br><?php
}
mysql_free_result($elementos); ?></div>