arman29
Генератор идей
- Регистрация
- 30 Июн 2008
- Сообщения
- 1.248
- Реакции
- 752
- Автор темы
- #1
HTML:
<script type="text/javascript">
theTime = new Date();
theHour = theTime.getHours();
if(theHour>8&&theHour<22){
document.write('<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/night-day/css/day.css" type="text/css" />');
}
else{
document.write('<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/night-day/css/night.css" type="text/css" />');
}
</script>