effpeetee
07-27-2009, 07:31 PM
function greet() {
var todaydate = new Date();
var timeis = todaydate.getTime();
todaydate.setTime(timeis);
var houris = todaydate.getHours();
if (houris >17) display = "Good Evening";
else if (houris >11) display = "Good Afternoon";
else display = "Good Morning";
var welcome = (display );
document.write(welcome);
}
I want this function to present something.png instead of the text for Good Morning etc.
if (houris >17) display =gm.png; in this fashion.
I would appreciate any help.:D
Also IE8 reports "clientside is undefined" as an error message, occasionally.
My javascript knowledge is still rudimentary so I would appreciate some guidance here as well.:D
Frank,
var todaydate = new Date();
var timeis = todaydate.getTime();
todaydate.setTime(timeis);
var houris = todaydate.getHours();
if (houris >17) display = "Good Evening";
else if (houris >11) display = "Good Afternoon";
else display = "Good Morning";
var welcome = (display );
document.write(welcome);
}
I want this function to present something.png instead of the text for Good Morning etc.
if (houris >17) display =gm.png; in this fashion.
I would appreciate any help.:D
Also IE8 reports "clientside is undefined" as an error message, occasionally.
My javascript knowledge is still rudimentary so I would appreciate some guidance here as well.:D
Frank,