top
Loading...
動感首頁更新實現之八------簡介補充篇
`程序表
'/表示為根目錄

'/default.asp 首頁程序,象本站的首頁
./new/index.asp 更多公告
./new/addarticle.asp 添加公告
./new/articleconn.asp 數據庫鏈接
./new/chklogin.asp 管理員驗證
./new/login.asp 管理員入口
./new/delete.asp 刪除程序
./new/manage.asp 管理頁
./new/savearticle.asp 保存頁
./new/inc/articleCHAR.inc 輸入處理程序
./css/ 樣式表
./images/ 圖片目錄


inc/articlechar.inc
<%
function htmlencode2(str)
dim result
dim l
if isNULL(str) then
htmlencode2=""
exit function
end if
l=len(str)
result=""
dim i
for i = 1 to l
select case mid(str,i,1)
case "<"
result=result+"<"
case ">"
result=result+">"
case chr(13)
result=result+"
"
case chr(34)
result=result+"""
case "&"
result=result+"&"
case chr(32)
'result=result+" "
if i+1<=l and i-1>0 then
if mid(str,i+1,1)=chr(32) or mid(str,i+1,1)=chr(9) or mid(str,i-1,1)=chr(32) or mid(str,i-1,1)=chr(9) then
result=result+" "
else
result=result+" "
end if
else
result=result+" "
end if
case chr(9)
result=result+" "
case else
result=result+mid(str,i,1)
end select
next
htmlencode2=result
end function
%>

阿喔的口水都干了,不知各位明白了沒有!xi...xi...
首頁更新源程序可在本站http://asp.on.net.cn/download/下載得到!
哎!身無分文雙飛異,心有零錢一點痛!
作者:http://www.zhujiangroad.com
來源:http://www.zhujiangroad.com
北斗有巢氏 有巢氏北斗