欢迎来到天天文库
浏览记录
ID:21265020
大小:61.00 KB
页数:4页
时间:2018-10-20
《在asp中使用fso组件生成html页面--》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、在ASP中使用FSO组件生成HTML页面>>共有两个页面index.htm是首页.程序比较简单,主要是用了ASP里的文件操作对象。<!--index.htm-------------------------------------------------------------------------------><!DOCTYPEHTMLPUBLIC"-//L4.01Transitional//EN"".l4/loose.dtd"><html><head><title>
2、;UntitledDocument</title><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"></head><body><tablename="form1"method="post"action="send.asp"><tablee="msg"cols="100"roit"name="Submit"value="Submit"><inputtype="reset"na
3、me="Submit2"value="Reset"></div></td></tr></table></form></td></tr></table></body></html>’//send.asp<%functionchan_time(shijian)’转换日期时间函数s_year=year(shijian)iflen(s_year)=2thens_year="20"s_years_month=
4、month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_day="0"s_days_hour=hour(shijian)ifs_hour<10th123下一页>>>>这篇文章来自..,。ens_hour="0"s_hours_minute=minute(shijian)ifs_minute<10thens_minute="0"s_minutechan_time=s_years_months_days
5、_hours_minuteendfunctionfunctionchan_data(shijian)’转换日期时间函数s_year=year(shijian)iflen(s_year)=2thens_year="20"s_years_month=month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_day="0"s_daychan_data=s_years_months_dayendfunctionfunct
6、ionchan_file(shijian)’转换日期时间函数s_month=month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_day="0"s_days_hour=hour(shijian)ifs_hour<10thens_hour="0"s_hours_minute=minute(shijian)ifs_minute<10thens_minute="0"s_minutes_ss=second
7、(shijian)ifs_ss<10thens_ss="0"s_sschan_file=s_months_days_hours_minutes_ssendfunctiontop="<html><head><title>ne="</body></html>"msg=request.Form("msg")msg=replace(msg,vbcrlf,"")msg=replace(msg,chr(9),"")msg=replace(msg,"","nbsp;")msg=
8、replace(msg,"r","<br>")msg=replace(msg,"","<br>")msg=topmsgbotomSetfs=Server.CreateObject("Scripting.FileSystemObj
此文档下载收益归作者所有