当前位置:首页>>网络编程>>ASP教程>>正文

asp生成静态页主要涉及三个方面:模板,参数,fso

文章出处:设计前沿收集 作者:未知 发布时间:2007-03-29 收藏到QQ书签
asp生成静态页主要涉及三个方面:模板,参数,fso.

1,模板:这个其实就是页面的框架,以下为模板的例子:
###############################这就是一个模板###############################
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>$title$</title>
<link href="/Blog/css/style1.css" rel="stylesheet" type="text/css" />
<meta name="description" content="$desc$" />
<meta name="keywords" content="$keywords$" />
</head>
<body>
<!--头部-->
$top$ ////这些就是替换参数
<!--头部结束-->
<table border="0" cellpadding="0" cellspacing="0" width="760" style="margin-top:2px;">
<tr>
<td width="160" valign="top" bgcolor="#eeeef2" style="border-right:1px #ddd solid">
$web_i$ ////这些就是替换参数
</td>
<!--右侧专题介绍-->
<td valign="top" bgcolor="#eeeef2" style="width:265px;height:20px;border-left:1px #fff solid;border-right:1px #ccc solid">
$pic$ ////这些就是替换参数
</td>
<td valign="top" style="border-left:1px #fff solid" bgcolor="#eeeef2">
$rec_text$ ////这些就是替换参数
</td>
</tr>
</table>
<!--专栏结束-->
$b_ban$ ////这些就是替换参数
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="540" valign="top" style="border-right:1px #ccc solid">
$c_list$ ////这些就是替换参数
</td>
<td width="218" valign="top" style="border-left:1px #fff solid" bgcolor="#eeeef2">
$focus_text$ ////这些就是替换参数
</td>
</tr>
</table>
$link$ ////这些就是替换参数
$bottom$ ////这些就是替换参数
</body>
</html>#########################结束##################
Google