高级分页的代码:
<html>
<head>
<title>webjx.com</title>
</head>
<body text="#000000">
<center>
<table width="500" border="3">
<tr>
<td width="140" height="400" valign="top">
<p align="center">
<a href=http://www.webjx.com/htmldata/2005-03-05/'index.php'>home</a><br />
<a href=http://www.webjx.com/htmldata/2005-03-05/'index.php?action=contact_us'>page 1</a><br />
<a href=http://www.webjx.com/htmldata/2005-03-05/'index.php?action=link_us'>page 2</a><br />
</p></td>
<td width="360" height="400" valign="top">
<p>
<?
if (isset($_GET['action'])) $PAGE = $_GET['action'];
else $PAGE = 'home';
switch ($PAGE) {
//1- index
case 'home':
include ('incl/home.php');
break;
//2-contact form
case 'contact_us':
include ('incl/contact_us.php');
break;
//3-Link us
case 'link_us':
include ('incl/link_us.php');
break;
default:
echo '<p align=center>Error 404! the page you request doesn t exist or as been temporarely unaccessible</p>';
break;
}
?>
</p>
</td>
</tr>
</table>
</center>
</body>
</html>
提供了演示的下载,请自己去试试!
四:页面加载时间的代码:
<?php
echo ("Page Took :");
$load = microtime();
print (number_format($load,2));
echo (" Sec To Load.");
?>
五:显示从哪个地址转到你
| 对此文章发表了评论 |
