私はこの as3 コードを使用していますが、何も見つからないように見えるので、php または JavaScript で実行できるかどうかを知りたいです。よろしく
var my_date:Date;
var my_timer:Timer=new Timer(1000);
my_timer.addEventListener(TimerEvent.TIMER, onTimer);
my_timer.start();
function onTimer(e:TimerEvent):void {
my_date = new Date();
var dayOfWeek_array:Array = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var today_date:Date = new Date();
var day_str:String = dayOfWeek_array[today_date.getUTCDay()];
//trace("Today is "+day_str + " and the Hour is "+today_date.getUTCHours());
if(dayOfWeek_array[today_date.getUTCDay()] == "Sunday" && today_date.getUTCHours() >= 08 && today_date.getUTCHours() <= 09)
{
//load page1
}
else if(dayOfWeek_array[today_date.getUTCDay()] == "Sunday" && today_date.getUTCHours() >= 10 && today_date.getUTCHours() <= 11)
{
//load page2
}
else
{
//load page0
}
}