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

跑路單頁源碼

發布時間: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>

可否滿意?

閱讀全文

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

熱點內容
命令方字幕 瀏覽:591
蘋果手機如何連接ipad伺服器 瀏覽:975
列印矩陣java 瀏覽:393
如何雙開一個不能雙開的app 瀏覽:528
抖音喜歡加密了怎麼打開 瀏覽:385
mysql命令行顯示表 瀏覽:364
國防離我們源碼200字 瀏覽:777
vmwaretoolslinux 瀏覽:92
命令方塊生存放不了嗎 瀏覽:697
程序員入門很難嗎 瀏覽:102
70後程序員照片 瀏覽:194
一個普通程序員能幹多久 瀏覽:936
adobe的PDF轉換器 瀏覽:862
單片機數字碼表匯編 瀏覽:486
單片機開發用的軟體 瀏覽:160
程序員8個演算法題 瀏覽:402
php題庫系統 瀏覽:228
王牌戰爭文明重啟選什麼伺服器 瀏覽:662
簡述對稱加密法 瀏覽:665
c語言數學編程 瀏覽:998