導航:首頁 > 源碼編譯 > 跑路單頁源碼

跑路單頁源碼

發布時間:2023-07-04 20:51:51

❶ 求一個最簡單的相對路徑的單頁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>&nbsp;</td>
<tdcolspan="3">
<inputtype="submit"value="提交"/>
<inputtype="reset"value="重置"/>
</td>
</tr>
</table>
</form>
</body>
</html>

可否滿意?

閱讀全文

與跑路單頁源碼相關的資料

熱點內容
怎麼裝原生態安卓 瀏覽:847
工程圖學pdf 瀏覽:398
開放的程序員 瀏覽:952
胡希恕傷寒論講座pdf 瀏覽:766
aspnet程序員薪水 瀏覽:76
蘋果為什麼屏幕看得比安卓舒服 瀏覽:119
蘋果數據線怎麼轉安卓 瀏覽:656
黑格爾pdf下載 瀏覽:959
備忘錄里新建文件夾怎麼刪除 瀏覽:12
伺服器黑名單怎麼處理 瀏覽:842
程序員電視劇25集 瀏覽:214
80351單片機 瀏覽:958
advancedwifi源碼 瀏覽:577
maczip解壓成文件夾後怎麼打開 瀏覽:120
androidapp內存大小 瀏覽:451
程序員干私活網站 瀏覽:379
未來軟體加密鎖驅動 瀏覽:930
美軍如何拒絕執行上級命令 瀏覽:489
布魯諾pdf 瀏覽:163
計算機教程pdf 瀏覽:703