【文章內(nèi)容簡介】
owse)%/font/font/div/td /tr tr td /td /tr /table /body 這是一個模板文件.... 下面要做的操作就是制作一個生成頁面... .. set fso=() 39。創(chuàng)建一個FSO對象 set myfile=(filepath) 39。設(shè)置一個文件對象..filepath就是這個模板文件的名稱 set ts= 39。設(shè)置一個文本對象..并打開這個對象... if not then content=changecontent() do while not content=content+vbcrlf content=content+changecontent() loop 將模板文件的內(nèi)容賦值到content變量里... 再對其模板內(nèi)容處理后生成新的網(wǎng)頁文件... 例如 Replace(content,%=rs(title)%amp。,title) 將模板文件的%=Rs(title)%替換為文章標(biāo)題... 其他的Content,Time,Browse以此類推... Content進行處理后就是一個完整的網(wǎng)頁文件.. 將其輸出就完成了網(wǎng)頁的生成.. sub SaveText(FileName,Data) 39。這是一個用于寫文本文件的過程 dim fs,ts,path 39。定義變量 set fs=crea