Advertisement
rutera

if if

Dec 27th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var da = new Date();
  3. var tm0 = da.getHours();
  4. var tm = da.getMinutes();
  5. var tm1 = da.getSeconds();
  6. var ran = Math.floor((Math.random()*10)+1);
  7. var ran2 = Math.floor((Math.random()*10)+1);
  8.  
  9. document.write(tm0+":"+tm+":"+tm1);
  10.  
  11. if(tm0 >17){
  12.     document.write("Dobur vecher")
  13. }
  14. if (tm0 > 21) {
  15.     document.write("Kusno e - lqgai da spish!");
  16. }
  17. if (tm0 > 23) {
  18.     document.write("E ne ti cepish napravo!");
  19. };
  20. if(ran == ran2) {
  21.     window.alert("fdfdf");
  22. }
  23. document.write(ran);
  24.  
  25.  
  26.  
  27.  
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement