Ах да, вот код:
<script>
$(document).ready(function(){
var slides = new Array("0","1","2","3","4");
for(i=0;i<slides.length;i++){
if($('img').attr('class') == slides[i]){
a = "img." + String(slides[i]);
$(a).hide(1000);
};
};
});
</script>
<body>
<div class="wrapper">
<div id="slideshow">
<div id="slideshow-image-wrapper">
<img class="0" src="img/image1.jpg" alt="image1"/>
<img class="1" src="img/image2.jpg" alt="image2"/>
<img class="2" src="img/image3.jpg" alt="image3"/>
<img class="3" src="img/image4.jpg" alt="image4"/>
<img class="4" src="img/image5.jpg" alt="image5"/>
</div>
</div>
</div>
</body>
</html>
|