Guest User

Untitled

a guest
Dec 9th, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.onload=Zmiana;
  2. var nr=0;
  3. function Zmiana()
  4. {
  5. var obrazy = new Array('z1.jpg','z2.jpg','z3.jpg','z4.jpg','z5.jpg','z6.jpg');
  6. nr++;
  7. if(nr == obrazy.length)
  8. {
  9. nr=0;
  10. }
  11. document.getElementById('baner').src=obrazy[nr];
  12. setTimeout(Zmiana,2000);
  13. }
RAW Paste Data