Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/03/2009, 18:11
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
[JQUERY] Problema con animate

Hola,
Trato de cambiar el color de un div con animate:
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <script src="http://code.jquery.com/jquery-latest.js"></script>
  6. <script type="text/javascript">
  7. <!--
  8. function animar(){
  9.     $("#algo").animate({"background-color":'#FFFFFF'},500);
  10. }
  11. -->
  12. <style type="text/css">
  13. <!--
  14. #algo {
  15.     background-color: #FFFFC1;
  16. }
  17. -->
  18. </head>
  19.  
  20. <div id="algo">Mi texto</div>
  21. <button onclick="animar();">Animar</button>
  22. </body>
  23. </html>
Pero no me lo cambia.
Gracias
Salu2
__________________
Half Music - www.halfmusic.com