Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2012, 21:53
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: ultima entrada, siempre primero en un DIV

Si conocés el último valor

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <a href="#" onclick="yaa('a');">Escrbir</a> <a href="#" onclick="yaa('d');">Escrbir</a> <a href="#" onclick="yaa('4');">Escrbir</a>
  8. <div id="testing"></div>
  9. <script type="text/javascript">
  10. //<![CDATA[
  11. function yaa(uno){
  12. var texto = document.getElementById("testing").innerHTML;
  13.  
  14. if(uno == '4'){
  15. document.getElementById("testing").innerHTML = uno+' un Post!.<br \/>' + texto;
  16. }else{
  17. document.getElementById("testing").innerHTML += uno+' un Post!.<br \/>';
  18. }
  19.  
  20. }
  21. //]]>
  22. </body>
  23. </html>



Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.