Ciao a tutti, come da oggetto mi serve far girare random delle immagini all'interno della slideshow.
Io ho già una slideshow che era all'interno del template, volevo capire come modificarla per renderla random.
Di codice non capisco molto ma questo penso dovrebbe essere il codice incriminato:
<div id="slideshow">
<div id="fading">
<ul>
<li><img
src="templates/<?php echo $this->template ?>/images/slide1.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide2.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide3.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide4.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide5.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide6.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide7.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide8.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide9.jpg"
height="300" alt="" /></li>
<li><img src="templates/<?php echo $this->template ?>/images/slide10.jpg" height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide11.jpg"
height="300" alt="" /></li>
<li><img
src="templates/<?php echo $this->template ?>/images/slide12.jpg"
height="300" alt="" /></li>
</ul>
</div>
</div>
<script
type="text/javascript">
var $j = jQuery.noConflict();
$j(function(){
$j("#fading").faded({
speed:<?php echo $speed
?>,// 900,
crossfade: true,
autopagination: false,
autoplay: <?php echo
$autoplay ?>,//default 5000,
autorestart:
true
});
});
Grazie in anticipo.
Ciao
Edit: Il codice và messo col tag #