View Single Post
Old 03-18-2014, 02:34 AM   #10
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,201
Default

try this simpler days worth without the bad function

Code:
<script>

var d = new Date;
var n = d.getHours();
var dt=d.getday();
var img = null;

if (n > 10 || n < 2) {
document.write("<img src='Images/djs/49.png'>")
} 
else if (n < 12) {
document.write("<img src='Images/djs/50.png'>")
} else if (n < 14) {
document.write("<img src='Images/djs/51.png'>")
} else if (n < 16) {
document.write("<img src='Images/djs/52.png'>")
} else if (n < 18) {
document.write("<img src='Images/djs/53.png'>")
} else if (n < 20) {
document.write("<img src='Images/djs/54.png'>")
} else if (n< 22) {
document.write("<img src='Images/djs/55.png'>")
}else if (n< 24) {
document.write("<img src='Images/djs/56.png'>")
}
else {
document.write("<img src='Images/djs/57.png'>")
}<script>
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote