Czyli raz <div id="next">next</div>
za 10 sekund
<div id="last">last</div>
I potem za 10 sekund znowu div next i tak na okrągło raz ten raz ten div
I napisałem taki kod ale nie chce mi działać
<html> <head> <head> <body> <script> $(document).ready(function(){ var ile=1; function stoper() { sekund =ile%11; document.getElementById('div1').innerHTML = sekund; ile++; } setInterval(stoper,1000); if(sekund == 10){ $("#last").show( "slow"); $("#next").hide( "slow"); } if(sekund == 0{ $("#last").hide( "slow"); $("#next").show( "slow"); } }); </script> </body> </html>