これは、div が非表示で && に「ビュー」のクラスがあるかどうかを確認するための正しい jQuery 構文ですか? もしそうなら、.3秒後にクラス「ビュー」で次の隠しdivを明らかにしますか?
ただし、現在は機能していないことに注意してください。クラスに関係なく、すべての非表示の div がフェードインします。
<script type="text/javascript">
$(function() {
// Start showing the divs
showDiv();
});
function showDiv() {
// If there are hidden divs left
if($('div:hidden').length.hasClass('view')) {
// Fade the first of them in
$('div:hidden:first').fadeIn();
// And wait one second before fading in the next one
setTimeout(showDiv, 300);
}
}
</script>