Hi All,
Here is the situation. I have adverts that rotate on an hourly basis. I want to be able to click on the gif appearing and go to the advertisers site.
Here is the code that gets the gifs then displays the appropriate one depending on the hour of the day:
var layout = new Array;
layout[0] = "http://www.blabla/advertisers/bla/bla1.gif";
layout[1] = "http://www.blabla/advertisers/bla/bla2.gif";
var digital = new Date();
var l = digital.getHours(24) % layout.length;
document.write("<img src=" + layout[l] + ">");
Ideas??
Thanks!
tacuit