标题Figure 18-5: Mixing PHP and HTML
日期:2009-07-04    作者:semirock   来源:http://444p.com
文章打印自: PHP学习之家
访问文章完全地址: http://www.444p.com/example/php-function/aid2544-Mixing-PHP-and-HTML/
头部广告
Figure 18-5: Mixing PHP and HTML
<HTML>
<HEAD>
<TITLE>Figure 18-5</TITLE>
</HEAD>

<?
$Hour = date("H");
$Intensity = round(($Hour/24.0)*(0xFF));
$PageColor = dechex($Intensity) .
dechex($Intensity) .
dechex($Intensity);
?>

<BODY BGCOLOR="#<? print($PageColor); ?>">

<H1>Figure 18-5</H1>

</BODY>
</HTML>
责任编辑:semirock