Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/08/2015, 15:59
rakshaka
 
Fecha de Ingreso: mayo-2009
Mensajes: 166
Antigüedad: 15 años
Puntos: 2
Sonrisa Problema con fadeTo

Bueno, tengo este código Javascript que básicamente cambia el fondo de un div en modo Fade:

Código Javascript:
Ver original
  1. <script>
  2. $(document).ready(function() {
  3.    
  4. var contenedor = $('#intro');
  5. var contenedor1 = $('#intro_description');
  6. var tiempo = 2000;
  7. contenedor.css({'background-image':'url(img/texturas/papel.jpg)'});
  8. contenedor.css({'background-repeat':'repeat'});
  9.  
  10. function image1(){
  11. setTimeout(function() {
  12. contenedor.fadeTo('slow', 0.8, function() {
  13. $(this).css({'background-image':'url(img/texturas/balsa.jpg)'});
  14. image2();}).fadeTo('slow', 1);}
  15. ,tiempo);
  16. }
  17.  
  18. function image2(){
  19. setTimeout(function() {
  20. contenedor1.fadeTo('slow', 0.8, function() {
  21. $(this).css({'background-image':'url(img/texturas/carton2.jpg)'});
  22. image3();
  23. }).fadeTo('slow', 1); },tiempo);
  24. }
  25.  
  26. function image3(){
  27. setTimeout(function() {
  28. contenedor.fadeTo('slow', 0.8, function() {
  29. $(this).css({'background-image':'url(img/texturas/corcho.jpg)'});
  30. image4();
  31. }).fadeTo('slow', 1); },tiempo);
  32. }
  33.  
  34. function image4(){
  35. setTimeout(function() {
  36. contenedor.fadeTo('slow', 0.8, function() {
  37. $(this).css({'background-image':'url(img/texturas/cuero.jpg)'});
  38. image5();
  39. }).fadeTo('slow', 1); },tiempo);
  40. }
  41.  
  42. function image5(){
  43. setTimeout(function() {
  44. contenedor.fadeTo('slow', 0.8, function() {
  45. $(this).css({'background-image':'url(img/texturas/jean.jpg)'});
  46. image6();
  47. }).fadeTo('slow', 1); },tiempo);
  48. }
  49.  
  50. function image6(){
  51. setTimeout(function() {
  52. contenedor.fadeTo('slow', 0.8, function() {
  53. $(this).css({'background-image':'url(img/texturas/madera.jpg)'});
  54. image7();
  55. }).fadeTo('slow', 1); },tiempo);
  56. }
  57.  
  58. function image7(){
  59. setTimeout(function() {
  60. contenedor.fadeTo('slow', 0.8, function() {
  61. $(this).css({'background-image':'url(img/texturas/arpillera.jpg)'});
  62. image1();
  63. }).fadeTo('slow', 1); },tiempo);
  64. }
  65.  
  66. image1();
  67.  
  68. });
  69. </script>

El problema es que dentro de ese div yo tengo una imágen que termina teniendo el mismo efecto y necesito que no tenga efecto.

El código sería:

Código HTML:
Ver original
  1. <div id="content-wrapper">
  2.             <section id="intro" class="intro-parallax">
  3.                 <div class="container">                            
  4.                     <div class="row">
  5.                     <div id="intro_description" class="col-sm-9 col-md-9">
  6.                       </div>
  7.                       <div class="col-sm-1 col-md-1"></div>
  8.                       <div id="intro_form" class="col-sm-10 col-md-10">
  9.                       <img src="img/home.png" class="col-md-12" alt="">
  10.                       </div>
  11.                     </div> 
  12.                 </div>
  13.             </section>

Necesito que la imagen: <img src="img/home.png" class="col-md-12" alt=""> que sería (#intro_form img) no haga ningún efecto cuando cambia el fondo.

Podrán ayudarme?