hi all !!
i won;t to this script say (beetwen 12 and 22) say sth and after this it will say sth defferent this is what i done:
in head:
Code:
<script>
var dayarray=new Array("Poniedziałek","Wtorek","Środa","Czwartek","Pištek","Sobota","Niedziela")
function pobieraniedaty(){
var mydate=new Date()
var day=mydate.getDay()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var timeValue = ((hours<12)?"Nie przyjmujemy Już zamówień":(hours<22)?"Kuchnia jest otwarta więc zamawiaj")
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
// zmiana czcionki
var cdate="<center><font size='3' color='Black' face='Arial'><b>"+dayarray+" <br>"+hours+":"+minutes+":"+seconds+ "<br>" +timeValue+"</b></font></center>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function zegar(){
if (document.all||document.getElementById)
setInterval("pobieraniedaty()",1000)
}
</script>