I want to creat a simple Tv Guide for my Tv site..
I have the guide that looks like this 5.30-6.00: Program 16.00 -7.00: Program 2
I want to creat a simple Tv Guide for my Tv site..
I have the guide that looks like this
5.30-6.00: Program 16.00 -7.00: Program 2
My question is simp
开发者_开发百科le.. how do I set that at 5.30 the current program will be Program 1 (somthing like.. You are currently watching program 1)
Please remember timezones in your answer
You can write a JavaScript which use the
var date = new Date();
var time = date.getHours() + '.' + date.getMinutes;
and with it, can make an ajax call to get the actual tv-program's name from your php script.
精彩评论