Netvibes / Time-dependent Wallpapers (à la iGoogle Themes)
|
|
Now that the NV staff added more customization features, it would be great if we could port some of iGoogle's themes that change during the hours for Netvibes. Basically we would need a script that modifies the background-image:url of the topPart DIV according to the current time and possibly also adjusts the header height... Anyone to help? :) |
|
|
No ideas? I'm having a difficult time figuring this out myself... |
|
|
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 |
|
|
It's mainly the CSS part that I'm having problems with... |
