❶ 求一个最简单的相对路径的单页ASP生成HTML源码
把下面的代码存为html.asp,代码中相关按自己要求修改,1.htm和1.asp<%
filename="1.htm"
ifrequest("body")<>""then
Setfso=Server.CreateObject("Scripting.FileSystemObject")
Setfout=fso.CreateTextFile(server.mappath(""&filename&""))
fout.Writerequest("body")
fout.close
setfout=nothing
setfso=nothing
mskrindex="ok"
endif
%>
<scriptlanguage="Javascript">
<!--hide
functioninsertsmilie(smilieface){document.frmAnnounce.body.value+=smilieface;}
//-->
</script>
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>生成html<铅数/title>
</head>
<body>
<%ifmskrindex="ok"then%>
<p></p>
<tableborder="0"cellspacing="0"width="80%"cellpadding="5">
<tr>
<tdalign="center">
<fontcolor="red">√念穗</font><%=Now()%>生成成功,点击浏览<atarget="_blank"href="<%=filename%>"><%=filename%></a>
</td>
</tr>
</table>
<%else%>
<tablewidth="95%"border="0"cellspacing="0"cellpadding="2">
<tr>
<formname="frmAnnounce"method="post"action="html.asp">
<td>
<fontcolor="red"><b>生成</b>(生成文件为:<%=filename%>)</font>
</td>
</tr>
</table>
<tablewidth="100%"border="0"align="center"cellpadding="2"cellspacing="0"height="90%">
<tr>
<td>仔激卜
<textareastyle="width:98%;height:90%;"name="body"><!--includefile="1.asp"--></textarea>
<inputtype="submit"name="Submit"value="生成">
</td>
</form>
</tr>
</table>
<%
endif
%>
</body>
</html>
❷ 求一个单页网站源码!要纯静态的!越简单越好,
纯静态、简单得不能再简单,请Ctrl+C:
<html>
<title>单页网站源码</title>
<body>这是一个单页网站源码</body>
</html>
❸ html 使用表格和表单创建如下图所示的表单页面。求源代码
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>产品订购</title>
</head>
<body><formaction="#"method="post">
<tablewidth="1000"border="1">
<tr>
<thcolspan="4">产品订购</th>
颤猛慧</tr>
<tr>
<tdstyle="text-align:right">姓名:</td>
<td><inputtype="text"name="consumer"/></td>
<td>商品名称:</td>
<td><inputtype="text"name="goods_name"/></td>
</tr>
<tr>
<tdstyle="text-align:right">地区:</td>
<td>
<selectname="address">
<optionvalue="guangzhou">广州</option>
<optionvalue="beijing">北京</option>
<optionvalue="shanghai">上海</option>
</select>
</td>
<td>付款方式:</td>
<td>
<inputtype="radio"name="pay"value="network"/>网上
<inputtype="radio"name="pay"value="mail"/>邮局
<inputtype="radio"name="pay"value="bank"/>银行
</td>
</tr>
<tr>
<tdstyle="text-align:right">关注产品:</td>
<tdcolspan="3"知知>
<inputtype="checkbox"name="hufu"checked="checked"/>护肤品
<inputtype="checkbox"name="huazhuang"/>化妆品
<inputtype="checkbox"name="fuzhuang"checked="checked"/>服装
<inputtype="checkbox"name="dianqi"/>电器
</td>
</tr>
<tr>
<tdstyle="text-align:right">联系电话:</td>
<tdcolspan="3"><inputtype="text"name="phone"/></td>
</tr>
<tr>
<tdstyle="text-align:right">备注:</td>
茄答<tdcolspan="3">
<textareaname="comment"rows="10"cols="80"></textarea>
</td>
</tr>
<tr>
<td> </td>
<tdcolspan="3">
<inputtype="submit"value="提交"/>
<inputtype="reset"value="重置"/>
</td>
</tr>
</table>
</form>
</body>
</html>
可否满意?