se vuoi provare una cosa del genere:
codice:
function choices()
{
this[0] = 3;
this[1] = "<a href=\"http://www.link.it\"><img src=\"banner01.swf\" width=468 height=60 border=1 alt=\"Primo banner\"></a>";
this[2] = "<a href=\"http://www.link.it\"><img src=\"banner02.swf\" width=468 height=60 border=1 alt=\"Secondo banner\"></a>";
this[3] = "<a href=\"http://www.link.it\"><img src=\"banner03.swf\" width=468 height=60 border=1 alt=\"Terzo banner\"></a>";
}
function popUpBanner(list)
{
var today = new Date();
var choiceInstance = new choices();
var Banner = choiceInstance[(today.getSeconds() % choiceInstance[0]) + 1];
}
function grabBanner()
{
var today = new Date();
var choiceInstance = new choices();
var Banner = choiceInstance[(today.getSeconds() % choiceInstance[0]) + 1];
return Banner;
}
document.writeln(grabBanner());
fammi sapere...
ciao!