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?
Printable View
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");
}
Ive done something like this a long time ago, but i wiped my hdd and its gone sorry ill try and find tutorial
Here is something I came accross:
http://www.swish-db.com/tutorials/view.php/tid/561
basic but it sais it should work ;)
EDIT:
Quote:
Originally Posted by http://www.swish-db.com/tutorials/view.php/tid/561