Local Time
Posted: Sun Nov 13, 2005 11:14 pm
[code]$f = "
<html><head><script type=\'text/javascript\'>
var d = new Date()
document.write(d.getHours())
</script></head></html>
";
$h = $f;
if ($h > 6 and $h < 18)
{
$theme_dir = "new-images/nav-light";
}
else
{
$theme_dir = "new-images/nav-dark";
}[/code]
any one know why that wont work? if i change it to make it echo instead of setting it to $f it will work....
us3rX <img src=\'http://www.killanet.net/forum3/public/s ... /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />
<html><head><script type=\'text/javascript\'>
var d = new Date()
document.write(d.getHours())
</script></head></html>
";
$h = $f;
if ($h > 6 and $h < 18)
{
$theme_dir = "new-images/nav-light";
}
else
{
$theme_dir = "new-images/nav-dark";
}[/code]
any one know why that wont work? if i change it to make it echo instead of setting it to $f it will work....
us3rX <img src=\'http://www.killanet.net/forum3/public/s ... /ph34r.gif\' class=\'bbc_emoticon\' alt=\':ph34r:\' />