코드 사본은 다음과 같습니다.
<%
'+------------------------------------+
'| 가변 설정
'+------------------------------------+
ctitle = "모든 업로드 된 그림 (참고 : 다음은 그림 폴더 아래의 모든 그림입니다. 모두 유효한 사진은 아닙니다!)" '이름
CPICTYPE = "JPEG, JPG, GIF, PNG, BMP" '이미지 유형 (사용”, "이미지 형식 분리)
cheight = 120'Thumbnail 높이
cwidth = 120'Thumbout 너비
CeachLineMax = 5'Number of line per line
CeachPagemax = 페이지 당 표시되는 사진의 20 '
pic_path = "/uploadpic/" '사진이있는 경로를 설정하십시오
'+------------------------------------+
'| 함수를 정의하십시오
'+------------------------------------+
functiongetext (이름)
getext = 오른쪽 (이름, 3)
최종 기능 장애
functionispic (filename, pictype)
ext = getext (filename)
ISPIC = FALSE
typelist = split (pictype, ",")
forii = lbound (typelist) toubound (typelist)
Ifucase (ext) = ucase (typelist (ii))
ispic = true
exitfor
endif
다음
최종 기능 장애
functionpagebar (페이지, pagetotal)
response.write "[<ahref ="& request.servervariables ( "script_name") & "? page ="& (page-1) & "title = previous page> 이전 페이지 </a>]."
response.write "<ahref ="& request.servervariables ( "script_name") & "? page = 1title = home> <</a>"
i = pagestart
Dowhilei <페이지
response.write "<ahref ="& request.servervariables ( "script_name") & "page ="& i & "title =" "page"& i & ""> [ "& i &"</a> "
i = i+1