Background images change to hours of the day on the OSSN Network

Daniel DeSouza Posted in Component Development 7 years ago

I was thinking about a cool feature, perhaps with the "mood" of the image being dependent on client's time, with day or night-images appearing on the index page and login page between 0-6 Hrs and 18-24 Hrs.

Replies
bb Daniel DeSouza Replied 7 years ago

Thank you Arsalan,

I think the others in the community will like this as well...

Indonesian Arsalan Shah Replied 7 years ago

Hi Dnaiel, here we can achieve this easily just requires the javascript and the 3 images (day, night, morning)

So using javascript we can do following :

If(time == morning){ active the morning image} 
if(time == day){active the day image) ..

I'll try to create component in few weeks.