javascript - How can I loop jQuery code? -
i've got jquery code supposed change images after amount of time , works well, stops code ends. how can make run on , on again? tried using javascript "if" loop didn't anything.. or maybe did wrong?
(w4s , w5s img's ids)
also i'm quite new jquery if have comments errors i've made, i'd glad hear them!
here's code
$(function () { $("#w4s").hide(); $("#w5s").hide(); $(document).ready(function () { $(function () { $("#w3s").delay("4000").fadeout("slow", function () { $("#w4s").fadein("slow",function () { $(this).delay("4000").fadeout("slow",function () { $("#w5s").fadein("slow"); }); }); }); }); }); });
i guess need this
window.setinterval(function() { alert('i happen every 8 seconds'); }, 8000);
Comments
Post a Comment