ページが読み込まれた後、このスクリプトを数秒遅らせようとしましたが、うまくいきませんでした。ここには他にも同様の質問があり、回答が得られているようですが、それらのソリューションを実装しようとしましたが、これまでのところ運がありません.
あなたが提供できる助けに本当に感謝します。前もって感謝します!
<script>
$.fn.rotate = function(){
return this.each(function() {
var $children = $(this).children();
var position = -1;
!function loop() {
position = (position + 1) % $children.length;
$children.eq(position)
.fadeIn(1000)
.delay(7000)
.fadeOut(1000, loop);
}();
});
};
function show() {
AB = document.getElementById('.bannergroup');
AB.style.display = 'inline';
}
setTimeout("show()", 5000);
$(function(){
$(".banneritem").hide();
$(".bannergroup").rotate();
});
</script>