Pregunta

Yo soy la creación de una página con el plugin de jQuery Cycle y han establecido cuatro divs a desvanecerse. Tengo el código en el lugar, el conjunto de imágenes, pero no lo hace adecuadamente ciclo. Firefox dice que hay un problema con el código siguiente:

<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
    fx: 'fade' 
  });
});
</script>

Aquí está el código HTML:

<div class="slideshow">
<div id="mainImg-1" class="slide">
  <div class="quote">
    <h2>Building Big Relationships with Small Business.</h2>
    <p>&ldquo;This is quote Number One.<br />
      They are there when I need them the most.&rdquo;</p>
    <p><span class="author">Jane Doe &ndash; Charlotte Flower Shop</span></p>
    <div class="help"><a href="cb_services.html">Let Us Help You</a></div>
  </div>
</div>

 <div id="mainImg-2" class="slide">
  <div class="quote">
    <h2>Building Big Relationships with Small Business.</h2>
    <p>&ldquo;This is quote Number Two.<br />
      They are there when I need them the most.&rdquo;</p>
    <p><span class="author">Jane Doe &ndash; Charlotte Flower Shop</span></p>
    <div class="help"><a href="cb_services.html">Let Us Help You</a></div>
  </div>
</div>

 <div id="mainImg-3" class="slide">
  <div class="quote">
    <h2>Building Big Relationships with Small Business.</h2>
    <p>&ldquo;This is quote Number three.<br />
      They are there when I need them the most.&rdquo;</p>
    <p><span class="author">Jane Doe &ndash; Charlotte Flower Shop</span></p>
    <div class="help"><a href="cb_services.html">Let Us Help You</a></div>
  </div>
</div>

 <div id="mainImg-4" class="slide">
  <div class="quote">
    <h2>Building Big Relationships with Small Business.</h2>
    <p>&ldquo;This is quote Number Fout.<br />
      They are there when I need them the most.&rdquo;</p>
    <p><span class="author">Jane Doe &ndash; Charlotte Flower Shop</span></p>
    <div class="help"><a href="cb_services.html">Let Us Help You</a></div>
  </div>
</div>

Aquí está el CSS:

.slideshow  { width: 946px; height: 283px; border: 1px solid #c29c5d; margin: 8px; overflow: hidden;  z-index: 1; } 

 #mainImg-1     { width: 946px; height: 283px;  background: url(../_images/main.jpg) no-repeat 9px 9px; }
 #mainImg-2     { width: 946px; height: 283px;  background: url(../_images/main.jpg) no-repeat 9px 9px; }
 #mainImg-3     { width: 946px; height: 283px;  background: url(../_images/main.jpg) no-repeat 9px 9px; }
 #mainImg-4     { width: 946px; height: 283px;  background: url(../_images/main.jpg) no-repeat 9px 9px; }

 #mainImg-1 .quote,
 #mainImg-2 .quote,
 #mainImg-3 .quote,
 #mainImg-4 .quote { width: 608px; height: 168px; float: right; margin: 80px 11px 0 0; background: url(../_images/bg_quoteBox.png) repeat-x; }

Antes de salir y decir, "bueno, esas imágenes son todos iguales". Tiene usted razón, las imágenes son todos iguales en este momento, pero el texto debe estar rotando así y hay una ligera diferencia allí. Además, el fundido todavía debe aparecer.

De todos modos, se puede ver la página dev aquí: http://173.201.163.213/projectpath /first_trust/index.html

Le agradecería un poco de ayuda para conseguir esta bicicleta a través de como debiera.

Gracias!

¿Fue útil?

Solución

En cuanto a la fuente, que se está perdiendo varias etiquetas </script>.

<script type="text/javascript" src="_scripts/navigation.js"></script> 
<script type="text/javascript">
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
        fx: 'fade' 
    });
});
</script>
<title>Charlotte Bank Mooresville Bank First Trust Bank</title>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top