Forum Moderators: open
The code for the image to change is:
<SCRIPT LANGUAGE = 'JavaScript'><!--
var date = new Date();
var time = date.getHours();
if (time<12) {
document.write("<IMG SRC='http://www.example.com/Clare2003/WroxFM019_small.JPG'>")
}else if (time<16) {
document.write("<IMG SRC='http://www.example.com/Clare2003/Ezio001_small.JPG'>")
}else if (time<20) {
document.write("<IMG SRC='http://www.example.com/Clare2003/Osibissa001_small.JPG'>")
}else {
document.write("<IMG SRC='http://www.example.com/Clare2003/Showaddywaddy010_small.JPG'>");
}
//--></SCRIPT>
I expect I need to place img border ="0" somewhere but cannot figure out where. If I place it within the script I get error messages. I expect the answer is easy but I'm stuck.
[edited by: heini at 8:58 pm (utc) on Oct. 5, 2003]
[edit reason] Please don't use urls, thanks. [/edit]