makehtml

所属分类:WEB开发
开发工具:ASP
文件大小:63KB
下载次数:4
上传日期:2010-11-03 18:20:37
上 传 者sdlaoguo
说明:  本程序可以根据自己定制的模板,将动态的网页生成静态网页,以便提高访问速度。希望对大家有所帮助
(This procedure can be customized according to their own templates to generate static pages, dynamic pages in order to improve access speed. We want to help)

文件列表:
index.asp (3491, 2007-11-20)
index.html (3121, 2007-11-21)
img\Thumbs.db (14336, 2007-11-19)
img\banner.jpg (52686, 2007-10-25)
img\logo.gif (3499, 2007-10-25)
inc\conn.asp (134, 2007-11-19)
inc\conn_sub.asp (137, 2007-11-20)
template\index.html (3207, 2007-11-21)
template\index.asp (326, 2007-11-21)
admin\makehtml.asp (1323, 2007-11-21)
database\abc.mdb (167936, 2007-11-20)
img (0, 2007-11-21)
inc (0, 2007-11-21)
template (0, 2007-11-21)
admin (0, 2007-11-21)
database (0, 2007-11-21)

根据模板生成静态网页 1、模板原型在根文件夹,本例为index.asp 2、改造模板原型,将<% ……%>与其他部分分离,将需要动态表现的内容,都使用response.write形成字符串,串名为arraytemp(0),如果有两个地方,则形成第二个字符串arraytemp(1),依次类推。凡是需要动态表现的地方,仅需要调用字符串名即可,如<%=arraytemp(0)%> 3、将<%……%>部分保存为一个文件到template文件夹,文件名为index.asp,其他剩余部分也保存到此文件夹,文件名为index.html,这两个文件就是模板。 4、生成工具放在admin文件夹,本例为makehtml.asp 5、由生成工具调用两个模板文件,生成目标文件,扩展名为html,放到与原型文件相同的文件夹。本例为index.html

近期下载者

相关文件


收藏者