謝謝你給我看的網站,請試試這個:
<script>
$(function(){
$('img#jana, img#katharina, img#kathrin').fadeIn('slow', function() {
setTimeout(showNext, 2000);
setInterval(showNext, 10000);
});
function showNext() {
var target = $('#expertenbilder');
if (target.find('#sprechblase_jana').is(':visible')) {
$(this).fadeOut("slow");
setTimeout(function() {
target.find('#sprechblase_katharina').fadeIn("slow");
}, 2000);
} else if (target.find('#sprechblase_katharina').is(':visible')) {
$(this).fadeOut("slow");
setTimeout(function() {
target.find('#sprechblase_kathrin').fadeIn("slow");
}, 2000);
} else if (target.find('#sprechblase_kathrin').is(':visible')) {
$(this).fadeOut("slow");
setTimeout(function() {
target.find('#sprechblase_jana').fadeIn("slow");
}, 2000);
} else {
$('#sprechblase_jana').fadeIn("slow");
}
}
});
</script>
什麼是你想達到什麼目的? – Shyju
我想循環整個腳本。首先淡化圖像,然後淡入淡出時間延遲的div。當一切都運行時,我想循環。非常感謝你。 – desmeit