1
JavaScriptになっていて、それぞれ<li>
のループを「アクティブ」クラスでn°1から<li>
n°4までループ設定してからn°に再スタートします1すべての3秒。「アクティブ」アイテムからJqueryでループが必要です
私は今まで、このコードを持っている:
HTML
<ul class="collection">
<li id="first" class="collection-item active">Desplazate hacia la pestaña <strong>HORARIOS</strong>.</li>
<li id="second" class="collection-item ">Ingresa tu N° de documento.</li>
<li id="third" class="collection-item ">Presiona el botón <strong>INGRESAR</strong>.</li>
<li id="four" class="collection-item "><strong>LISTO!</strong> Ahora puedes ver los horarios de la semana.</li>
</ul>
はJavaScript
$(document).ready(function(){
setInterval(animacion,3000);
function animacion(){
$currently_selected = $('li.active')
// Loop back to first sibling if on the last one.
if ($currently_selected.next().length = 0){
$next_selected = $currently_selected.siblings().first()
} else {
$next_selected = $currently_selected.next()
$currently_selected.removeClass('active')
$next_selected.addClass('active')
}
}
});
私を助けてください!
ありがとうございました!それは私が探していたものです! –