Predmet:Dan u sedmici
Ovaj kod ce vam izbaciti koji je dan u sedmici.
PreuzmiIzvorni kôd (HTML):
<META NAME="generator" CONTENT="toniarts easyhtml v.2.4">
<!--
<!--Week Of The Day Image Displayer script -->
var mondayimg=" Ponedjeljak "
var tuesdayimg=" Utorak "
var wednesdayimg=" Srijeda "
var thursdayimg=" etvrtak "
var fridayimg=" Petak "
var saturdayimg=" Subota "
var sundayimg=" Nedjelja "
var mydate=new Date()
var today=mydate.getDay()
document.write("Mjesec: "+ mydate.getMonth())
if (today==1)
document.write(mondayimg)
else if (today==2)
document.write(tuesdayimg)
else if (today==3)
document.write(wednesdayimg)
else if (today==4)
document.write(thursdayimg)
else if (today==5)
document.write(fridayimg)
else if (today==6)
document.write(saturdayimg)
else
document.write(sundayimg)
//-->
<p align="center"><font face="arial" size="-2"></font><br>
<font face="arial, helvetica" size="-2"><a href="">
Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.