Foros del Web » Programando para Internet » Jquery »

[JQUERY] Problema con animate

Estas en el tema de [JQUERY] Problema con animate en el foro de Jquery en Foros del Web. Hola, Trato de cambiar el color de un div con animate: @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código html: Ver original <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
  #1 (permalink)  
Antiguo 30/03/2009, 18:11
Avatar de 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
  #2 (permalink)  
Antiguo 30/03/2009, 18:48
Avatar de pato12  
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: [JQUERY] Problema con animate

Solucionado:
http://www.tierra0.com/2007/11/06/ca...or-con-jquery/
__________________
Half Music - www.halfmusic.com
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:44.