Prikazi cijelu temu 04.12.2014 13:49
zxz Van mreze
Administrator
Registrovan od:03.02.2009
Lokacija:Tuzla


Predmet:Dan u sedmici
Ovaj kod ce vam izbaciti koji je dan u sedmici.
PreuzmiIzvorni kôd (HTML):
  1. <META NAME="generator" CONTENT="toniarts easyhtml v.2.4">
  2. <TITLE>Title of your page</TITLE>
  3. </HEAD>
  4.  <script>
  5. <!--
  6. <!--Week Of The Day Image Displayer script -->
  7. var mondayimg=" Ponedjeljak "
  8. var tuesdayimg=" Utorak "
  9. var wednesdayimg=" Srijeda "
  10. var thursdayimg=" etvrtak "
  11. var fridayimg=" Petak "
  12. var saturdayimg=" Subota "
  13. var sundayimg=" Nedjelja "
  14. var mydate=new Date()
  15. var today=mydate.getDay()
  16. document.write("Mjesec: "+ mydate.getMonth())
  17. if (today==1)
  18. document.write(mondayimg)
  19. else if (today==2)
  20. document.write(tuesdayimg)
  21. else if (today==3)
  22. document.write(wednesdayimg)
  23. else if (today==4)
  24. document.write(thursdayimg)
  25. else if (today==5)
  26. document.write(fridayimg)
  27. else if (today==6)
  28. document.write(saturdayimg)
  29. else
  30. document.write(sundayimg)
  31. //-->
  32.  
  33. <p align="center"><font face="arial" size="-2"></font><br>
  34. <font face="arial, helvetica" size="-2"><a href="">
  35. </a></font></p>
  36. </BODY>
  37. </HTML>

Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.