Has anyone seen a tutorial/script so the flash background on your site depending on the time it is eg midnight it would be black whereas in the day it would be sunny?

Has anyone seen a tutorial/script so the flash background on your site depending on the time it is eg midnight it would be black whereas in the day it would be sunny?
Ugh!
I saw that not so long ago.
It uses the action script to runoff your windows click.
I'll see if I can find it for you.
Isn't that just with php, or combine php with flash ?
like
or something.. just an idea of how I would -try- and do it.PHP Code:$date = time(); //set the time script here
$morning = "set certain time";
$noon = "set certain time";
$evening = "set certain time";
$night = "set certain time";
if($date == $morning){
echo("bg_morning.jpg");
}elseif($date == $noon){
echo("bg_noon.jpg");
}elseif($date == $evening){
echo("bg_evening.jpg");
}elseif($date == $night){
echo("bg_night.jpg");
}else{
echo("bg_standard.jpg");
}
time is bad as it updates every second, making it impossible.Isn't that just with php, or combine php with flash ?
like
or something.. just an idea of how I would -try- and do it.PHP Code:$date = time(); //set the time script here
$morning = "set certain time";
$noon = "set certain time";
$evening = "set certain time";
$night = "set certain time";
if($date == $morning){
echo("bg_morning.jpg");
}elseif($date == $noon){
echo("bg_noon.jpg");
}elseif($date == $evening){
echo("bg_evening.jpg");
}elseif($date == $night){
echo("bg_night.jpg");
}else{
echo("bg_standard.jpg");
}
Ive done something like this a long time ago, but i wiped my hdd and its gone sorry ill try and find tutorial
Posts merged by jesuswhere!
Here is something I came accross:
http://www.swish-db.com/tutorials/view.php/tid/561
basic but it sais it should work
EDIT:
Originally Posted by http://www.swish-db.com/tutorials/view.php/tid/561
Hi,
I want to show you this awsome example, how to create time sensitive background for your web page.So, if the time is 10:00 the background=day and if the time is 22:00 the background=night.
That's all.Now test your *swf movie clip with changing the time on your computer.Enjoy!
Last edited by [Oli]; 06-11-2007 at 07:18 PM.
Nice find.Here is something I came accross:
http://www.swish-db.com/tutorials/view.php/tid/561
basic but it sais it should work
EDIT:![]()
Members who have read this thread: 0Want to hide these adverts? Register an account for free!