jQuery Cycle Plugin - Il contenuto non ciclismo
-
04-10-2019 - |
Domanda
Sto installando una pagina con il plugin Ciclo di jQuery e hanno quattro div impostato a svanire. Ho il codice in luogo, il set di immagini, ma non è così ciclo correttamente. Firefox dice che c'è un problema con il seguente codice:
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade'
});
});
</script>
Ecco il codice html:
<div class="slideshow">
<div id="mainImg-1" class="slide">
<div class="quote">
<h2>Building Big Relationships with Small Business.</h2>
<p>“This is quote Number One.<br />
They are there when I need them the most.”</p>
<p><span class="author">Jane Doe – 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>“This is quote Number Two.<br />
They are there when I need them the most.”</p>
<p><span class="author">Jane Doe – 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>“This is quote Number three.<br />
They are there when I need them the most.”</p>
<p><span class="author">Jane Doe – 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>“This is quote Number Fout.<br />
They are there when I need them the most.”</p>
<p><span class="author">Jane Doe – Charlotte Flower Shop</span></p>
<div class="help"><a href="cb_services.html">Let Us Help You</a></div>
</div>
</div>
Questa è la 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; }
Prima di andare fuori e dire: "Ehi, quelle immagini sono tutti uguali". Hai ragione, le immagini sono tutti uguali in questo momento, ma il testo deve essere rotante come bene e c'è una leggera differenza c'è. Inoltre, la dissolvenza dovrebbe comunque presentarsi.
In ogni caso, è possibile consultare la pagina dev qui: http://173.201.163.213/projectpath /first_trust/index.html
I gradirebbe qualche aiuto per ottenere questo in bicicletta attraverso come dovrebbe.
Grazie!
Soluzione
Guardando alla fonte, vi state perdendo diversi tag </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>