Posts that dexter crowley is monitoring
|
May 13, 2007
|
Topic: Netvibes / Time-dependent Wallpapers (à la iGoogle Themes) I don't use Netvibes so you are on your own for the CSS but here is a shot at some code
var cols=[[5,'#abd'],[20,'#000'],[24,'#dba']];
var now = new Date().getHours();
for(var i=0;col=cols[i++];) if (col[0]>now) break;
GM_addStyle('* {background-color:'+col[1]+' !important}');
cols holds the times and colours in pairs [endtime,'#colour']GM_addStyle just adds some CSS to the pagehope this is helpful |
